-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (48 loc) · 1.17 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
module.exports = {
env: {
browser: true,
es2021: true,
},
overrides: [
{
extends: ["plugin:vue/essential", "vuepress", "prettier"],
plugins: ["vue", "prettier"],
files: ["*.js", "*.vue"],
parserOptions: {
parser: "@babel/eslint-parser",
ecmaVersion: 12,
sourceType: "module",
requireConfigFile: false,
},
rules: {
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"import/no-unresolved": [
2,
{
ignore: ["^@"],
},
],
curly: ["error", "all"],
"vue/multi-word-component-names": "off",
},
},
{
files: ["*.md"],
parser: "eslint-plugin-markdownlint/parser",
extends: ["plugin:markdownlint/recommended"],
rules: {
"markdownlint/md001": ["off"], // header hierarchy
"markdownlint/md013": ["warn", { line_length: 90 }], // line length limit
"markdownlint/md024": ["off"], // no two headers with the same text
"markdownlint/md025": ["error", { front_matter_title: "" }], // h1 != front matter title
"markdownlint/md033": ["off"], // no inline html
"markdownlint/md046": ["error", { style: "fenced" }], // code block style
},
},
],
};