-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.eslintrc.js
45 lines (44 loc) · 1.06 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
const path = require('path');
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'plugin:vue/essential',
'airbnb-base',
],
settings: {
'import/resolver': {
webpack: {
config: path.resolve(__dirname, './build/webpack.base.conf.js')
}
}
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'linebreak-style': 'off',
'no-mixed-operators': 'off',
'max-len': [1, 300],
'default-case': 0,
'func-names': 0,
'no-param-reassign': 0,
'no-console': 'off',
'no-underscore-dangle': 'off',
'no-lonely-if': 0,
'import/no-extraneous-dependencies': 0,
'global-require': 0,
'prefer-promise-reject-errors': 'off',
"consistent-return": 0,
"no-prototype-builtins": 0,
"no-restricted-globals": 0,
"class-methods-use-this": 0,
'no-restricted-syntax': 'off',
'guard-for-in': 'off',
},
parserOptions: {
parser: 'babel-eslint',
},
};