-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.46 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,
"es2021": true,
"node": true,
"jest/globals": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "jest"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"import/prefer-default-export": [0],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never",
"jsx": "never",
"tsx": "never"
}
],
"react/jsx-filename-extension": [0],
"react/react-in-jsx-scope": [0],
"react/prop-types": [0],
"react/jsx-props-no-spreading": [0],
"react/jsx-one-expression-per-line": [0],
"max-len": [
1,
{
"code": 200
}
],
"jsx-a11y/click-events-have-key-events": [0],
"no-restricted-syntax": [0],
"class-methods-use-this": [0],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
},
"ignorePatterns": ["**/graphql.d.ts", "**/build/", "**/dist"],
"overrides": [
{
"files": ["packages/test-data/**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": [0]
}
}
]
}