forked from UHM-SCADA-Lab/UHM-SCADA-Lab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
55 lines (55 loc) · 1.4 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
globals: {
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'jsx',
'react',
],
rules: {
'arrow-parens': 'off',
camelcase: 'off',
'class-methods-use-this': 'off',
'func-names': 'off',
'import/no-absolute-path': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/imports-first': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
indent: ['error', 2],
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'linebreak-style': 'off',
'max-len': 'off',
'no-confusing-arrow': ['error', { allowParens: true }],
'no-plusplus': 'off',
'no-underscore-dangle': 'off',
'object-curly-newline': 'off',
'object-property-newline': 'off',
'object-shorthand': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'prefer-arrow-callback': 'off',
'prefer-destructuring': 'off',
'prefer-promise-reject-errors': 'off',
'react/function-component-definition': [2, { namedComponents: 'arrow-function' }],
'react/jsx-one-expression-per-line': 'off',
'react/no-array-index-key': 'off',
},
};