forked from aersoftware/react-use-action-cable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
42 lines (42 loc) · 1.05 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:anti-trojan-source/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@next/next/no-img-element": "off",
"@next/next/no-page-custom-font": "off",
"@typescript-eslint/ban-ts-comment": "off",
"anti-trojan-source/no-bidi": "error",
"jsx-a11y/anchor-is-valid": "off",
"no-console": 0,
"no-debugger": "error",
"no-else-return": "error",
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
]
}
}