/
.eslintrc.js
110 lines (103 loc) · 2.16 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
module.exports = {
root: true,
env: {
node: true,
"cypress/globals": true,
},
extends: [
"airbnb-base",
"plugin:compat/recommended",
"plugin:vue/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"@vue/typescript",
],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
plugins: [
"@typescript-eslint",
"cypress",
"import",
"prettier",
"sort-class-members",
],
settings: {
"html/indent": "tab",
polyfills: [
"Promise",
"Object.assign",
"Object.entries",
"Object.values",
"Array.iterator",
],
"import/resolver": {
typescript: {},
alias: {
map: [
["@", "./app/frontend"],
["~", "."],
],
},
},
},
rules: {
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
},
],
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
"no-bitwise": "off",
"no-console": [
"error",
{
allow: ["info", "warn", "error"],
},
],
"no-empty-function": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"no-undef": "off",
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
},
],
"no-useless-constructor": "off",
"no-useless-escape": "off",
"no-use-before-define": "off",
"sort-class-members/sort-class-members": [
2,
{
order: [
"[static-properties]",
"[static-methods]",
"[properties]",
"constructor",
"[getters]",
"[everything-else]",
],
},
],
"space-before-function-paren": "off",
"spaced-comment": [
2,
"always",
{
exceptions: ["-"],
markers: ["/"],
},
],
"vue/component-name-in-template-casing": "error",
"vue/no-v-html": "off",
},
};