-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.json
74 lines (74 loc) · 2.12 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"extends": [
"next",
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended-legacy",
"plugin:eslint-comments/recommended"
],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"plugins": [
"@typescript-eslint",
"react",
"react-compiler",
"import",
"validate-jsx-nesting",
"sonarjs"
],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"ignorePatterns": ["vendor/", "public/js/", "next.config.js"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"sonarjs/no-ignored-return": "off",
"eslint-comments/no-use": "off",
"eslint-comments/no-unused-disable": "error",
"eslint-comments/disable-enable-pair": "off",
"eslint-comments/no-unlimited-disable": "off",
"@next/next/no-page-custom-font": "off",
"react-hooks/exhaustive-deps": "warn",
"@next/next/google-font-display": "off",
"filenames/match-regex": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"eqeqeq": "off",
"i18n-text/no-en": "off",
"react/jsx-curly-brace-presence": [
"error",
{ "props": "never", "children": "never" }
]
},
"overrides": [
{
"files": ["*.config.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["*.d.ts"],
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}