@schoero/configs 1.5.31 → 1.5.33
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/cspell/cspell.json +6 -0
- package/cspell/dict/github.txt +1 -0
- package/eslint/imports.js +3 -4
- package/eslint/javascript.js +1 -1
- package/eslint/json.js +1 -3
- package/eslint/jsx.js +18 -13
- package/eslint/markdown.js +1 -1
- package/eslint/stylistic.js +1 -1
- package/eslint/typescript.js +21 -5
- package/eslint/vitest.js +1 -1
- package/oxlint/eslint/better-tailwindcss.ts +31 -0
- package/oxlint/eslint/jsx.ts +17 -0
- package/oxlint/eslint/perfectionist.ts +171 -0
- package/oxlint/eslint/stylistic.ts +71 -0
- package/oxlint/globals.ts +14 -0
- package/oxlint/{ignore.json → ignore.ts} +7 -5
- package/oxlint/imports.ts +32 -0
- package/oxlint/{javascript.json → javascript.ts} +28 -26
- package/oxlint/jsx.ts +12 -0
- package/oxlint/sorting.ts +10 -0
- package/oxlint/tailwind.ts +8 -0
- package/oxlint/{typescript.json → typescript.ts} +10 -9
- package/oxlint/vitest.ts +36 -0
- package/package.json +27 -30
- package/oxlint/eslint/better-tailwindcss.json +0 -21
- package/oxlint/globals.json +0 -793
- package/oxlint/index.json +0 -8
- package/oxlint/tailwind.json +0 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export const typescript = defineConfig({
|
|
5
|
+
overrides: [{
|
|
6
|
+
files: ["**/*.{ts,tsx,cjs,mjs}"],
|
|
7
|
+
rules: {
|
|
7
8
|
"typescript/await-thenable": "warn",
|
|
8
9
|
"typescript/no-array-delete": "warn",
|
|
9
10
|
"typescript/no-base-to-string": "warn",
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
"typescript/no-floating-promises": "warn",
|
|
13
14
|
"typescript/no-for-in-array": "warn",
|
|
14
15
|
"typescript/no-implied-eval": "warn",
|
|
15
|
-
"typescript/no-meaningless-void-operator": "warn",
|
|
16
|
+
"typescript/no-meaningless-void-operator": "warn",
|
|
16
17
|
"typescript/no-misused-promises": "warn",
|
|
17
18
|
"typescript/no-misused-spread": "warn",
|
|
18
19
|
"typescript/no-mixed-enums": "warn",
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"typescript/use-unknown-in-catch-callback-variable": "warn"
|
|
47
48
|
}
|
|
48
49
|
}],
|
|
49
|
-
|
|
50
|
-
}
|
|
50
|
+
plugins: ["typescript"]
|
|
51
|
+
});
|
package/oxlint/vitest.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export const vitest = defineConfig({
|
|
5
|
+
overrides: [
|
|
6
|
+
{
|
|
7
|
+
files: ["**/*.test.{js,jsx,cjs,mjs,ts,tsx,cts}", "**/*.test-d.{ts,tsx,cts}"],
|
|
8
|
+
plugins: ["vitest"],
|
|
9
|
+
rules: {
|
|
10
|
+
"vitest/expect-expect": "warn",
|
|
11
|
+
"vitest/no-alias-methods": "warn",
|
|
12
|
+
"vitest/no-identical-title": "warn",
|
|
13
|
+
"vitest/prefer-comparison-matcher": "warn",
|
|
14
|
+
"vitest/prefer-each": "warn",
|
|
15
|
+
"vitest/prefer-equality-matcher": "warn",
|
|
16
|
+
"vitest/prefer-lowercase-title": "warn",
|
|
17
|
+
"vitest/prefer-to-be": "warn",
|
|
18
|
+
"vitest/prefer-to-be-object": "warn",
|
|
19
|
+
"vitest/prefer-to-contain": "warn",
|
|
20
|
+
"vitest/prefer-to-have-length": "warn",
|
|
21
|
+
"vitest/prefer-todo": "warn",
|
|
22
|
+
"vitest/valid-expect": "warn"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// type tests
|
|
27
|
+
{
|
|
28
|
+
files: ["**/*.test-d.ts"],
|
|
29
|
+
plugins: ["vitest"],
|
|
30
|
+
rules: {
|
|
31
|
+
"vitest/expect-expect": "off",
|
|
32
|
+
"vitest/prefer-lowercase-title": "off"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.5.
|
|
2
|
+
"version": "1.5.33",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"name": "@schoero/configs",
|
|
5
5
|
"description": "",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"./eslint": "./eslint/index.js",
|
|
12
12
|
"./eslint/*": "./eslint/*.js",
|
|
13
13
|
"./markdownlint": "./markdownlint/markdownlint.jsonc",
|
|
14
|
-
"./oxlint": "./oxlint/index.json",
|
|
15
14
|
"./oxlint/*": "./oxlint/*.json",
|
|
16
15
|
"./tsconfig": "./tsconfig/tsconfig.json",
|
|
17
16
|
"./vite": "./vite/vite.config.js"
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
"unwritten"
|
|
44
43
|
],
|
|
45
44
|
"peerDependencies": {
|
|
46
|
-
"@stylistic/eslint-plugin": "^5.10.0",
|
|
47
45
|
"changelogen": "^0.6.2",
|
|
48
46
|
"cspell": "^10.0.0",
|
|
49
47
|
"eslint": "^9.39.4",
|
|
@@ -55,9 +53,6 @@
|
|
|
55
53
|
"vitest": "^4.1.4"
|
|
56
54
|
},
|
|
57
55
|
"peerDependenciesMeta": {
|
|
58
|
-
"@stylistic/eslint-plugin": {
|
|
59
|
-
"optional": true
|
|
60
|
-
},
|
|
61
56
|
"changelogen": {
|
|
62
57
|
"optional": true
|
|
63
58
|
},
|
|
@@ -87,54 +82,56 @@
|
|
|
87
82
|
}
|
|
88
83
|
},
|
|
89
84
|
"dependencies": {
|
|
90
|
-
"@cspell/dict-bash": "^4.2.
|
|
85
|
+
"@cspell/dict-bash": "^4.2.3",
|
|
91
86
|
"@cspell/dict-companies": "^3.2.11",
|
|
92
|
-
"@cspell/dict-css": "^4.1.
|
|
87
|
+
"@cspell/dict-css": "^4.1.2",
|
|
93
88
|
"@cspell/dict-de-ch": "^1.3.2",
|
|
94
|
-
"@cspell/dict-en_us": "^4.4.
|
|
89
|
+
"@cspell/dict-en_us": "^4.4.35",
|
|
95
90
|
"@cspell/dict-fr-fr": "^2.3.2",
|
|
96
91
|
"@cspell/dict-fullstack": "^3.2.9",
|
|
97
92
|
"@cspell/dict-html": "^4.0.15",
|
|
98
93
|
"@cspell/dict-html-symbol-entities": "^4.0.5",
|
|
99
94
|
"@cspell/dict-it-it": "^3.1.6",
|
|
100
95
|
"@cspell/dict-lorem-ipsum": "^4.0.5",
|
|
101
|
-
"@cspell/dict-markdown": "^2.0.
|
|
96
|
+
"@cspell/dict-markdown": "^2.0.17",
|
|
102
97
|
"@cspell/dict-node": "^5.0.9",
|
|
103
|
-
"@cspell/dict-npm": "^5.2.
|
|
98
|
+
"@cspell/dict-npm": "^5.2.41",
|
|
104
99
|
"@cspell/dict-public-licenses": "^2.0.16",
|
|
105
100
|
"@cspell/dict-software-terms": "^5.2.2",
|
|
106
101
|
"@cspell/dict-typescript": "^3.2.3",
|
|
102
|
+
"@eslint/markdown": "^8.0.2",
|
|
103
|
+
"@schoero/configs": "link:",
|
|
107
104
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
108
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
109
|
-
"@typescript-eslint/parser": "^8.
|
|
110
|
-
"
|
|
111
|
-
"
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^8.60.1",
|
|
106
|
+
"@typescript-eslint/parser": "^8.60.1",
|
|
107
|
+
"@vitest/eslint-plugin": "^1.6.19",
|
|
108
|
+
"cspell-lib": "^10.0.1",
|
|
109
|
+
"eslint-plugin-import-newlines": "^2.0.0",
|
|
112
110
|
"eslint-plugin-import-x": "^4.16.2",
|
|
113
|
-
"eslint-plugin-jsdoc": "^
|
|
114
|
-
"eslint-plugin-jsonc": "^2.
|
|
115
|
-
"eslint-plugin-
|
|
116
|
-
"eslint-plugin-perfectionist": "^4.15.1",
|
|
111
|
+
"eslint-plugin-jsdoc": "^63.0.1",
|
|
112
|
+
"eslint-plugin-jsonc": "^3.2.0",
|
|
113
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
117
114
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
118
115
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
119
|
-
"eslint-plugin-
|
|
120
|
-
"
|
|
121
|
-
"markdownlint-cli2": "^0.22.
|
|
116
|
+
"eslint-plugin-yml": "^3.4.0",
|
|
117
|
+
"globals": "^17.6.0",
|
|
118
|
+
"markdownlint-cli2": "^0.22.1",
|
|
122
119
|
"vite-tsconfig-paths": "^6.1.1",
|
|
123
120
|
"yaml-eslint-parser": "^2.0.0"
|
|
124
121
|
},
|
|
125
122
|
"optionalDependencies": {
|
|
126
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
123
|
+
"eslint-plugin-better-tailwindcss": "^4.5.0"
|
|
127
124
|
},
|
|
128
125
|
"devDependencies": {
|
|
129
|
-
"@types/node": "^25.
|
|
126
|
+
"@types/node": "^25.9.1",
|
|
130
127
|
"changelogen": "^0.6.2",
|
|
131
|
-
"cspell": "^10.0.
|
|
132
|
-
"eslint": "^
|
|
128
|
+
"cspell": "^10.0.1",
|
|
129
|
+
"eslint": "^10.4.1",
|
|
133
130
|
"markdownlint": "^0.40.0",
|
|
134
|
-
"oxlint": "^1.
|
|
135
|
-
"oxlint-tsgolint": "^0.
|
|
136
|
-
"vite": "^
|
|
137
|
-
"vitest": "^4.1.
|
|
131
|
+
"oxlint": "^1.68.0",
|
|
132
|
+
"oxlint-tsgolint": "^0.23.0",
|
|
133
|
+
"vite": "^8.0.16",
|
|
134
|
+
"vitest": "^4.1.8"
|
|
138
135
|
},
|
|
139
136
|
"keywords": []
|
|
140
137
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
{
|
|
3
|
-
"$schema": "../../node_modules/oxlint/configuration_schema.json",
|
|
4
|
-
"overrides": [
|
|
5
|
-
{
|
|
6
|
-
"files": ["**/*.{js,ts,jsx,cjs,mjs,tsx,css}"],
|
|
7
|
-
"jsPlugins": [
|
|
8
|
-
"eslint-plugin-better-tailwindcss"
|
|
9
|
-
],
|
|
10
|
-
"rules": {
|
|
11
|
-
"better-tailwindcss/enforce-canonical-classes": ["warn"],
|
|
12
|
-
"better-tailwindcss/enforce-consistent-class-order": ["warn", { "order": "strict" }],
|
|
13
|
-
"better-tailwindcss/enforce-consistent-line-wrapping": ["warn", { "printWidth": 119 }],
|
|
14
|
-
"better-tailwindcss/no-conflicting-classes": "warn",
|
|
15
|
-
"better-tailwindcss/no-deprecated-classes": "warn",
|
|
16
|
-
"better-tailwindcss/no-duplicate-classes": "warn",
|
|
17
|
-
"better-tailwindcss/no-unknown-classes": "warn",
|
|
18
|
-
"better-tailwindcss/no-unnecessary-whitespace": "warn"
|
|
19
|
-
}
|
|
20
|
-
}]
|
|
21
|
-
}
|