|
1 | 1 | { |
2 | | - "parser": "@typescript-eslint/parser", |
| 2 | + "root": true, |
3 | 3 | "extends": [ |
4 | 4 | "plugin:github/browser", |
5 | 5 | "plugin:github/recommended", |
6 | | - "plugin:github/typescript" |
| 6 | + "plugin:github/typescript", |
| 7 | + "plugin:custom-elements/recommended" |
7 | 8 | ], |
8 | | - "globals": { |
9 | | - "TabContainerElement": "readable" |
10 | | - }, |
11 | 9 | "rules": { |
12 | | - "@typescript-eslint/no-non-null-assertion": "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": ["test/**/*.js", "prettier.config.js"], |
17 | | - "parser": "espree", |
| 24 | + "files": "src/*-define.ts", |
| 25 | + "rules": { |
| 26 | + "@typescript-eslint/no-namespace": "off" |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "files": "test/**/*.js", |
18 | 31 | "rules": { |
19 | | - "github/unescaped-html-literal": "off" |
| 32 | + "github/unescaped-html-literal": "off", |
| 33 | + "github/no-inner-html": "off", |
| 34 | + "i18n-text/no-en": "off" |
| 35 | + }, |
| 36 | + "env": { |
| 37 | + "mocha": true |
20 | 38 | } |
21 | 39 | } |
22 | 40 | ] |
|
0 commit comments