-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.json
executable file
·42 lines (42 loc) · 1.11 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
{
"env": {
"browser": true,
"es2021": true,
"jest/globals": true
},
"extends": [
"next/core-web-vitals",
"plugin:react/recommended",
"airbnb",
"prettier",
"plugin:jest/recommended",
"plugin:sonarjs/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier", "jest", "sonarjs"],
"rules": {
"sonarjs/cognitive-complexity": "error",
"sonarjs/no-identical-expressions": "error",
"react/require-default-props": "off",
"import/prefer-default-export": "off",
"no-unused-vars": "warn",
"react/jsx-filename-extension": "off",
"react/function-component-definition": "off",
"import/extensions": "off",
"no-restricted-exports": "off",
"eslint-disable no-return-await": "off",
"react/jsx-props-no-spreading": "off",
"consistent-return": "off",
"no-use-before-define": "off",
"no-undef": "off",
"no-void": "off",
"react/react-in-jsx-scope": "off"
}
}