-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
39 lines (39 loc) · 904 Bytes
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2021: true,
},
plugins: ["prettier"],
extends: [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"@vue/typescript/recommended",
// Add under other rules
"@vue/prettier",
],
parserOptions: {
ecmaVersion: 2021,
},
ignorePatterns: ["locale/*.ts"],
rules: {
"prettier/prettier": "error",
"no-console": "warn",
"no-debugger": "error",
"no-undef": "off",
quotes: [1, "double"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-namespace": "off",
"vue/valid-template-root": "off",
"vue/multi-word-component-names": "off",
"vue/require-default-prop": "off",
"@typescript-eslint/no-non-null-assertion": "off",
},
globals: {
defineEmits: "readonly",
defineProps: "readonly",
NodeJS: "readonly",
},
};