-
Notifications
You must be signed in to change notification settings - Fork 59
/
.eslintrc.cjs
49 lines (49 loc) · 1.77 KB
/
.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
40
41
42
43
44
45
46
47
48
49
/* eslint-env node */
/** @type {import('eslint').Linter.Config} */ // This provides type hints for the configuration options below.
module.exports = {
root: true,
env: {
browser: true,
es2022: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:vue/essential",
"plugin:vuetify/base",
// "plugin:vuetify/recommended",
"@vue/typescript/recommended",
// "@vue/typescript/recommended",
"plugin:lodash/recommended",
],
rules: {
"arrow-parens": ["warn", "always"],
"camelcase": "off",
"comma-dangle": "off",
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-trailing-spaces": "warn",
"object-curly-spacing": ["warn", "always"],
"prefer-const": "warn",
"quotes": "off",
"semi": "off",
"space-infix-ops": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/comma-dangle": ["warn", "only-multiline"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/no-loss-of-precision": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"@typescript-eslint/semi": "warn",
"@typescript-eslint/space-infix-ops": "warn",
"vue/no-v-text-v-html-on-component": "warn",
"vue/valid-v-slot": ["error", { allowModifiers: true }],
"lodash/import-scope": ["warn", "method"],
"lodash/prefer-constant": "off",
"lodash/prefer-lodash-method": "off",
"lodash/prefer-lodash-typecheck": "off",
"lodash/prefer-matches": "off",
"lodash/prop-shorthand": "off",
},
};