-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
75 lines (75 loc) · 2.23 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
75
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:sonarjs/recommended",
"plugin:promise/recommended",
"plugin:cypress/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"react": { "version": "detect" },
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"plugins": ["unused-imports", "cypress"],
"rules": {
"sonarjs/prefer-immediate-return": "off",
"no-restricted-imports": "off",
"linebreak-style": "off",
"sonarjs/no-duplicate-string": "off",
"react/prop-types": "off",
"no-debugger": "off",
"arrow-body-style": ["error", "as-needed"],
"react/self-closing-comp": ["error", { "component": true, "html": true }],
"import/default": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default-member": "off",
"promise/no-return-wrap": "off",
"promise/always-return": "off",
"promise/no-promise-in-callback": "off",
"import/no-named-as-default": "off",
"promise/prefer-await-to-then":"warn",
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "error",
"jsx-a11y/anchor-is-valid": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"prettier/prettier": ["error", { "usePrettierrc": true, "endOfLine": "auto" }],
"react/no-unknown-property": "off",
"@next/next/no-img-element": "off"
}
}