-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": { "sourceType": "module", "project": ["./tsconfig.json"] },
// eslint-react, eslint-react-hooks, eslint-import and eslint-jsx-a11y are installed
// with next/core-web-vitals
"extends": [
// next/core-web-vitals as first, bcs it turns of some strict rules
// of jsx-a11y/recommended set
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
// can be removed if linting is slow
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:css-modules/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "css-modules"],
"rules": {
"react-hooks/exhaustive-deps": "error",
"react/display-name": "error",
"react/jsx-curly-brace-presence": ["error", "never"],
"jsx-a11y/anchor-is-valid": "off"
},
"ignorePatterns": [
"src/**/*.test.ts",
"tailwind.config.js",
"postcss.config.js",
"jest.config.js",
"next.config.js",
"commitlint.config.js"
],
"settings": {
"jsx-a11y": {
"components": {
"Input": "input",
"Button": "button",
"Image": "img"
}
}
}
}