-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 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
module.exports = {
root: true,
env: {
node: true,
},
parserOptions: {
ecmaVersion: 2017,
},
rules: {
camelcase: ['error', { properties: 'never' }],
indent: ['error', 2],
'comma-dangle': ['error', 'always-multiline'],
'default-case': 'error',
eqeqeq: 'warn',
'no-alert': 'warn',
'no-await-in-loop': 'error',
'no-case-declarations': 'error',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-const-assign': 'error',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-duplicate-imports': 'error',
'no-unreachable': 'warn',
'no-else-return': 'warn',
'no-mixed-spaces-and-tabs': 'error',
'no-multi-spaces': 'warn',
'no-unused-vars': 'warn',
'no-use-before-define': 'warn',
'no-useless-return': 'warn',
'no-var': 'error',
'prefer-const': 'warn',
semi: ['error', 'always'],
'space-before-function-paren': ['error', 'always'],
'standard/computed-property-even-spacing': 'off',
yoda: 'error',
},
};