Skip to content

Commit 9d2005b

Browse files
committedAug 4, 2021
devop: cleanuo
1 parent 06044f7 commit 9d2005b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1587
-1828
lines changed
 

‎.eslintrc

-30
This file was deleted.

‎.eslintrc.js

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module.exports = {
2+
globals: {
3+
VERSION: 'readonly',
4+
ROUTER_MODE: 'readonly',
5+
NODE_ENV: 'readonly'
6+
},
7+
root: true,
8+
env: {
9+
node: true,
10+
jest: true
11+
},
12+
extends: ['plugin:vue/recommended', '@vue/prettier', 'eslint:recommended'],
13+
rules: {
14+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
15+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
16+
'no-else-return': ['error', { allowElseIf: true }],
17+
'arrow-parens': 'off',
18+
'generator-star-spacing': 'off',
19+
semi: 'off',
20+
'prefer-const': 'error',
21+
'no-var': 'error',
22+
'security/detect-new-buffer': 'off',
23+
'security/detect-object-injection': 'off',
24+
'require-atomic-updates': 'off',
25+
'no-prototype-builtins': 'off',
26+
'no-irregular-whitespace': [
27+
'error',
28+
{
29+
skipComments: true,
30+
skipTemplates: true,
31+
skipStrings: true,
32+
skipRegExps: true
33+
}
34+
],
35+
'vue/custom-event-name-casing': 'off'
36+
},
37+
parserOptions: {
38+
parser: 'babel-eslint'
39+
}
40+
};

0 commit comments

Comments
 (0)
Please sign in to comment.