This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
109 lines (109 loc) · 2.92 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
module.exports = {
parserOptions: {
ecmaVersion: 11,
requireConfigFile: false,
parser: "@babel/eslint-parser",
sourceType: "module",
},
extends: [
"airbnb-base",
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:vue/recommended",
"plugin:@intlify/vue-i18n/recommended",
],
globals: {
process: true,
require: true,
chrome: true,
},
env: {
browser: true,
es2020: true,
node: true,
},
settings: {
"import/resolver": {
node: {
extensions: [".mjs", ".js", ".json", ".vue"],
},
alias: {
map: [
["@", "./src/js/"],
],
extensions: [".ts", ".js", ".jsx", ".json", ".vue"],
},
},
"import/extensions": [
".js",
".mjs",
".jsx",
".vue",
],
"import/core-modules": [],
"import/ignore": [
"node_modules",
"\\.(coffee|scss|css|less|hbs|svg|json)$",
],
"vue-i18n": {
localeDir: "./src/js/i18n/*.{json,json5,yaml,yml}",
messageSyntaxVersion: "^9.0.0",
},
},
rules: {
"no-multi-spaces": 0,
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
"no-console": 0,
camelcase: "off",
indent: "off",
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "never"],
"max-len": ["error", 120, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
"no-param-reassign": ["error", { props: false }],
"no-shadow": ["error", { allow: ["state"] }],
"object-curly-newline": "off",
"vue/html-indent": ["error", 4],
"vue/max-attributes-per-line": 0,
"import/extensions": ["error", "always", {
js: "never",
mjs: "never",
jsx: "never",
ts: "never",
tsx: "never",
vue: "never",
}],
"no-new": "off",
"no-underscore-dangle": ["error", {
allow: [
"_remove",
"_bulkRemove",
"_getData",
"_beforeRouteUpdate",
"_getModel",
"_submit",
"_remove",
"_multiplier",
],
}],
"@intlify/vue-i18n/no-dynamic-keys": "error",
"@intlify/vue-i18n/no-unused-keys": [
"error",
{
extensions: [".js", ".vue"],
},
],
},
plugins: [
"import",
"vue",
],
}