-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
54 lines (48 loc) · 1.33 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
{
"root": true,
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier/@typescript-eslint",
"prettier/react",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 6
},
"plugins": ["simple-import-sort"],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"no-console": 0,
"no-underscore-dangle": 0,
// Doesn't work for FC: https://github.com/yannickcr/eslint-plugin-react/issues/2353
"react/prop-types": "off",
// Prefer non-default exports
"import/no-default-export": "error",
"import/prefer-default-export": "off",
// Auto-sort imports
"sort-imports": "off",
"import/order": "off",
"simple-import-sort/sort": "error",
// Using a type system makes it safe enough to spread props
"react/jsx-props-no-spreading": "off",
// we want to be able to use functions before definition
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"minimumDescriptionLength": 5
}
]
}
}