-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
27 lines (26 loc) · 1.18 KB
/
.eslintrc.json
File metadata and controls
27 lines (26 loc) · 1.18 KB
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": ["next/core-web-vitals"],
"plugins": ["@grncdr/react-hooks", "@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none", "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }],
"@typescript-eslint/semi": ["warn", "always", { "omitLastInOneLineBlock": true }],
"@typescript-eslint/brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
// Waiting on https://github.com/typescript-eslint/typescript-eslint/issues/3105 for TS support
"array-bracket-spacing": ["warn", "never"],
"@typescript-eslint/object-curly-spacing": ["warn", "always"],
// Indentation rules are very hard to get right, so it is currently not included
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
"@grncdr/react-hooks/rules-of-hooks": "error",
"@grncdr/react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useAsyncMemo|useDrop|useDrag|useDragLayer)",
"staticHooks": {
"useDirty": [false, true, true, false, true],
"useLocalCachedState": [false, true, false, false]
}
}
]
}
}