-
-
Notifications
You must be signed in to change notification settings - Fork 125
/
.eslintrc.json
64 lines (64 loc) · 1.42 KB
/
.eslintrc.json
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
53
54
55
56
57
58
59
60
61
62
63
64
{
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react/recommended",
"next/core-web-vitals",
"plugin:sonarjs/recommended",
"plugin:jest/recommended",
"prettier"
],
"plugins": [
"eslint-plugin-import",
"eslint-plugin-react",
"@typescript-eslint",
"@typescript-eslint/tslint",
"sonarjs",
"jest",
"prettier"
],
"settings": {
"next": {
"rootDir": "playground/"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./library/tsconfig.json",
"./library/e2e/tsconfig.json",
"./playground/tsconfig.json",
"./web-component/tsconfig.json"
]
},
"root": true,
"rules": {
"prettier/prettier": "error",
"jest/expect-expect": [
"error",
{
"assertFunctionNames": ["expect", "cy"]
}
]
},
"ignorePatterns": [
"library/browser",
"library/lib",
"library/e2e/plugins/index.js",
"library/loaders/remove-hashbag-loader.js",
"library/jest.config.js",
"library/postcss.config.js",
"library/webpack.config.js",
"library/tailwind.config.js",
"playground/out",
"playground/postcss.config.js",
"web-component/lib",
"web-component/webpack.config.js"
]
}