-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc
27 lines (27 loc) · 851 Bytes
/
.eslintrc
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
{
"extends": [
"opencollective",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"env": {
"jest": true
},
"plugins": ["react-hooks", "@typescript-eslint"],
"rules": {
"no-console": "warn",
"react/jsx-closing-bracket-location": ["warn", "tag-aligned"],
"react-hooks/rules-of-hooks": ["error"],
"react/no-array-index-key": 0, // most pages are static
// We can be stricter with these rules
// because we don't have any occurences anymore
"react/react-in-jsx-scope": ["error"],
"react/prop-types": ["error"],
"react/sort-comp": ["error"],
"node/no-missing-import": ["error", { "tryExtensions": [".js", ".ts", ".tsx"] }]
}
}