-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
52 lines (45 loc) · 1.4 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
env:
browser: true
es2021: true
parser: "@typescript-eslint/parser"
extends:
# https://github.com/43081j/eslint-plugin-wc
- plugin:wc/recommended
# https://github.com/43081j/eslint-plugin-lit
- plugin:lit/recommended
# https://open-wc.org/docs/linting/eslint-plugin-lit-a11y/overview/
- plugin:lit-a11y/recommended
# https://github.com/amilajack/eslint-plugin-compat
- plugin:compat/recommended
# https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin
- plugin:@typescript-eslint/recommended
# https://github.com/prettier/eslint-config-prettier
- prettier
parserOptions:
ecmaVersion: latest
sourceType: module
ignorePatterns:
- test/**/*
plugins:
# https://github.com/43081j/eslint-plugin-wc
- wc
# https://github.com/43081j/eslint-plugin-lit
- lit
# https://github.com/BenoitZugmeyer/eslint-plugin-html
- html
# https://open-wc.org/docs/linting/eslint-plugin-lit-a11y/overview/
- lit-a11y
# https://github.com/amilajack/eslint-plugin-compat
- compat
# https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin
- "@typescript-eslint"
settings:
wc:
elementBaseClasses: [LitElement]
rules:
# add additional rules from eslint-plugin-wc
wc/no-constructor-params: error
wc/no-typos: error
wc/require-listener-teardown: error
lit/value-after-constraints: error
lit/no-native-attributes: error