-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.42 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
46
47
module.exports = {
root: true,
env: {
node: true,
},
globals: {
describe: true,
it: true,
expect: true,
beforeEach: true,
defineEmits: "readonly",
defineProps: "readonly",
defineExpose: "readonly",
withDefaults: "readonly",
WeixinJSBridge: "readonly",
ElMessage: "readonly",
ElMessageBox: "readonly",
ElLoading: "readonly",
ElNotification: "readonly"
},
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier/@typescript-eslint"],
parser: "vue-eslint-parser",
parserOptions: {
// Use babel-eslint for JavaScript
parser: "babel-eslint",
ecmaVersion: 2017,
// With import/export syntax
sourceType: "module",
},
plugins: ["vue", "@typescript-eslint", "simple-import-sort"],
parserOptions: {
ecmaVersion: 2020,
},
ignorePatterns: [".eslintrc.js"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/no-mutating-props": 0,
"vue/no-v-model-argument": "off",
endOfLine: 0,
"@typescript-eslint/no-this-alias": ["off"],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"vue/no-v-model-argument": "off"
},
};