-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.37 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
module.exports = {
extends: ['eslint-config-airbnb', 'prettier'],
plugins: ['react', 'import', 'prettier'],
parser: 'babel-eslint',
env: {
es6: true,
browser: true,
},
rules: {
'prettier/prettier': ['warn'],
'max-len': [2, 120, 2, { ignoreComments: true }],
'class-methods-use-this': 0,
'jsx-a11y/href-no-hash': 'off',
'react/jsx-tag-spacing': 1,
'react/no-danger': 0,
'no-underscore-dangle': 0,
'global-require': 0,
'no-console': 0,
'new-cap': 0,
'eol-last': 0,
'jsx-a11y/label-has-for': 0,
'linebreak-style': 0,
'consistent-return': 0,
'react/forbid-prop-types': 0,
'import/prefer-default-export': 0,
'no-unescaped-entities': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/anchor-is-valid': 0,
'no-shadow': 0,
'prefer-destructuring': 0,
'function-paren-newline': 0,
'no-restricted-globals': 0,
'no-buffer-constructor': 0,
'no-plusplus': 0,
'no-unused-vars': 1,
'react/no-unused-prop-types': 1,
'react/prop-types': ['warn', { ignore: ['className', 'children', 'history'] }],
},
globals: {
web3: true,
window: true,
document: true,
fetch: true,
localStorage: true,
},
parserOptions: {
ecmaVersion: 10,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
};