|
26 | 26 | "eslint-plugin-html",
|
27 | 27 | "eslint-plugin-i",
|
28 | 28 | "eslint-plugin-jsonc",
|
29 |
| - "eslint-plugin-markdown", |
30 |
| - "eslint-plugin-no-loops", |
| 29 | + "eslint-markdown", |
31 | 30 | "eslint-plugin-no-secrets",
|
32 | 31 | "eslint-plugin-no-use-extend-native",
|
33 | 32 | "eslint-plugin-promise",
|
|
36 | 35 | "eslint-plugin-toml",
|
37 | 36 | "eslint-plugin-unicorn",
|
38 | 37 | "eslint-plugin-yml",
|
39 |
| - "eslint-plugin-array-func", |
40 | 38 | "eslint-plugin-playwright",
|
41 | 39 | "eslint-plugin-jsdoc",
|
42 | 40 | "eslint-plugin-jsx-a11y",
|
|
73 | 71 | "name": "Daniel Bannert",
|
74 | 72 |
|
75 | 73 | },
|
76 |
| - "type": "commonjs", |
| 74 | + "type": "module", |
77 | 75 | "exports": {
|
78 | 76 | ".": {
|
79 |
| - "types": "./dist/index.d.ts", |
80 |
| - "require": "./dist/index.js" |
81 |
| - }, |
82 |
| - "./typescript-type-checking": { |
83 |
| - "types": "./dist/typescript-type-checking.d.ts", |
84 |
| - "require": "./dist/typescript-type-checking.js" |
85 |
| - }, |
86 |
| - "./globals": { |
87 |
| - "types": "./dist/globals.d.ts", |
88 |
| - "require": "./dist/globals.js" |
89 |
| - }, |
90 |
| - "./define-config": { |
91 |
| - "types": "./dist/define-config.d.ts", |
92 |
| - "require": "./dist/define-config.js" |
| 77 | + "require": { |
| 78 | + "types": "./dist/index.d.cts", |
| 79 | + "default": "./dist/index.cjs" |
| 80 | + }, |
| 81 | + "import": { |
| 82 | + "types": "./dist/index.d.tjs", |
| 83 | + "default": "./dist/index.mjs" |
| 84 | + } |
93 | 85 | },
|
94 | 86 | "./package.json": "./package.json"
|
95 | 87 | },
|
96 |
| - "main": "dist/index.js", |
| 88 | + "sideEffects": false, |
| 89 | + "main": "dist/index.cjs", |
| 90 | + "module": "dist/index.mjs", |
97 | 91 | "types": "dist/index.d.ts",
|
98 | 92 | "bin": {
|
99 | 93 | "anolilab-eslint-config": "./bin/generate-eslint-cofig.js"
|
|
109 | 103 | "LICENSE.md"
|
110 | 104 | ],
|
111 | 105 | "scripts": {
|
| 106 | + "build:typegen": "tsx ./scripts/typegen.ts", |
112 | 107 | "build": "packem build --development",
|
113 | 108 | "build:prod": "packem build --production",
|
114 | 109 | "clean": "rimraf node_modules dist",
|
115 |
| - "debug:rules": "@eslint/config-inspector", |
| 110 | + "debug:rules": "pnpm exec eslint-config-inspector --config ./debug-eslint.config.mjs", |
| 111 | + "preinstall": "tsx ./scripts/typegen.ts", |
116 | 112 | "lint:attw": "attw --pack",
|
117 | 113 | "lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
118 | 114 | "lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
122 | 118 | "test:watch": "vitest"
|
123 | 119 | },
|
124 | 120 | "dependencies": {
|
| 121 | + "@eslint/compat": "^1.2.4", |
125 | 122 | "@antfu/install-pkg": "^0.5.0",
|
126 | 123 | "@babel/eslint-parser": "^7.25.9",
|
127 | 124 | "@babel/plugin-syntax-import-assertions": "^7.26.0",
|
|
130 | 127 | "@eslint/markdown": "^6.2.1",
|
131 | 128 | "@html-eslint/eslint-plugin": "^0.31.1",
|
132 | 129 | "@html-eslint/parser": "^0.31.0",
|
| 130 | + "eslint-plugin-no-only-tests": "^3.3.0", |
133 | 131 | "@jsenv/eslint-import-resolver": "^8.2.0",
|
134 | 132 | "@stylistic/eslint-plugin": "^2.12.1",
|
135 |
| - "@typescript-eslint/eslint-plugin": "^8.18.1", |
136 |
| - "@typescript-eslint/parser": "^8.18.1", |
137 |
| - "@visulima/package": "^3.2.0", |
138 |
| - "@visulima/tsconfig": "^1.1.2", |
139 |
| - "@vitest/eslint-plugin": "^1.1.17", |
| 133 | + "typescript-eslint": "^8.18.2", |
| 134 | + "@typescript-eslint/eslint-plugin": "^8.18.2", |
| 135 | + "@typescript-eslint/parser": "^8.18.2", |
| 136 | + "@visulima/package": "^3.2.1", |
| 137 | + "@visulima/tsconfig": "^1.1.3", |
| 138 | + "@vitest/eslint-plugin": "^1.1.21", |
140 | 139 | "confusing-browser-globals": "^1.0.11",
|
141 | 140 | "eslint-config-flat-gitignore": "^0.3.0",
|
142 | 141 | "eslint-flat-config-utils": "^0.4.0",
|
|
147 | 146 | "eslint-plugin-compat": "^6.0.2",
|
148 | 147 | "eslint-plugin-es-x": "^8.4.1",
|
149 | 148 | "eslint-plugin-html": "^8.1.2",
|
150 |
| - "eslint-plugin-import-x": "^4.5.1", |
| 149 | + "eslint-plugin-import-x": "^4.6.1", |
151 | 150 | "eslint-plugin-jsonc": "^2.18.2",
|
152 |
| - "eslint-plugin-n": "^17.15.0", |
153 |
| - "eslint-plugin-no-loops": "^0.4.0", |
154 |
| - "eslint-plugin-no-only-tests": "^3.3.0", |
| 151 | + "eslint-plugin-n": "^17.15.1", |
155 | 152 | "eslint-plugin-no-secrets": "^2.1.1",
|
156 |
| - "eslint-plugin-no-use-extend-native": "^0.7.2", |
157 |
| - "eslint-plugin-perfectionist": "^4.3.0", |
| 153 | + "eslint-plugin-perfectionist": "^4.4.0", |
158 | 154 | "eslint-plugin-promise": "^7.2.1",
|
159 | 155 | "eslint-plugin-regexp": "^2.7.0",
|
160 | 156 | "eslint-plugin-security": "^3.0.1",
|
| 157 | + "eslint-plugin-simple-import-sort": "^12.1.1", |
161 | 158 | "eslint-plugin-sonarjs": "^3.0.1",
|
162 | 159 | "eslint-plugin-toml": "^0.12.0",
|
163 | 160 | "eslint-plugin-unicorn": "^56.0.1",
|
164 | 161 | "eslint-plugin-unused-imports": "^4.1.4",
|
165 | 162 | "eslint-plugin-yml": "^1.16.0",
|
166 |
| - "globals": "^15.13.0", |
| 163 | + "globals": "^15.14.0", |
167 | 164 | "jsonc-eslint-parser": "^2.4.0",
|
168 | 165 | "parse-gitignore": "^2.0.0",
|
169 | 166 | "semver": "^7.6.3",
|
170 | 167 | "toml-eslint-parser": "^0.10.0",
|
171 | 168 | "yaml-eslint-parser": "^1.2.3"
|
172 | 169 | },
|
173 | 170 | "devDependencies": {
|
174 |
| - "@types/eslint-plugin-tailwindcss": "^3.17.0", |
175 | 171 | "@anolilab/prettier-config": "^5.0.14",
|
176 | 172 | "@anolilab/semantic-release-preset": "9.0.3",
|
177 |
| - "@eslint-react/eslint-plugin": "^1.20.0", |
| 173 | + "@eslint-react/eslint-plugin": "^1.22.1", |
178 | 174 | "@eslint/config-inspector": "^0.6.0",
|
179 | 175 | "@stylistic/eslint-plugin-migrate": "^2.12.1",
|
180 | 176 | "@testing-library/dom": "^10.4.0",
|
181 | 177 | "@total-typescript/ts-reset": "^0.6.1",
|
182 | 178 | "@types/confusing-browser-globals": "^1.0.3",
|
183 | 179 | "@types/eslint": "^9.6.1",
|
| 180 | + "@types/eslint-plugin-tailwindcss": "^3.17.0", |
184 | 181 | "@types/semver": "^7.5.8",
|
| 182 | + "@visulima/packem": "^1.10.2", |
| 183 | + "esbuild": "^0.24.2", |
185 | 184 | "eslint": "^9.17.0",
|
186 | 185 | "eslint-find-rules": "^4.2.0",
|
187 | 186 | "eslint-plugin-etc": "^2.0.3",
|
|
190 | 189 | "eslint-plugin-jsx-a11y": "^6.10.2",
|
191 | 190 | "eslint-plugin-no-unsanitized": "^4.1.2",
|
192 | 191 | "eslint-plugin-prefer-object-spread": "^1.2.1",
|
193 |
| - "eslint-plugin-react": "^7.37.2", |
194 |
| - "eslint-plugin-react-refresh": "^0.4.16", |
195 | 192 | "eslint-plugin-react-hooks": "^5.1.0",
|
| 193 | + "eslint-plugin-react-refresh": "^0.4.16", |
196 | 194 | "eslint-plugin-storybook": "^0.11.1",
|
197 | 195 | "eslint-plugin-tailwindcss": "^3.17.5",
|
198 | 196 | "eslint-plugin-testing-library": "^7.1.1",
|
199 | 197 | "eslint-plugin-validate-jsx-nesting": "^0.1.1",
|
200 | 198 | "eslint-plugin-vitest": "^0.5.4",
|
| 199 | + "@eslint-react/shared": "^1.22.1", |
| 200 | + "@eslint-react/tools": "^1.20.1", |
201 | 201 | "eslint-plugin-you-dont-need-lodash-underscore": "^6.14.0",
|
202 | 202 | "eslint-plugin-zod": "^1.4.0",
|
203 | 203 | "eslint-typegen": "^0.3.2",
|
204 | 204 | "prettier": "^3.4.2",
|
205 | 205 | "react": "^19.0.0",
|
206 | 206 | "rimraf": "^6.0.1",
|
207 | 207 | "semantic-release": "^24.2.0",
|
208 |
| - "type-fest": "^4.30.2", |
| 208 | + "tsx": "^4.19.2", |
| 209 | + "type-fest": "^4.31.0", |
209 | 210 | "typescript": "^5.7.2",
|
210 | 211 | "vitest": "^2.1.8"
|
211 | 212 | },
|
212 | 213 | "peerDependencies": {
|
213 | 214 | "@babel/core": "^7.22.20",
|
| 215 | + "@eslint-react/eslint-plugin": "^1.22.1", |
214 | 216 | "@tanstack/eslint-plugin-query": "^4.34.1 || ^5.0.0",
|
215 |
| - "@visulima/packem": "^1.10.0", |
216 |
| - "esbuild": "^0.24.0", |
217 | 217 | "eslint": "^9.10.0",
|
218 |
| - "eslint-plugin-array-func": "^4.0.0", |
219 | 218 | "eslint-plugin-format": ">=0.1.0",
|
220 | 219 | "eslint-plugin-jsdoc": "^46.8.2",
|
221 | 220 | "eslint-plugin-jsx-a11y": "^6.7.1",
|
222 | 221 | "eslint-plugin-no-unsanitized": "^4.0.2",
|
223 | 222 | "eslint-plugin-playwright": "^0.16.0 || ^0.18.0",
|
224 | 223 | "eslint-plugin-prefer-object-spread": "^1.2.1",
|
225 |
| - "eslint-plugin-react": "^7.33.2", |
226 |
| - "eslint-plugin-react-refresh": "^0.4.16", |
227 | 224 | "eslint-plugin-react-hooks": "^4.6.0",
|
| 225 | + "eslint-plugin-react-refresh": "^0.4.16", |
228 | 226 | "eslint-plugin-storybook": "^0.6.14",
|
229 | 227 | "eslint-plugin-tailwindcss": "^3.13.0",
|
230 | 228 | "eslint-plugin-testing-library": "^6.0.1",
|
|
236 | 234 | "@tanstack/eslint-plugin-query": {
|
237 | 235 | "optional": true
|
238 | 236 | },
|
239 |
| - "eslint-plugin-array-func": { |
240 |
| - "optional": true |
241 |
| - }, |
242 | 237 | "eslint-plugin-jsdoc": {
|
243 | 238 | "optional": true
|
244 | 239 | },
|
|
291 | 286 | "publishConfig": {
|
292 | 287 | "access": "public",
|
293 | 288 | "provenance": true
|
| 289 | + }, |
| 290 | + "typesVersions": { |
| 291 | + ">=5.0": { |
| 292 | + ".": [ |
| 293 | + "./dist/index.d.ts" |
| 294 | + ] |
| 295 | + } |
294 | 296 | }
|
295 | 297 | }
|
0 commit comments