-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
72 lines (71 loc) · 2.05 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
// "@nuxtjs/eslint-config-typescript",
// "plugin:nuxt/recommended",
// "plugin:codeceptjs/recommended"
"plugin:vue/essential",
"@vue/standard",
"@vue/typescript/recommended"
],
plugins: [
],
// add your custom rules here
rules: {
indent: ["warn", 4],
"vue/script-indent": ["warn", 4, {
baseIndent: 1,
switchCase: 0,
ignores: []
}],
camelcase: "warn",
"no-lonely-if": "warn",
"no-trailing-spaces": "warn",
"no-cond-assign": "warn",
"no-throw-literal": "warn",
"prefer-regex-literals": "warn",
"no-multiple-empty-lines": "warn",
'no-unused-expressions': 'warn',
"no-useless-escape": "warn",
"vue/multi-word-component-names": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"no-return-assign": "warn",
"object-curly-spacing": "warn",
"quote-props": "warn",
"vue/html-indent": ["warn", 4],
"vue/this-in-template": ["error", "never"],
"comma-dangle": "off",
"vue/html-self-closing": "off",
"vue/custom-event-name-casing": "off",
"vue/singleline-html-element-content-newline": "off",
"vue/attributes-order": "off",
"vue/order-in-components": "off",
"space-before-function-paren": "off",
"vue/no-v-model-argument": "off",
// 'codeceptjs/no-actor-in-scenario': 2
semi: ["warn", "always"],
quotes: ["warn", "double"],
"@typescript-eslint/no-unused-vars": "off",
"no-unused-vars": "off",
"require-await": "off",
"no-console": "off"
},
overrides: [
{
files: ["*.vue"],
rules: {
indent: "off"
}
},
{
files: ["*.js"],
rules: {
"no-unused-expressions": "off",
}
},
],
};