@moso/eslint-config 2.0.5 → 3.0.0
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 +212 -46
- package/dist/index.d.mts +4869 -1582
- package/dist/index.mjs +1946 -12638
- package/package.json +96 -82
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moso/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "My shareable ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Morten Sørensen",
|
|
@@ -34,40 +34,47 @@
|
|
|
34
34
|
".": "./dist/index.mjs",
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
|
-
"main": "./dist/index.mjs",
|
|
38
|
-
"module": "./dist/index.mjs",
|
|
39
37
|
"types": "./dist/index.d.mts",
|
|
40
38
|
"files": [
|
|
41
|
-
"LICENSE",
|
|
42
|
-
"README.md",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
39
|
+
"./LICENSE",
|
|
40
|
+
"./README.md",
|
|
41
|
+
"./package.json",
|
|
42
|
+
"dist/"
|
|
45
43
|
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": "^22.16.0 || >=24"
|
|
46
|
+
},
|
|
46
47
|
"scripts": {
|
|
47
48
|
"build": "bun run typegen && tsdown --clean --dts",
|
|
48
|
-
"build:inspector": "bun run build && bunx @eslint/config-inspector build",
|
|
49
|
+
"build:inspector": "bun run build && bunx @eslint/config-inspector build --config eslint.config.ts --out-dir ./.eslint-config-inspector",
|
|
49
50
|
"dev": "bunx @eslint/config-inspector --config eslint.config.ts",
|
|
50
51
|
"lint": "eslint",
|
|
51
52
|
"prepack": "bun run build",
|
|
52
53
|
"prepare": "bun run simple-git-hooks",
|
|
53
54
|
"release": "bumpp && bun publish",
|
|
54
|
-
"test": "vitest",
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"test:update-snapshots": "vitest --update",
|
|
55
57
|
"typecheck": "tsc --noEmit",
|
|
56
58
|
"typegen": "tsx scripts/typegen.ts",
|
|
57
59
|
"watch": "tsdown --watch"
|
|
58
60
|
},
|
|
59
|
-
"workspaces": [
|
|
61
|
+
"workspaces": [
|
|
62
|
+
"src/rules"
|
|
63
|
+
],
|
|
60
64
|
"peerDependencies": {
|
|
61
|
-
"@eslint-react/eslint-plugin": "^
|
|
62
|
-
"@next/eslint-plugin-next": "^16.
|
|
63
|
-
"astro-eslint-parser": "^1.
|
|
64
|
-
"eslint": ">=9.30.0",
|
|
65
|
-
"eslint-plugin-astro": "^1.
|
|
65
|
+
"@eslint-react/eslint-plugin": "^5.14.0",
|
|
66
|
+
"@next/eslint-plugin-next": "^16.2.10",
|
|
67
|
+
"astro-eslint-parser": "^2.1.0",
|
|
68
|
+
"eslint": ">=9.30.0 || >=10",
|
|
69
|
+
"eslint-plugin-astro": "^2.1.1",
|
|
70
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.2",
|
|
66
71
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
67
|
-
"eslint-plugin-react-hooks": "^7.
|
|
68
|
-
"eslint-plugin-react-refresh": "^0.
|
|
69
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.
|
|
70
|
-
"eslint-plugin-
|
|
72
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
73
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
74
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
|
|
75
|
+
"eslint-plugin-vue": "^10.9.2",
|
|
76
|
+
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
77
|
+
"typescript": "^6.0.0"
|
|
71
78
|
},
|
|
72
79
|
"peerDependenciesMeta": {
|
|
73
80
|
"@eslint-react/eslint-plugin": {
|
|
@@ -82,6 +89,9 @@
|
|
|
82
89
|
"eslint-plugin-astro": {
|
|
83
90
|
"optional": true
|
|
84
91
|
},
|
|
92
|
+
"eslint-plugin-erasable-syntax-only": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
85
95
|
"eslint-plugin-jsx-a11y": {
|
|
86
96
|
"optional": true
|
|
87
97
|
},
|
|
@@ -94,82 +104,86 @@
|
|
|
94
104
|
"eslint-plugin-react-you-might-not-need-an-effect": {
|
|
95
105
|
"optional": true
|
|
96
106
|
},
|
|
107
|
+
"eslint-plugin-vue": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
97
110
|
"eslint-plugin-vuejs-accessibility": {
|
|
98
111
|
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"typescript": {
|
|
114
|
+
"optional": true
|
|
99
115
|
}
|
|
100
116
|
},
|
|
101
117
|
"dependencies": {
|
|
102
118
|
"@antfu/install-pkg": "^1.1.0",
|
|
103
|
-
"@clack/prompts": "^
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@
|
|
107
|
-
"@
|
|
108
|
-
"@
|
|
109
|
-
"eslint
|
|
119
|
+
"@clack/prompts": "^1.7.0",
|
|
120
|
+
"@e18e/eslint-plugin": "^0.5.1",
|
|
121
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
122
|
+
"@eslint/js": "^10.0.1",
|
|
123
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
124
|
+
"@typescript-eslint/eslint-plugin": "^8.63.0",
|
|
125
|
+
"@typescript-eslint/parser": "^8.63.0",
|
|
126
|
+
"@typescript-eslint/utils": "^8.63.0",
|
|
127
|
+
"@vitest/eslint-plugin": "^1.6.22",
|
|
128
|
+
"eslint-config-flat-gitignore": "^2.3.0",
|
|
129
|
+
"eslint-flat-config-utils": "^3.2.0",
|
|
110
130
|
"eslint-merge-processors": "^2.0.0",
|
|
111
|
-
"eslint-plugin-de-morgan": "^2.
|
|
112
|
-
"eslint-plugin-functional": "^
|
|
113
|
-
"eslint-plugin-import-lite": "^0.
|
|
114
|
-
"eslint-plugin-jsdoc": "^
|
|
115
|
-
"eslint-plugin-jsonc": "^
|
|
116
|
-
"eslint-plugin-n": "^
|
|
117
|
-
"eslint-plugin-no-only-tests": "^3.
|
|
118
|
-
"eslint-plugin-perfectionist": "^5.
|
|
119
|
-
"eslint-plugin-promise": "^7.
|
|
120
|
-
"eslint-plugin-regexp": "^
|
|
121
|
-
"eslint-plugin-
|
|
122
|
-
"eslint-plugin-
|
|
123
|
-
"eslint-plugin-
|
|
131
|
+
"eslint-plugin-de-morgan": "^2.1.2",
|
|
132
|
+
"eslint-plugin-functional": "^10.0.0",
|
|
133
|
+
"eslint-plugin-import-lite": "^0.6.0",
|
|
134
|
+
"eslint-plugin-jsdoc": "^63.0.13",
|
|
135
|
+
"eslint-plugin-jsonc": "^3.3.0",
|
|
136
|
+
"eslint-plugin-n": "^18.2.1",
|
|
137
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
138
|
+
"eslint-plugin-perfectionist": "^5.10.0",
|
|
139
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
140
|
+
"eslint-plugin-regexp": "^3.1.1",
|
|
141
|
+
"eslint-plugin-toml": "^1.4.0",
|
|
142
|
+
"eslint-plugin-unicorn": "^71.1.0",
|
|
143
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
144
|
+
"eslint-plugin-yml": "^3.6.0",
|
|
124
145
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
125
|
-
"globals": "^
|
|
126
|
-
"jsonc-eslint-parser": "^
|
|
127
|
-
"local-pkg": "^1.1
|
|
128
|
-
"toml-eslint-parser": "^0.
|
|
129
|
-
"vue-eslint-parser": "^10.
|
|
130
|
-
"yaml-eslint-parser": "^1.
|
|
146
|
+
"globals": "^17.7.0",
|
|
147
|
+
"jsonc-eslint-parser": "^3.1.0",
|
|
148
|
+
"local-pkg": "^1.2.1",
|
|
149
|
+
"toml-eslint-parser": "^1.0.3",
|
|
150
|
+
"vue-eslint-parser": "^10.4.1",
|
|
151
|
+
"yaml-eslint-parser": "^2.1.0"
|
|
131
152
|
},
|
|
132
153
|
"devDependencies": {
|
|
133
|
-
"@eslint-react/eslint-plugin": "^
|
|
134
|
-
"@eslint/compat": "^2.
|
|
135
|
-
"@eslint/config-inspector": "^
|
|
136
|
-
"@eslint
|
|
137
|
-
"@
|
|
138
|
-
"@
|
|
139
|
-
"@types/node": "^
|
|
140
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"eslint": "^
|
|
145
|
-
"eslint-plugin-
|
|
146
|
-
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
154
|
+
"@eslint-react/eslint-plugin": "^5.14.0",
|
|
155
|
+
"@eslint/compat": "^2.1.0",
|
|
156
|
+
"@eslint/config-inspector": "^3.0.4",
|
|
157
|
+
"@moso/eslint-plugin": "3.0.0",
|
|
158
|
+
"@next/eslint-plugin-next": "^16.2.10",
|
|
159
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
160
|
+
"@types/node": "^26.1.1",
|
|
161
|
+
"@typescript-eslint/rule-tester": "^8.63.0",
|
|
162
|
+
"astro-eslint-parser": "^2.1.0",
|
|
163
|
+
"bumpp": "^11.1.0",
|
|
164
|
+
"eslint": "^10.6.0",
|
|
165
|
+
"eslint-plugin-astro": "^2.1.1",
|
|
166
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.2",
|
|
147
167
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
148
|
-
"eslint-plugin-react-hooks": "^7.
|
|
149
|
-
"eslint-plugin-react-refresh": "^0.
|
|
150
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.
|
|
151
|
-
"eslint-plugin-
|
|
152
|
-
"eslint-plugin-
|
|
153
|
-
"eslint-
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"vitest": "^4.0.16"
|
|
168
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
169
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
170
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
|
|
171
|
+
"eslint-plugin-vue": "^10.9.2",
|
|
172
|
+
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
173
|
+
"eslint-typegen": "^2.3.1",
|
|
174
|
+
"jiti": "^2.7.0",
|
|
175
|
+
"nano-staged": "^1.0.2",
|
|
176
|
+
"simple-git-hooks": "^2.13.1",
|
|
177
|
+
"ts-dedent": "^2.3.0",
|
|
178
|
+
"tsdown": "^0.22.4",
|
|
179
|
+
"tsx": "^4.23.0",
|
|
180
|
+
"typescript": "^6.0.3",
|
|
181
|
+
"vitest": "^4.1.10"
|
|
163
182
|
},
|
|
164
183
|
"simple-git-hooks": {
|
|
165
|
-
"pre-commit": "bunx
|
|
184
|
+
"pre-commit": "bunx nano-staged"
|
|
166
185
|
},
|
|
167
|
-
"
|
|
186
|
+
"nano-staged": {
|
|
168
187
|
"*": "eslint --fix"
|
|
169
|
-
}
|
|
170
|
-
"trustedDependencies": [
|
|
171
|
-
"esbuild",
|
|
172
|
-
"simple-git-hooks",
|
|
173
|
-
"unrs-resolver"
|
|
174
|
-
]
|
|
188
|
+
}
|
|
175
189
|
}
|