-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (41 loc) · 938 Bytes
/
.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
module.exports = {
parser: 'babel-eslint',
plugins: ['import'],
extends: 'airbnb',
env: {
es6: true,
browser: true,
node: true,
mocha: true,
},
rules: {
'react/jsx-filename-extension': 'off',
'react/jsx-closing-bracket-location': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/forbid-prop-types': 'off',
'react/sort-comp': 'off',
'class-methods-use-this': 'off',
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
'no-param-reassign': [
'error',
{
props: false,
},
],
'max-len': ['error', { code: 120 }],
},
globals: {
logger: true,
},
};