-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.31 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
//"extraFileExtensions": [".css", ".json"]
},
"plugins": [
"react",
"import",
"@typescript-eslint",
"prettier",
"jsx-a11y"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript",
"prettier",
"next/core-web-vitals"
],
"rules": {
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off", // conficts with Next.js
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-var-requires": "off", // would like to re-implement if I can figure out CSS issue
"no-undef": "off",
"no-plusplus": "off",
"prettier/prettier": "warn",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.stories.tsx", "**/*.test.ts", "**/*.test.tsx", "**/__tests__/*"]}],
"import/no-anonymous-default-export": "off",
"jsx-a11y/click-events-have-key-events": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}