-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
92 lines (88 loc) · 2.1 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
module.exports = {
root: true,
parserOptions: {
parser: "@typescript-eslint/parser",
},
env: {
node: true,
jest: true,
},
rules: {
"no-console": 2,
"no-debugger": 2,
"vue/attributes-order": 2,
"vue/eqeqeq": 2,
"vue/html-self-closing": 1,
"vue/match-component-file-name": 1,
"vue/no-boolean-default": "off",
"vue/no-restricted-syntax": 2,
"vue/no-side-effects-in-computed-properties": 1,
"vue/no-use-v-if-with-v-for": 2,
"vue/no-v-html": "off",
"vue/require-default-prop": "off",
"vue/require-direct-export": 2,
"vue/require-prop-type-constructor": 2,
"vue/require-prop-types": 2,
"vue/require-render-return": 2,
"vue/require-v-for-key": 2,
"vue/return-in-computed-property": 2,
"vue/this-in-template": 2,
"vue/use-v-on-exact": 1,
"vue/custom-event-name-casing": 0,
"vue/v-on-style": 2,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/camelcase": 0,
"vue/valid-template-root": 2,
"vue/valid-v-for": 2,
"no-new": "off",
"vue/name-property-casing": [2, "kebab-case"],
camelcase: "off",
radix: "off",
"vue/order-in-components": [
2,
{
order: [
"el",
"name",
"parent",
"functional",
["delimiters", "comments"],
["components", "directives", "filters"],
"extends",
"mixins",
"inheritAttrs",
"model",
["props", "propsData"],
"fetch",
"asyncData",
"data",
"computed",
"watch",
"methods",
"LIFECYCLE_HOOKS",
"head",
["template", "render"],
"renderError",
],
},
],
"vue/component-tags-order": [
2,
{
order: ["template", "script", "style"],
},
],
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
env: {
jest: true,
},
},
],
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/typescript"],
};