-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1004 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
37
38
39
40
41
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
globals: {
Vue: false,
weex: false,
window: false,
'@': false,
},
parserOptions: {
parser: 'babel-eslint',
// ecmaFeatures: { "legacyDecorators": true }
},
rules: {
'prefer-destructuring': 0,
'vue/no-side-effects-in-computed-properties': 0,
'no-useless-escape': 0,
'max-len': 0,
'linebreak-style': 0, // 不校验换行符
semi: ['error', 'never'], // 不使用分号
'no-debugger': 0,
'no-console': 0,
'no-new': 0,
'no-underscore-dangle': 0,
'prefer-promise-reject-errors': 0,
'no-param-reassign': 0,
'no-extend-native': 0,
'no-restricted-syntax': 0,
'import/prefer-default-export': 0, // 禁用强制使用默认导出
'import/no-extraneous-dependencies': ['error', {
devDependencies: true
}], // 禁止引入未添加到依赖中的库
},
}