-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add eslint and update src to be compliant with lit repo's eslint rule…
…set (#144) * Added eslint with identical settings to lit/lit repo. * Updated TypeScript src files to satisfy eslint. * Add the ResizeObserver.js polyfill to the .eslintignore
- Loading branch information
Showing
14 changed files
with
9,618 additions
and
7,784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
packages/lit-virtualizer/LitVirtualizer.* | ||
packages/lit-virtualizer/Virtualizer.* | ||
packages/lit-virtualizer/lit-virtualizer.* | ||
packages/lit-virtualizer/virtualize.* | ||
packages/lit-virtualizer/test/**/* | ||
packages/lit-virtualizer/polyfills/resize-observer-polyfill/ResizeObserver.js | ||
packages/lit-virtualizer/src/polyfills/resize-observer-polyfill/ResizeObserver.js | ||
|
||
packages/lit-virtualizer-examples/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"eslint-plugin-import", | ||
"eslint-plugin-no-only-tests", | ||
"@typescript-eslint" | ||
], | ||
"env": { | ||
"browser": true | ||
}, | ||
"rules": { | ||
"import/extensions": ["error", "always"], | ||
"no-prototype-builtins": "off", | ||
"no-only-tests/no-only-tests": "error", | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"check-version-tracker.js", | ||
"rollup-common.js", | ||
"rollup.config.js", | ||
"web-test-runner.config.js" | ||
], | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.