forked from birarekinjal/Sunrise-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
89 lines (88 loc) · 2.48 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
extends: ["airbnb-typescript"],
parser: '@typescript-eslint/parser',
plugins: ['react', "import", '@typescript-eslint'],
parserOptions: {
"requireConfigFile": false,
"ecmaVersion": 6,
"project": './tsconfig.json',
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"babelOptions": {
"presets": ["@babel/preset-react"],
},
},
env: {
browser: true,
node: true,
},
rules: {
'no-use-before-define': 'off',
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
'react/jsx-filename-extension': ['warn', { extensions: ['.tsx'] }],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx', '.ts'] }],
'react/prop-types': 'off',
'comma-dangle': 'off',
'max-len': ['error', { code: 220 }],
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/accessible-emoji': 'off',
'react/jsx-props-no-spreading': 'off',
'react/state-in-constructor': 'off',
'react/no-unused-state': 'off',
'import/no-cycle': 'off',
'no-shadow': 'off',
'no-console': 'error',
'max-len': ['error', { code: 250 }],
'no-unused-expressions': 'off',
'no-nested-ternary': 'off',
'no-underscore-dangle': 'off',
'consistent-return': 'off',
'no-param-reassign': 'off',
camelcase: 'off',
'global-require': 'off',
'no-useless-concat': 'off',
'react/no-did-update-set-state': 'off',
'react-hooks/exhaustive-deps': 'off',
eqeqeq: 'off',
// 'no-undef': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'no-script-url': 'off',
'react/jsx-indent': 'off',
'react/no-unescaped-entities': 'off',
'react/jsx-closing-tag-location': 'off',
'no-trailing-spaces': 'off',
indent: 'off',
'padded-blocks': 'off',
'no-useless-escape': 'off',
'react/no-array-index-key': 'off',
'no-else-return': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
"@typescript-eslint/naming-convention": [
"warn",
{
selector: "variable",
format: ["camelCase"]
},
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enumMember",
"format": ["camelCase", "UPPER_CASE"]
}
]
},
};