-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.eslintrc.js
More file actions
37 lines (37 loc) · 880 Bytes
/
Copy path.eslintrc.js
File metadata and controls
37 lines (37 loc) · 880 Bytes
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
module.exports = {
root: true,
env: {
node: true
},
parser: 'vue-eslint-parser',
extends: [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint"
],
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser'
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"semi": ["error", "never"],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/no-non-null-assertion": 0
},
globals: {
uni: true,
wx: true,
uniCloud: true,
getApp: true,
__ctx__: true,
unidev: true,
ROUTES: true,
swan: true
}
};