@schoero/configs 0.0.0-beta.0 → 0.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/changelogen/changelog.js +4 -4
- package/cspell/cspell.json +18 -18
- package/eslint/ignore.js +17 -17
- package/eslint/imports.js +7 -8
- package/eslint/index.js +4 -6
- package/eslint/javascript.js +16 -20
- package/eslint/jsdoc.js +6 -6
- package/eslint/json.js +27 -29
- package/eslint/jsx.js +15 -5
- package/eslint/markdown.js +9 -14
- package/eslint/stylistic.js +28 -58
- package/eslint/tailwind.js +5 -6
- package/eslint/typescript.js +67 -53
- package/eslint/vitest.js +9 -12
- package/eslint/yaml.js +23 -22
- package/package.json +32 -30
- package/unwritten/unwritten.js +5 -5
- package/vite/vite.config.js +3 -3
- /package/markdownlint/{index.jsonc → markdownlint.jsonc} +0 -0
package/README.md
CHANGED
|
@@ -101,6 +101,42 @@ npm i --save-dev @schoero/configs
|
|
|
101
101
|
}
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
+
```jsonc
|
|
105
|
+
// .vscode/launch.json
|
|
106
|
+
{
|
|
107
|
+
"configurations": [
|
|
108
|
+
{
|
|
109
|
+
"args": [
|
|
110
|
+
"run",
|
|
111
|
+
"${relativeFileDirname}/${fileBasenameNoExtension}"
|
|
112
|
+
],
|
|
113
|
+
"autoAttachChildProcesses": true,
|
|
114
|
+
"console": "integratedTerminal",
|
|
115
|
+
"name": "debug current test file",
|
|
116
|
+
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
|
|
117
|
+
"request": "launch",
|
|
118
|
+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
|
|
119
|
+
"smartStep": true,
|
|
120
|
+
"type": "node"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"args": [
|
|
124
|
+
"run",
|
|
125
|
+
"${relativeFileDirname}/${fileBasenameNoExtension}"
|
|
126
|
+
],
|
|
127
|
+
"autoAttachChildProcesses": true,
|
|
128
|
+
"console": "integratedTerminal",
|
|
129
|
+
"name": "debug current test file with node internals",
|
|
130
|
+
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
|
|
131
|
+
"request": "launch",
|
|
132
|
+
"skipFiles": [],
|
|
133
|
+
"smartStep": true,
|
|
134
|
+
"type": "node"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"version": "0.2.0"
|
|
138
|
+
}
|
|
139
|
+
```
|
|
104
140
|
|
|
105
141
|
### Scripts
|
|
106
142
|
|
package/changelogen/changelog.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/** @type { import('changelogen').ChangelogConfig } */
|
|
2
2
|
export default {
|
|
3
3
|
excludeAuthors: [
|
|
4
|
-
"Roger Schönbächler"
|
|
4
|
+
"Roger Schönbächler"
|
|
5
5
|
],
|
|
6
6
|
output: "CHANGELOG.md",
|
|
7
7
|
scopeMap: {},
|
|
8
8
|
templates: {
|
|
9
9
|
commitMessage: "chore(release): v{{newVersion}}",
|
|
10
10
|
tagBody: "v{{newVersion}}",
|
|
11
|
-
tagMessage: "v{{newVersion}}"
|
|
11
|
+
tagMessage: "v{{newVersion}}"
|
|
12
12
|
},
|
|
13
13
|
types: {
|
|
14
14
|
build: { semver: "patch", title: "Build" },
|
|
@@ -22,6 +22,6 @@ export default {
|
|
|
22
22
|
refactor: { semver: "patch", title: "Refactors" },
|
|
23
23
|
style: { title: "Styles" },
|
|
24
24
|
test: { title: "Tests" },
|
|
25
|
-
types: { semver: "patch", title: "Types" }
|
|
26
|
-
}
|
|
25
|
+
types: { semver: "patch", title: "Types" }
|
|
26
|
+
}
|
|
27
27
|
};
|
package/cspell/cspell.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dictionaries": [
|
|
3
|
-
"css
|
|
4
|
-
"html
|
|
5
|
-
"names
|
|
6
|
-
"npm
|
|
7
|
-
"svg
|
|
8
|
-
"vscode
|
|
3
|
+
"css",
|
|
4
|
+
"html",
|
|
5
|
+
"names",
|
|
6
|
+
"npm",
|
|
7
|
+
"svg",
|
|
8
|
+
"vscode",
|
|
9
9
|
"networking-terms",
|
|
10
10
|
"lorem-ipsum"
|
|
11
11
|
],
|
|
12
12
|
"dictionaryDefinitions": [
|
|
13
13
|
{
|
|
14
14
|
"addWords": false,
|
|
15
|
-
"name": "
|
|
16
|
-
"path": "./
|
|
15
|
+
"name": "css",
|
|
16
|
+
"path": "./dict/css.txt"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"addWords": false,
|
|
20
|
-
"name": "
|
|
21
|
-
"path": "./
|
|
20
|
+
"name": "html",
|
|
21
|
+
"path": "./dict/html.txt"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"addWords": false,
|
|
25
|
-
"name": "
|
|
26
|
-
"path": "./
|
|
25
|
+
"name": "names",
|
|
26
|
+
"path": "./dict/names.txt"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"addWords": false,
|
|
30
|
-
"name": "
|
|
31
|
-
"path": "./
|
|
30
|
+
"name": "npm",
|
|
31
|
+
"path": "./dict/npm.txt"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"addWords": false,
|
|
35
|
-
"name": "
|
|
36
|
-
"path": "./
|
|
35
|
+
"name": "svg",
|
|
36
|
+
"path": "./dict/svg.txt"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"addWords": false,
|
|
40
|
-
"name": "
|
|
41
|
-
"path": "./
|
|
40
|
+
"name": "vscode",
|
|
41
|
+
"path": "./dict/vscode.txt"
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"files": [
|
package/eslint/ignore.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/** @type {import("eslint").Linter.FlatConfig[]} */
|
|
2
2
|
export const ignore = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
]
|
|
3
|
+
{
|
|
4
|
+
ignores: [
|
|
5
|
+
"**/.git/**",
|
|
6
|
+
"**/node_modules/**",
|
|
7
|
+
"**/dist/**",
|
|
8
|
+
"**/lib/**",
|
|
9
|
+
"**/build/**",
|
|
10
|
+
"**/.vercel/**",
|
|
11
|
+
"**/__snapshots__/**",
|
|
12
|
+
"**/*.snap",
|
|
13
|
+
"**/package-lock.json",
|
|
14
|
+
"**/yarn.lock",
|
|
15
|
+
"**/pnpm-lock.yaml",
|
|
16
|
+
"**/bun.lockb"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
];
|
package/eslint/imports.js
CHANGED
|
@@ -11,11 +11,10 @@ export const imports = [
|
|
|
11
11
|
"eslint-plugin-unused-imports": eslintPluginUnusedImports,
|
|
12
12
|
"eslint-plugin-import-newlines": eslintPluginImportNewlines,
|
|
13
13
|
"eslint-plugin-import": eslintPluginImport,
|
|
14
|
-
"eslint-plugin-simple-import-sort": eslintPluginSimpleImportSort
|
|
14
|
+
"eslint-plugin-simple-import-sort": eslintPluginSimpleImportSort
|
|
15
15
|
},
|
|
16
16
|
rules: {
|
|
17
17
|
"eslint-plugin-unused-imports/no-unused-imports": "warn",
|
|
18
|
-
"eslint-plugin-unused-imports/no-unused-vars": "off",
|
|
19
18
|
|
|
20
19
|
"eslint-plugin-import/first": "warn",
|
|
21
20
|
"eslint-plugin-import/newline-after-import": ["warn", { count: 2 }],
|
|
@@ -72,10 +71,10 @@ export const imports = [
|
|
|
72
71
|
["^\\.\\.(?=/?\\u0000$)", "^\\.\\./?\\u0000$"],
|
|
73
72
|
|
|
74
73
|
// types from other relative imports. Put same-folder imports and `.` last
|
|
75
|
-
["^\\./(?=.*\\u0000$)", "^\\.(?=/?\\u0000$)", "^\\./?\\u0000$"]
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
74
|
+
["^\\./(?=.*\\u0000$)", "^\\.(?=/?\\u0000$)", "^\\./?\\u0000$"]
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
81
80
|
];
|
package/eslint/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ignore } from "./ignore.js";
|
|
2
|
-
import { jsdoc } from "./jsdoc.js";
|
|
3
2
|
import { json } from "./json.js";
|
|
4
3
|
import { markdown } from "./markdown.js";
|
|
5
4
|
import { typescript } from "./typescript.js";
|
|
@@ -9,25 +8,24 @@ import { yaml } from "./yaml.js";
|
|
|
9
8
|
|
|
10
9
|
export {
|
|
11
10
|
ignore,
|
|
12
|
-
jsdoc,
|
|
13
11
|
json,
|
|
14
12
|
markdown,
|
|
15
13
|
typescript,
|
|
16
14
|
vitest,
|
|
17
|
-
yaml
|
|
15
|
+
yaml
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
export default [
|
|
21
19
|
...ignore,
|
|
22
20
|
...json,
|
|
23
21
|
...yaml,
|
|
24
|
-
...jsdoc,
|
|
25
|
-
...vitest,
|
|
26
22
|
...typescript,
|
|
27
|
-
...
|
|
23
|
+
...vitest,
|
|
24
|
+
...markdown
|
|
28
25
|
];
|
|
29
26
|
|
|
30
27
|
export { imports } from "./imports.js";
|
|
31
28
|
export { javascript } from "./javascript.js";
|
|
29
|
+
export { jsdoc } from "./jsdoc.js";
|
|
32
30
|
export { jsx } from "./jsx.js";
|
|
33
31
|
export { tailwind } from "./tailwind.js";
|
package/eslint/javascript.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import eslintPluginImport from "eslint-plugin-import";
|
|
2
1
|
import eslintPluginJSDoc from "eslint-plugin-jsdoc";
|
|
3
|
-
import eslintPluginSimpleImportSort from "eslint-plugin-simple-import-sort";
|
|
4
2
|
import eslintPluginSortDestructureKeys from "eslint-plugin-sort-destructure-keys";
|
|
5
3
|
import eslintPluginSortKeys from "eslint-plugin-sort-keys";
|
|
6
4
|
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
|
7
|
-
import eslintPluginUnusedImports from "eslint-plugin-unused-imports";
|
|
8
5
|
import globals from "globals";
|
|
9
6
|
|
|
10
7
|
import { imports } from "./imports.js";
|
|
@@ -22,19 +19,18 @@ export const javascript = [
|
|
|
22
19
|
plugins: {
|
|
23
20
|
"eslint-plugin-unicorn": eslintPluginUnicorn,
|
|
24
21
|
"eslint-plugin-sort-destructure-keys": eslintPluginSortDestructureKeys,
|
|
25
|
-
"eslint-plugin-unused-imports": eslintPluginUnusedImports,
|
|
26
22
|
"eslint-plugin-sort-keys": eslintPluginSortKeys,
|
|
27
|
-
"eslint-plugin-
|
|
28
|
-
"eslint-plugin-simple-import-sort": eslintPluginSimpleImportSort,
|
|
29
|
-
"eslint-plugin-jsdoc": eslintPluginJSDoc,
|
|
23
|
+
"eslint-plugin-jsdoc": eslintPluginJSDoc
|
|
30
24
|
},
|
|
31
25
|
languageOptions: {
|
|
26
|
+
ecmaVersion: "latest",
|
|
27
|
+
sourceType: "module",
|
|
32
28
|
globals: {
|
|
33
29
|
...globals.browser,
|
|
34
30
|
...globals.node,
|
|
35
31
|
...globals.builtin,
|
|
36
|
-
...globals.worker
|
|
37
|
-
}
|
|
32
|
+
...globals.worker
|
|
33
|
+
}
|
|
38
34
|
},
|
|
39
35
|
rules: {
|
|
40
36
|
|
|
@@ -99,7 +95,7 @@ export const javascript = [
|
|
|
99
95
|
"no-unused-expressions": ["warn", {
|
|
100
96
|
allowShortCircuit: true,
|
|
101
97
|
allowTaggedTemplates: true,
|
|
102
|
-
allowTernary: true
|
|
98
|
+
allowTernary: true
|
|
103
99
|
}],
|
|
104
100
|
|
|
105
101
|
// no useless
|
|
@@ -131,31 +127,31 @@ export const javascript = [
|
|
|
131
127
|
"eslint-plugin-unicorn/prefer-node-protocol": "warn",
|
|
132
128
|
"eslint-plugin-unicorn/number-literal-case": "warn",
|
|
133
129
|
"eslint-plugin-unicorn/template-indent": ["warn", {
|
|
134
|
-
tags: ["ts"]
|
|
130
|
+
tags: ["ts"]
|
|
135
131
|
}],
|
|
136
132
|
"eslint-plugin-unicorn/no-useless-undefined": ["warn", {
|
|
137
|
-
checkArguments: false
|
|
133
|
+
checkArguments: false
|
|
138
134
|
}],
|
|
139
135
|
"eslint-plugin-unicorn/numeric-separators-style": ["warn", {
|
|
140
136
|
binary: {
|
|
141
137
|
groupLength: 4,
|
|
142
|
-
minimumDigits: 0
|
|
138
|
+
minimumDigits: 0
|
|
143
139
|
},
|
|
144
140
|
hexadecimal: {
|
|
145
141
|
groupLength: 2,
|
|
146
|
-
minimumDigits: 0
|
|
142
|
+
minimumDigits: 0
|
|
147
143
|
},
|
|
148
144
|
number: {
|
|
149
145
|
groupLength: 3,
|
|
150
|
-
minimumDigits: 5
|
|
146
|
+
minimumDigits: 5
|
|
151
147
|
},
|
|
152
148
|
octal: {
|
|
153
149
|
groupLength: 4,
|
|
154
|
-
minimumDigits: 0
|
|
150
|
+
minimumDigits: 0
|
|
155
151
|
},
|
|
156
|
-
onlyIfContainsSeparator: true
|
|
157
|
-
}]
|
|
152
|
+
onlyIfContainsSeparator: true
|
|
153
|
+
}]
|
|
158
154
|
|
|
159
|
-
}
|
|
160
|
-
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
161
157
|
];
|
package/eslint/jsdoc.js
CHANGED
|
@@ -5,7 +5,7 @@ export const jsdoc = [
|
|
|
5
5
|
{
|
|
6
6
|
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx}"],
|
|
7
7
|
plugins: {
|
|
8
|
-
"eslint-plugin-jsdoc": eslintPluginJSDoc
|
|
8
|
+
"eslint-plugin-jsdoc": eslintPluginJSDoc
|
|
9
9
|
},
|
|
10
10
|
rules: {
|
|
11
11
|
"eslint-plugin-jsdoc/check-alignment": "warn",
|
|
@@ -47,9 +47,9 @@ export const jsdoc = [
|
|
|
47
47
|
"default",
|
|
48
48
|
"defaultValue",
|
|
49
49
|
"eventProperty",
|
|
50
|
-
"remarks"
|
|
51
|
-
]
|
|
52
|
-
}]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
50
|
+
"remarks"
|
|
51
|
+
]
|
|
52
|
+
}]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
];
|
package/eslint/json.js
CHANGED
|
@@ -5,11 +5,15 @@ export const json = [
|
|
|
5
5
|
{
|
|
6
6
|
files: ["**/*.{json,jsonc,json5}"],
|
|
7
7
|
ignores: ["**/package-lock.json", "**/yarn.lock"],
|
|
8
|
-
plugins: {
|
|
9
|
-
"eslint-plugin-jsonc": eslintPluginJsonc,
|
|
10
|
-
},
|
|
11
8
|
languageOptions: {
|
|
12
|
-
parser: eslintPluginJsonc
|
|
9
|
+
parser: eslintPluginJsonc
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
files: ["**/*.{json,jsonc,json5}"],
|
|
14
|
+
ignores: ["**/package-lock.json", "**/yarn.lock"],
|
|
15
|
+
plugins: {
|
|
16
|
+
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
13
17
|
},
|
|
14
18
|
rules: {
|
|
15
19
|
"eslint-plugin-jsonc/array-bracket-spacing": ["warn", "never"],
|
|
@@ -27,30 +31,24 @@ export const json = [
|
|
|
27
31
|
{
|
|
28
32
|
caseSensitive: false,
|
|
29
33
|
minKeys: 2,
|
|
30
|
-
natural: true
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
+
natural: true
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
34
38
|
},
|
|
35
39
|
{
|
|
36
40
|
files: [".vscode/settings.json"],
|
|
37
41
|
plugins: {
|
|
38
|
-
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
39
|
-
},
|
|
40
|
-
languageOptions: {
|
|
41
|
-
parser: eslintPluginJsonc,
|
|
42
|
+
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
42
43
|
},
|
|
43
44
|
rules: {
|
|
44
|
-
"eslint-plugin-jsonc/sort-keys": "off"
|
|
45
|
-
}
|
|
45
|
+
"eslint-plugin-jsonc/sort-keys": "off"
|
|
46
|
+
}
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
49
|
files: ["**/package.json"],
|
|
49
50
|
plugins: {
|
|
50
|
-
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
51
|
-
},
|
|
52
|
-
languageOptions: {
|
|
53
|
-
parser: eslintPluginJsonc,
|
|
51
|
+
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
54
52
|
},
|
|
55
53
|
rules: {
|
|
56
54
|
"eslint-plugin-jsonc/sort-keys": [
|
|
@@ -59,9 +57,9 @@ export const json = [
|
|
|
59
57
|
order: {
|
|
60
58
|
caseSensitive: true,
|
|
61
59
|
natural: true,
|
|
62
|
-
type: "asc"
|
|
60
|
+
type: "asc"
|
|
63
61
|
},
|
|
64
|
-
pathPattern: "^.*..*$"
|
|
62
|
+
pathPattern: "^.*..*$"
|
|
65
63
|
},
|
|
66
64
|
{
|
|
67
65
|
order: [
|
|
@@ -100,17 +98,17 @@ export const json = [
|
|
|
100
98
|
order: {
|
|
101
99
|
caseSensitive: true,
|
|
102
100
|
natural: true,
|
|
103
|
-
type: "asc"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
101
|
+
type: "asc"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
106
104
|
],
|
|
107
|
-
pathPattern: "^$"
|
|
105
|
+
pathPattern: "^$"
|
|
108
106
|
},
|
|
109
107
|
{
|
|
110
108
|
order: ["types", "require", "import"],
|
|
111
|
-
pathPattern: "^exports.*$"
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
}
|
|
109
|
+
pathPattern: "^exports.*$"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
116
114
|
];
|
package/eslint/jsx.js
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import eslintPluginStylisticJSX from "@stylistic/eslint-plugin-jsx";
|
|
2
|
+
import eslintPluginTypeScript from "@typescript-eslint/eslint-plugin";
|
|
2
3
|
|
|
3
4
|
/** @type {import("eslint").Linter.FlatConfig[]} */
|
|
4
5
|
export const jsx = [
|
|
5
6
|
{
|
|
6
7
|
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx}"],
|
|
7
8
|
plugins: {
|
|
8
|
-
"eslint-plugin-
|
|
9
|
+
"eslint-plugin-typescript": eslintPluginTypeScript,
|
|
10
|
+
"eslint-plugin-stylistic-jsx": eslintPluginStylisticJSX
|
|
9
11
|
},
|
|
10
12
|
rules: {
|
|
13
|
+
// naming conventions
|
|
14
|
+
"eslint-plugin-typescript/naming-convention": ["warn", {
|
|
15
|
+
format: ["PascalCase"],
|
|
16
|
+
selector: "variable",
|
|
17
|
+
trailingUnderscore: "allow"
|
|
18
|
+
}],
|
|
19
|
+
|
|
20
|
+
"eslint-plugin-stylistic-jsx/jsx-curly-brace-presence": ["warn", { children: "never", propElementValues: "always", props: "never" }],
|
|
11
21
|
"eslint-plugin-stylistic-jsx/jsx-child-element-spacing": "warn",
|
|
12
22
|
"eslint-plugin-stylistic-jsx/jsx-closing-bracket-location": ["warn", "line-aligned"],
|
|
13
23
|
"eslint-plugin-stylistic-jsx/jsx-closing-tag-location": "warn",
|
|
@@ -30,8 +40,8 @@ export const jsx = [
|
|
|
30
40
|
arrow: "parens-new-line",
|
|
31
41
|
condition: "parens-new-line",
|
|
32
42
|
logical: "parens-new-line",
|
|
33
|
-
prop: "parens-new-line"
|
|
34
|
-
}]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
43
|
+
prop: "parens-new-line"
|
|
44
|
+
}]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
37
47
|
];
|
package/eslint/markdown.js
CHANGED
|
@@ -7,35 +7,30 @@ import eslintPluginUnusedImports from "eslint-plugin-unused-imports";
|
|
|
7
7
|
export const markdown = [
|
|
8
8
|
{
|
|
9
9
|
files: ["**/*.{md,mdx}"],
|
|
10
|
-
|
|
11
|
-
"eslint-plugin-markdown": eslintPluginMarkdown,
|
|
12
|
-
},
|
|
13
|
-
processor: eslintPluginMarkdown.processors.markdown,
|
|
14
|
-
|
|
10
|
+
processor: eslintPluginMarkdown.processors.markdown
|
|
15
11
|
},
|
|
16
12
|
{
|
|
17
13
|
files: ["**/*.{md,mdx}/*.{ts,tsx,mjs,cjs,js,jsx}"],
|
|
18
14
|
plugins: {
|
|
19
15
|
"eslint-plugin-import": eslintPluginImport,
|
|
20
16
|
"eslint-plugin-markdown": eslintPluginMarkdown,
|
|
21
|
-
"eslint-plugin-unused-imports": eslintPluginUnusedImports
|
|
17
|
+
"eslint-plugin-unused-imports": eslintPluginUnusedImports
|
|
22
18
|
},
|
|
23
|
-
processor: eslintPluginMarkdown.processors.markdown,
|
|
24
19
|
rules: {
|
|
25
20
|
"eslint-plugin-import/newline-after-import": ["warn", { count: 1 }],
|
|
26
|
-
"eslint-plugin-unused-imports/no-unused-imports": "off"
|
|
27
|
-
}
|
|
21
|
+
"eslint-plugin-unused-imports/no-unused-imports": "off"
|
|
22
|
+
}
|
|
28
23
|
},
|
|
29
24
|
{
|
|
30
25
|
files: ["**/*.{md,mdx}/*.{json,jsonc}"],
|
|
31
26
|
plugins: {
|
|
32
|
-
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
27
|
+
"eslint-plugin-jsonc": eslintPluginJsonc
|
|
33
28
|
},
|
|
34
29
|
languageOptions: {
|
|
35
|
-
parser: eslintPluginJsonc
|
|
30
|
+
parser: eslintPluginJsonc
|
|
36
31
|
},
|
|
37
32
|
rules: {
|
|
38
|
-
"eslint-plugin-jsonc/sort-keys": "off"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
33
|
+
"eslint-plugin-jsonc/sort-keys": "off"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
41
36
|
];
|