|
1 | 1 | {
|
2 | 2 | "root": true,
|
3 |
| - "plugins": ["custom-elements"], |
4 | 3 | "extends": [
|
5 |
| - "plugin:github/recommended", |
6 | 4 | "plugin:github/browser",
|
| 5 | + "plugin:github/recommended", |
7 | 6 | "plugin:github/typescript",
|
8 | 7 | "plugin:custom-elements/recommended"
|
9 | 8 | ],
|
10 | 9 | "rules": {
|
11 |
| - "custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}], |
12 |
| - "custom-elements/file-name-matches-element": "off" |
| 10 | + "custom-elements/tag-name-matches-class": [ |
| 11 | + "error", |
| 12 | + { |
| 13 | + "suffix": "Element" |
| 14 | + } |
| 15 | + ], |
| 16 | + "custom-elements/define-tag-after-class-definition": "off", |
| 17 | + "custom-elements/no-method-prefixed-with-on": "off", |
| 18 | + "custom-elements/expose-class-on-global": "off", |
| 19 | + "import/extensions": ["error", "always"], |
| 20 | + "import/no-unresolved": "off" |
13 | 21 | },
|
14 | 22 | "overrides": [
|
15 | 23 | {
|
16 |
| - "files": "*.js", |
17 |
| - "parser": "espree", |
18 |
| - "parserOptions": {"ecmaVersion": 8} |
| 24 | + "files": "src/*-define.ts", |
| 25 | + "rules": { |
| 26 | + "@typescript-eslint/no-namespace": "off" |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "files": "test/**/*.js", |
| 31 | + "rules": { |
| 32 | + "github/unescaped-html-literal": "off", |
| 33 | + "github/no-inner-html": "off", |
| 34 | + "i18n-text/no-en": "off" |
| 35 | + }, |
| 36 | + "env": { |
| 37 | + "mocha": true |
| 38 | + } |
19 | 39 | }
|
20 | 40 | ]
|
21 | 41 | }
|
0 commit comments