forked from safe-global/safe-wallet-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.2 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
{
"extends": [
"next",
"prettier",
"plugin:prettier/recommended",
"plugin:storybook/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"rules": {
"@next/next/no-img-element": "off",
"@next/next/google-font-display": "off",
"@next/next/google-font-preconnect": "off",
"@next/next/no-page-custom-font": "off",
"unused-imports/no-unused-imports-ts": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/await-thenable": "error",
"no-constant-condition": "warn",
"no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "useAsync"
}
],
"no-only-tests/no-only-tests": "error",
"object-shorthand": ["error", "properties"],
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }]
},
"ignorePatterns": [
"node_modules/",
".next/",
".github/",
"cypress/",
"src/types/contracts/"
],
"plugins": [
"unused-imports",
"@typescript-eslint",
"no-only-tests"
]
}