-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
30 lines (30 loc) · 1.14 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
{
"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": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/await-thenable": "error",
"no-constant-condition": "warn",
"no-unused-vars": ["off", { "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": ["off", { "props": "never", "children": "never" }]
},
"ignorePatterns": ["node_modules/", ".next/", ".github/", "cypress/", "src/types/contracts/"],
"plugins": ["unused-imports", "@typescript-eslint", "no-only-tests"]
}