-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.85 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
{
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"plugin:jsx-a11y/recommended"
],
"parser": "@typescript-eslint/parser",
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 12,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"allowAutomaticSingleRunInference": true,
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint", "prettier", "jsx-a11y"],
"rules": {
"import/prefer-default-export": "off",
"import/no-self-import": "off",
"class-methods-use-this": "off",
"import/no-named-as-default-member": "off",
"quotes": ["error", "double"],
"indent": ["error", 4],
"import/export": "off",
"import/extensions": "off",
"import/no-absolute-path": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"react/prop-types": "off",
"arrow-body-style": "off",
"no-unused-vars": "warn",
"@typescript-eslint/no-unsafe-assignment": "off"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "./"]
}
}
},
"overrides": [
// Override some TypeScript rules just for .js files
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}