-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (46 loc) · 1.24 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
46
{
"extends": [
// Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
// Next already has some react and typescript options
"next",
"plugin:jsx-a11y/recommended",
"plugin:tailwind/recommended",
"prettier",
// Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
"plugin:prettier/recommended"
],
"plugins": ["tsc"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-unused-vars": "error",
"tailwind/class-order": "error",
"jsx-a11y/no-onchange": "off",
"jsx-a11y/anchor-is-valid": "off",
"prettier/prettier": [
"error",
{
// Fixes mismatching windows/unix file end of lines
"endOfLine": "auto"
}
],
"tsc/config": [
1,
{
"configFile": "tsconfig.json"
}
]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
// Disable "no requires" for js files
"@typescript-eslint/no-var-requires": "off"
}
}
]
}