-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (62 loc) · 1.54 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
module.exports = {
extends: ["plugin:prettier/recommended", "plugin:md/recommended"],
overrides: [
{
files: ["*.md.ts"],
rules: {
"no-unused-vars": "off",
"no-undef": "off",
},
},
{
files: ["*.md.vue"],
extends: [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier",
],
rules: {
"no-undefined": "off",
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"vue/no-parsing-error": "off",
"vue/require-v-for-key": "off",
"vue/multi-word-component-names": "off",
"vue/no-useless-template-attributes": "off",
},
},
{
files: ["*.md"],
parser: "markdown-eslint-parser",
rules: {
"md/remark": [
"error",
{
plugins: [["lint-maximum-line-length", false]],
},
],
"prettier/prettier": [
"error",
{
semi: false,
tabWidth: 2,
singleQuote: true,
jsxSingleQuote: true,
bracketSpacing: true,
printWidth: 120,
trailingComma: "es5",
bracketSameLine: false,
useTabs: false,
parser: "markdown",
arrowParens: "always",
singleAttributePerLine: true,
endOfLine: "auto",
quoteProps: "consistent",
},
],
},
},
],
};