-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
36 lines (33 loc) · 827 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
32
33
34
35
36
module.exports = {
root: true,
// parser: 'babel-eslint',
// parserOptions: {
// sourceType: 'module'
// },
extends: 'style-guide',
plugins: [
],
env: {
node: true,
mocha: true,
},
globals: {
},
settings: {
},
rules: {
'wrap-iife': ['error', 'any'],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// This rule warns the usage of `console`
// 不禁用 console
'no-console': 'off',
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// 'no-unused-vars': 'off',
'global-require': 'off',
'prefer-destructuring': 'off',
// https://eslint.cn/docs/rules/guard-for-in
'guard-for-in': 'off',
// specify the maximum length of a line in your program
},
};