-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
31 lines (31 loc) · 1006 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
module.exports = {
'extends': [
'airbnb-base',
],
'rules': {
'spaced-comment': [ 2, 'always', { 'exceptions': [ '-', '+' ] } ],
'no-restricted-syntax': [ 'off' ],
'object-curly-spacing': [ 'off' ],
'arrow-parens': ['error', 'as-needed'],
'object-property-newline': [ 'off', { 'allowMultiplePropertiesPerLine': true } ],
'no-underscore-dangle': [ 'off' ],
'comma-dangle': [ 'error', {
'arrays': 'never',
'objects': 'never',
'imports': 'never',
'exports': 'never',
'functions': 'ignore',
}],
'import/no-extraneous-dependencies': [ 'off', { 'devDependencies': [ 'util/', '**/*.test.js', '**/*.spec.js' ] } ],
'no-console': [ 'warn', { allow: [ 'error' ] } ],
// 'quotes': ['error', 'single'],
// no support in 'babel-eslint'; should be 'error'
'no-await-in-loop': [ 'off' ],
'import/prefer-default-export': [ 'off' ],
'camelcase': [ 'off' ],
},
'env': {
'node': true,
'jest': true
}
}