-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.08 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
module.exports = {
extends: ['airbnb-base'],
env: {
es6: true,
node: true,
mocha: true
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018
},
rules: {
'no-param-reassign': 'error',
'prefer-template': 'error',
'no-trailing-spaces': 'error',
'no-console': 'off',
'no-use-before-define': 'warn',
'object-curly-spacing': 'error',
'no-var': 'error',
'import/newline-after-import': 'off',
'max-len': ['error', 220],
'brace-style': ['error', 'stroustrup'],
indent: ['warn', 4],
'comma-dangle': 'off',
'no-underscore-dangle': 'off',
'linebreake-style': 'off',
'object-curly-newline': 'off',
'newline-per-chained-call': 'off',
'arrow-body-style': 'off',
'class-methods-use-this': 'off',
'no-unused-expressions': 0,
'arrow-parens': 'off',
'no-await-in-loop': 'off',
'no-constant-condition': ['error', { checkLoops: false }],
'no-restricted-syntax': 'off'
}
};