@anolilab/eslint-config 16.2.7 → 16.2.9
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/CHANGELOG.md +14 -0
- package/README.md +14 -9
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +72 -64
- package/dist/index.d.mts +72 -64
- package/dist/index.d.ts +72 -64
- package/dist/index.mjs +12 -10
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## @anolilab/eslint-config [16.2.9](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.2.8...@anolilab/eslint-config@16.2.9) (2025-06-01)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* enhance packem configuration with isolated declaration transformer and cjsInterop ([fb759fc](https://github.com/anolilab/javascript-style-guide/commit/fb759fc1246adb01d2f5d7a1b254eb036a86ec13))
|
|
6
|
+
* **eslint-config:** update dependencies and improve ESLint configuration ([c6163fa](https://github.com/anolilab/javascript-style-guide/commit/c6163fac21255cb20eeaedce634e2ec21af6f963))
|
|
7
|
+
|
|
8
|
+
## @anolilab/eslint-config [16.2.8](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.2.7...@anolilab/eslint-config@16.2.8) (2025-06-01)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **eslint-config:** improve Tailwind CSS version detection in ESLint config ([112704e](https://github.com/anolilab/javascript-style-guide/commit/112704efe2af8f8995ffe1cf1335cd63819f74b5))
|
|
13
|
+
* **eslint-config:** remove unused CSS plugin configuration ([2582bb4](https://github.com/anolilab/javascript-style-guide/commit/2582bb458d4d53e7ae473972911801d0754ea8b7))
|
|
14
|
+
|
|
1
15
|
## @anolilab/eslint-config [16.2.7](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.2.6...@anolilab/eslint-config@16.2.7) (2025-06-01)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -77,10 +77,10 @@ Create `eslint.config.mjs` in your project root:
|
|
|
77
77
|
|
|
78
78
|
```js
|
|
79
79
|
// eslint.config.mjs
|
|
80
|
-
|
|
80
|
+
import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
|
|
81
81
|
import { createConfig } from "@anolilab/eslint-config";
|
|
82
82
|
|
|
83
|
-
export default createConfig();
|
|
83
|
+
export default createConfig() as PromiseFlatConfigComposer;
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
<details>
|
|
@@ -92,6 +92,7 @@ If you still use some configs from the legacy eslintrc format, you can use the [
|
|
|
92
92
|
|
|
93
93
|
```js
|
|
94
94
|
// eslint.config.mjs
|
|
95
|
+
import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
|
|
95
96
|
import { createConfig } from "@anolilab/eslint-config";
|
|
96
97
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
97
98
|
|
|
@@ -111,7 +112,7 @@ export default createConfig(
|
|
|
111
112
|
}),
|
|
112
113
|
|
|
113
114
|
// Other flat configs...
|
|
114
|
-
);
|
|
115
|
+
) as PromiseFlatConfigComposer;
|
|
115
116
|
```
|
|
116
117
|
|
|
117
118
|
> Note that `.eslintignore` no longer works in Flat config.
|
|
@@ -122,6 +123,7 @@ Or you can configure each integration individually, for example:
|
|
|
122
123
|
|
|
123
124
|
```js
|
|
124
125
|
// eslint.config.js
|
|
126
|
+
import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
|
|
125
127
|
import { createConfig } from "@anolilab/eslint-config";
|
|
126
128
|
|
|
127
129
|
export default createConfig({
|
|
@@ -147,7 +149,7 @@ export default createConfig({
|
|
|
147
149
|
vue: true,
|
|
148
150
|
|
|
149
151
|
yaml: false,
|
|
150
|
-
});
|
|
152
|
+
}) as PromiseFlatConfigComposer;
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
### Add script for package.json
|
|
@@ -167,6 +169,7 @@ The factory function also accepts any number of arbitrary custom config override
|
|
|
167
169
|
|
|
168
170
|
```js
|
|
169
171
|
// eslint.config.js
|
|
172
|
+
import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
|
|
170
173
|
import { createConfig } from "@anolilab/eslint-config";
|
|
171
174
|
|
|
172
175
|
export default createConfig(
|
|
@@ -183,13 +186,14 @@ export default createConfig(
|
|
|
183
186
|
{
|
|
184
187
|
rules: {},
|
|
185
188
|
},
|
|
186
|
-
);
|
|
189
|
+
) as PromiseFlatConfigComposer;
|
|
187
190
|
```
|
|
188
191
|
|
|
189
192
|
We also provided the `overrides` options in each integration to make it easier:
|
|
190
193
|
|
|
191
194
|
```js
|
|
192
195
|
// eslint.config.js
|
|
196
|
+
import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
|
|
193
197
|
import { createConfig } from "@anolilab/eslint-config";
|
|
194
198
|
|
|
195
199
|
export default createConfig({
|
|
@@ -203,7 +207,7 @@ export default createConfig({
|
|
|
203
207
|
// ...
|
|
204
208
|
},
|
|
205
209
|
},
|
|
206
|
-
});
|
|
210
|
+
}) as PromiseFlatConfigComposer;
|
|
207
211
|
```
|
|
208
212
|
|
|
209
213
|
## IDE Support (auto fix on save)
|
|
@@ -403,13 +407,14 @@ You can optionally enable the [type aware](https://typescript-eslint.io/linting/
|
|
|
403
407
|
|
|
404
408
|
```js
|
|
405
409
|
// eslint.config.js
|
|
406
|
-
import
|
|
410
|
+
import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
|
|
411
|
+
import { createConfig } from "@anolilab/eslint-config";
|
|
407
412
|
|
|
408
|
-
export default
|
|
413
|
+
export default createConfig({
|
|
409
414
|
typescript: {
|
|
410
415
|
tsconfigPath: "tsconfig.json",
|
|
411
416
|
},
|
|
412
|
-
});
|
|
417
|
+
}) as PromiseFlatConfigComposer;
|
|
413
418
|
```
|
|
414
419
|
|
|
415
420
|
### Utilities
|