-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.json
45 lines (41 loc) · 977 Bytes
/
.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
{
"root": true,
"env": { "browser": true },
"parserOptions": { "project": "./tsconfig-base.json" },
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"plugins": ["simple-import-sort"],
"rules": {
// Auto-sort imports
"sort-imports": "off",
"import/order": "off",
"simple-import-sort/sort": "error",
// Using a type system makes it safe enough to disable the check below
"react/jsx-props-no-spreading": "off",
// Custom preferences
"import/prefer-default-export": "off",
"no-bitwise": "off",
"no-plusplus": "off"
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
},
{
"files": ["rollup.config.js"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}