-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
66 lines (66 loc) · 1.74 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// eslint-disable-next-line no-undef
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:vue/vue3-recommended", "prettier"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: ["vue", "simple-import-sort", "prettier"],
globals: {
visit: "readonly",
route: "readonly",
filters: "readonly",
require: true,
_: true,
IS_PROD: true,
APR_FACTOR: true,
$echo: true,
axios: true
},
rules: {
"require-jsdoc": "warn",
"valid-jsdoc": "warn",
"sort-imports": ["error", {ignoreDeclarationSort: true, ignoreCase: true}],
"simple-import-sort/imports": "error",
"vue/no-unused-components": "warn",
"no-unused-vars": [
"warn", // or error
{
varsIgnorePattern: "^_",
argsIgnorePattern: "visit",
},
],
"vue/no-v-html": "off",
"vue/no-reserved-component-names": "off",
"vue/name-property-casing": "off",
"vue/multi-word-component-names": "off",
"vue/attributes-order": "error",
"vue/html-quotes": "error",
"vue/mustache-interpolation-spacing": ["error", "always"],
"vue/no-side-effects-in-computed-properties": "error",
"vue/order-in-components": [
"error",
{
order: [
"el",
"name",
"parent",
"LIFECYCLE_HOOKS",
"methods",
["template", "render"],
"renderError",
],
},
],
"vue/prop-name-casing": [0, "snake_case"],
"vue/require-default-prop": "off",
"vue/require-prop-types": "warn",
"vue/require-valid-default-prop": "error",
"vue/return-in-computed-property": "error",
"prettier/prettier": ["error", {bracketSameLine: false}]
},
};