-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
35 lines (35 loc) · 918 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
module.exports = {
env: {
browser: true,
amd: true,
node: true,
},
extends: [
// add more generic rulesets here, such as:
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier",
// 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
plugins: ["@typescript-eslint", "prettier"],
rules: {
"prettier/prettier": "error",
"vue/multi-word-component-names": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error", // or "error"
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
};