forked from globalfund/data-explorer-client
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
69 lines (69 loc) · 1.91 KB
/
.eslintrc.js
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
module.exports = {
parser: "@typescript-eslint/parser",
settings: {
"import/resolver": {
node: {
paths: ["src"],
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
},
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: "./",
},
extends: [
"eslint-config-react-app",
"react-app",
"airbnb-typescript-prettier",
"plugin:sonarjs/recommended",
],
plugins: ["sonarjs"],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"react/no-array-index-key": 0,
"react/jsx-fragments": ["off", "element"],
"react/jsx-props-no-spreading": 0,
"react/destructuring-assignment": 0,
"no-invalid-double-slash-comments": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": 0,
"@typescript-eslint/triple-slash-reference": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-ignore ": 0,
"@typescript-eslint/no-unused-vars": 0,
"react-hooks/exhaustive-deps": 0,
"no-restricted-imports": [
"error",
{
paths: [
{
name: "styled-components",
message: "Please import from styled-components/macro.",
},
],
patterns: ["!styled-components/macro"],
},
],
},
/*overrides: [
{
files: ['**!/!*.ts?(x)'],
rules: {
'no-shadow': 'off',
'no-unused-vars': 'off',
'react/destructuring-assignment': 0,
'react/jsx-fragments': 0,
'react/jsx-props-no-spreading': 0,
'react-hooks/exhaustive-deps': 0,
'@typescript-eslint/triple-slash-reference': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/ban-ts-ignore ': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-empty-function': 0,
'no-underscore-dangle': 'off',
'no-useless-escape': 'off',
},
},
],*/
};