-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
54 lines (54 loc) · 1.49 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 = {
parser: 'babel-eslint',
extends: 'airbnb',
plugins: ['react', 'jsx-a11y', 'import'],
rules: {
'import/extensions': 'off',
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'react/no-string-refs': 'off',
'react/prefer-stateless-function': 'off',
'react/no-multi-comp': 'off',
'react/sort-comp': 'off',
'react/jsx-boolean-value': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-no-bind': 'off',
'react/no-array-index-key': 'off',
'no-underscore-dangle': 'off',
'class-methods-use-this': 'off',
'global-require': 'off',
'no-console': 'off',
'arrow-parens': 'off',
'consistent-return': 'off',
'no-mixed-operators': 'off',
'no-use-before-define': 'off',
'no-unused-expressions': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'max-len': ['warn', 120],
'no-param-reassign': ['error', { props: false }],
camelcase: 'off',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
},
globals: {
fetch: true,
require: true,
api: true,
logger: true,
tracker: true,
constants: true,
navigator: true,
document: true,
window: true,
},
};