-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.06 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
47
48
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"next/core-web-vitals",
"@inrupt/eslint-config-react",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"eslint:recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"project": ["./tsconfig.json"],
"sourceType": "module"
},
"plugins": ["react", "prettier", "@typescript-eslint", "jsx-a11y"],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".ts", ".tsx"]
}
],
"react/jsx-props-no-spreading": [0],
"no-shadow": ["warn", { "allow": ["fetch"] }],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unused-vars": "error",
"no-unused-vars": "off"
},
"overrides": [
{
"files": ["e2e/**/*.playwright.ts"]
}
],
"globals": {
"JSX": true
}
}