-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.45 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
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
ignorePatterns: ["node_modules/", ".nuxt/", "dist/", "coverage/", "*.vue"],
extends: [
"eslint:recommended",
"plugin:vue/vue3-essential",
"@nuxtjs/eslint-config-typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["vue", "@typescript-eslint", "prettier"],
rules: {
indent: "off",
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
curly: ["error", "all"],
eqeqeq: "error",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"prefer-rest-params": "off",
"no-control-regex": "off",
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-useless-constructor": "off",
"func-style": ["error", "declaration", { allowArrowFunctions: false }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/quotes": [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: false },
],
},
};