-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (50 loc) · 1.04 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
const path = require('path');
module.exports = {
env: {
browser: false,
node: true,
mocha: true,
},
extends: 'airbnb-base',
plugins: [
'standard',
'promise',
],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
path.join(__dirname, 'test/**'),
],
},
],
'prefer-destructuring': 'warn',
'function-paren-newline': 'off',
'object-curly-newline': 'off',
'one-var': 'off',
'no-mixed-operators': 'off',
'arrow-body-style': 'off',
'brace-style': 'off',
'padded-blocks': 'off',
'no-plusplus': 'off',
'arrow-spacing': 'off',
'object-curly-spacing': 'off',
'prefer-const': 'warn',
'no-unused-vars': 'warn',
'object-shorthand': 'warn',
'no-param-reassign': 'warn',
'no-console': 'warn',
'newline-per-chained-call': 'off',
'no-continue': 'off',
'no-multi-spaces': 'off',
'max-len': [
'error',
140,
],
'linebreak-style': [
'error',
'unix',
],
},
};