@schoero/configs 0.0.0-beta.14 → 0.0.0-beta.16
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/eslint/html.js +28 -0
- package/eslint/index.js +1 -0
- package/eslint/stylistic.js +1 -1
- package/eslint/tailwind.js +16 -0
- package/eslint/typescript.js +11 -3
- package/eslint/vitest.js +1 -2
- package/package.json +7 -5
package/eslint/html.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import eslintPluginHTML from "@html-eslint/eslint-plugin";
|
|
2
|
+
import eslintParserHTML from "@html-eslint/parser";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/** @type { import("eslint").Linter.FlatConfig[] } */
|
|
6
|
+
export const html = [
|
|
7
|
+
{
|
|
8
|
+
files: ["**/*.{html,xhtml}"],
|
|
9
|
+
plugins: {
|
|
10
|
+
"eslint-plugin-html": eslintPluginHTML
|
|
11
|
+
},
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parser: eslintParserHTML
|
|
14
|
+
},
|
|
15
|
+
rules: {
|
|
16
|
+
"eslint-plugin-html/no-duplicate-attrs": "warn",
|
|
17
|
+
"eslint-plugin-html/eslint-plugin-html": "warn",
|
|
18
|
+
"eslint-plugin-html/no-obsolete-tags": "warn",
|
|
19
|
+
"eslint-plugin-html/require-li-container": "warn",
|
|
20
|
+
"eslint-plugin-html/no-multiple-h1": "warn",
|
|
21
|
+
"eslint-plugin-html/no-extra-spacing-attrs": "warn",
|
|
22
|
+
"eslint-plugin-html/no-trailing-spaces": "warn",
|
|
23
|
+
"eslint-plugin-html/quotes": "warn",
|
|
24
|
+
"eslint-plugin-html/sort-attrs": "warn"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
];
|
package/eslint/index.js
CHANGED
package/eslint/stylistic.js
CHANGED
|
@@ -43,7 +43,7 @@ export const stylistic = [
|
|
|
43
43
|
"eslint-plugin-stylistic-js/implicit-arrow-linebreak": ["warn", "beside"],
|
|
44
44
|
"eslint-plugin-stylistic-js/arrow-spacing": ["warn", { after: true, before: true }],
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
"eslint-plugin-stylistic-js/jsx-quotes": ["warn", "prefer-double"],
|
|
47
47
|
|
|
48
48
|
// keywords
|
|
49
49
|
"eslint-plugin-stylistic-js/keyword-spacing": ["warn",
|
package/eslint/tailwind.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import eslintPluginReadableTailwind from "eslint-plugin-readable-tailwind";
|
|
2
2
|
import eslintPluginTailwindcss from "eslint-plugin-tailwindcss";
|
|
3
3
|
|
|
4
|
+
import eslintParserHTML from "@html-eslint/parser";
|
|
5
|
+
|
|
4
6
|
|
|
5
7
|
const tailwindOptions = {
|
|
6
8
|
callees: ["twMerge", "twJoin", "cn", "cnv", "cva"]
|
|
@@ -19,6 +21,20 @@ export const tailwind = [
|
|
|
19
21
|
"eslint-plugin-tailwindcss/enforces-shorthand": ["warn", tailwindOptions],
|
|
20
22
|
"eslint-plugin-tailwindcss/no-contradicting-classname": ["warn", tailwindOptions],
|
|
21
23
|
|
|
24
|
+
"eslint-plugin-readable-tailwind/multiline": ["warn", { ...tailwindOptions, printWidth: 119 }],
|
|
25
|
+
"eslint-plugin-readable-tailwind/no-unnecessary-whitespace": ["warn", { ...tailwindOptions }],
|
|
26
|
+
"eslint-plugin-readable-tailwind/sort-classes": ["warn", { ...tailwindOptions }]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
files: ["**/*.{html,xhtml}"],
|
|
31
|
+
plugins: {
|
|
32
|
+
"eslint-plugin-readable-tailwind": eslintPluginReadableTailwind
|
|
33
|
+
},
|
|
34
|
+
languageOptions: {
|
|
35
|
+
parser: eslintParserHTML
|
|
36
|
+
},
|
|
37
|
+
rules: {
|
|
22
38
|
"eslint-plugin-readable-tailwind/multiline": ["warn", { ...tailwindOptions, printWidth: 119 }],
|
|
23
39
|
"eslint-plugin-readable-tailwind/no-unnecessary-whitespace": ["warn", { ...tailwindOptions }],
|
|
24
40
|
"eslint-plugin-readable-tailwind/sort-classes": ["warn", { ...tailwindOptions }]
|
package/eslint/typescript.js
CHANGED
|
@@ -290,10 +290,11 @@ export const typescript = [
|
|
|
290
290
|
// standalone typescript
|
|
291
291
|
{
|
|
292
292
|
languageOptions: {
|
|
293
|
-
parser: eslintParserTypeScript
|
|
293
|
+
parser: eslintParserTypeScript,
|
|
294
|
+
parserOptions: { project: null, program: null }
|
|
294
295
|
},
|
|
295
296
|
plugins: {
|
|
296
|
-
"
|
|
297
|
+
"eslint-plugin-typescript": eslintPluginTypeScript
|
|
297
298
|
},
|
|
298
299
|
files: [
|
|
299
300
|
"**/*.config.ts",
|
|
@@ -307,7 +308,14 @@ export const typescript = [
|
|
|
307
308
|
"**/*.md/*.ctsx"
|
|
308
309
|
],
|
|
309
310
|
rules: {
|
|
310
|
-
...
|
|
311
|
+
...Object.fromEntries(
|
|
312
|
+
Object.entries(eslintPluginTypeScript.configs["disable-type-checked"].rules).map(([ruleName, ruleConfig]) => {
|
|
313
|
+
return [
|
|
314
|
+
ruleName.replace("@typescript-eslint", "eslint-plugin-typescript"),
|
|
315
|
+
ruleConfig
|
|
316
|
+
];
|
|
317
|
+
})
|
|
318
|
+
)
|
|
311
319
|
}
|
|
312
320
|
}
|
|
313
321
|
];
|
package/eslint/vitest.js
CHANGED
|
@@ -21,8 +21,7 @@ export const vitest = [
|
|
|
21
21
|
"eslint-plugin-vitest/prefer-to-contain": "warn",
|
|
22
22
|
"eslint-plugin-vitest/prefer-to-have-length": "warn",
|
|
23
23
|
"eslint-plugin-vitest/prefer-todo": "warn",
|
|
24
|
-
"eslint-plugin-vitest/valid-expect": "warn"
|
|
25
|
-
"eslint-plugin-vitest/valid-title": "warn"
|
|
24
|
+
"eslint-plugin-vitest/valid-expect": "warn"
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
{
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.0-beta.
|
|
2
|
+
"version": "0.0.0-beta.16",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"name": "@schoero/configs",
|
|
5
5
|
"description": "",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@cspell/dict-node": "^4.0.3",
|
|
54
54
|
"@cspell/dict-npm": "^5.0.14",
|
|
55
55
|
"@cspell/dict-public-licenses": "^2.0.5",
|
|
56
|
-
"@cspell/dict-software-terms": "^3.3.
|
|
56
|
+
"@cspell/dict-software-terms": "^3.3.14",
|
|
57
57
|
"@cspell/dict-typescript": "^3.1.2",
|
|
58
58
|
"@stylistic/eslint-plugin-js": "^1.5.1",
|
|
59
59
|
"@stylistic/eslint-plugin-jsx": "^1.5.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@stylistic/eslint-plugin-ts": "^1.5.1",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
63
63
|
"@typescript-eslint/parser": "^6.15.0",
|
|
64
|
-
"cspell-lib": "^8.2.
|
|
64
|
+
"cspell-lib": "^8.2.3",
|
|
65
65
|
"eslint-plugin-import": "npm:eslint-plugin-i@2.28.1",
|
|
66
66
|
"eslint-plugin-import-newlines": "^1.3.4",
|
|
67
67
|
"eslint-plugin-jsdoc": "^46.9.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
74
74
|
"eslint-plugin-tailwindcss": "^3.13.0",
|
|
75
75
|
"eslint-plugin-typescript-sort-keys": "^3.1.0",
|
|
76
|
-
"eslint-plugin-unicorn": "^
|
|
76
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
77
77
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
78
78
|
"eslint-plugin-vitest": "^0.3.18",
|
|
79
79
|
"eslint-plugin-yml": "^1.11.0",
|
|
@@ -83,9 +83,11 @@
|
|
|
83
83
|
"vitest-github-actions-reporter": "^0.11.1"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
+
"@html-eslint/eslint-plugin": "^0.22.0",
|
|
87
|
+
"@html-eslint/parser": "^0.22.0",
|
|
86
88
|
"@types/node": "^20.10.5",
|
|
87
89
|
"changelogen": "^0.5.5",
|
|
88
|
-
"cspell": "^8.2.
|
|
90
|
+
"cspell": "^8.2.3",
|
|
89
91
|
"eslint": "^8.56.0",
|
|
90
92
|
"markdownlint": "^0.32.1",
|
|
91
93
|
"vite": "^5.0.10",
|