-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.33 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 = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/vue3-recommended'],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
// 'import/no-named-as-default': 0,
// 'import/no-named-as-default-member': 0,
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// 'linebreak-style': 0,
// 'eslint linebreak-style': [0, 'error', 'windows'],
// 'max-len': ['error', { 'code': 180 }],
// 'no-param-reassign': [ 'error',
// {
// props: true,
// ignorePropertyModificationsFor: [
// 'state', // for vuex state
// 'acc', // for reduce accumulators
// 'e', // for e.returnvalue
// 'ctx', // for Koa routing
// 'req', // for Express requests
// 'request', // for Express requests
// 'res', // for Express responses
// 'response', // for Express responses
// '$scope', // for Angular 1 scopes
// ]
// }
// ]
// 'eslint no-tabs': ["error", { allowIndentationTabs: true }],
},
globals: {
'localStorage': true,
'fetch': true,
},
};