-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 1.16 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
module.exports = {
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
spread: true,
experimentalObjectRestSpread: true,
classes: true,
},
sourceType: 'module',
},
env: {
browser: true,
node: true,
mocha: true,
es6: true,
},
extends: ['eslint:recommended', 'prettier', 'prettier/standard'],
plugins: ['prettier'],
rules: {
'no-console': ['error'],
'no-fallthrough': ['off'],
'no-loop-func': ['warn'],
'no-process-exit': ['off'],
'no-shadow': ['off'],
'no-underscore-dangle': ['off'],
'no-unused-vars': ['error', { args: 'all', argsIgnorePattern: '^__' }],
'no-useless-escape': ['warn'],
'no-var': ['error'],
camelcase: ['error', { properties: 'never' }],
'comma-dangle': ['off'],
'consistent-this': ['warn', 'self'],
curly: ['error', 'all'],
eqeqeq: ['off'],
'linebreak-style': ['error', 'unix'],
'prefer-const': ['error'],
quotes: ['off'],
'require-yield': ['warn'],
'prettier/prettier': 'error',
},
};