forked from xh-polaris/meowchat-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 870 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2021: true
},
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: "latest",
sourceType: "module"
},
globals: {
uni: "readonly",
UniNamespace: "readonly"
},
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
rules: {
"vue/multi-word-component-names": "off",
"vue/valid-v-on": "error",
"no-undef": "error",
"@typescript-eslint/no-explicit-any": "off"
},
settings: {
"import/resolver": {
typescript: true,
node: true,
alias: {
map: [["@", "./src"]],
extensions: [".ts", ".js", ".jsx", ".tsx"]
}
}
}
};