@anolilab/eslint-config 16.2.9 → 16.2.11

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 CHANGED
@@ -1,3 +1,19 @@
1
+ ## @anolilab/eslint-config [16.2.11](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.2.10...@anolilab/eslint-config@16.2.11) (2025-06-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **eslint-config:** fixed loading of react compiler rule ([a62617e](https://github.com/anolilab/javascript-style-guide/commit/a62617e78db84b6ca04f355d056b50a0516206a2))
6
+
7
+ ## @anolilab/eslint-config [16.2.10](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.2.9...@anolilab/eslint-config@16.2.10) (2025-06-02)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **eslint-config:** added missing eslint-plugin-react-refresh package to install ([714a011](https://github.com/anolilab/javascript-style-guide/commit/714a011f6b4fd50ef236fa2dcab1172d76fe2ab5))
12
+
13
+ ### Code Refactoring
14
+
15
+ * **eslint-config:** remove type imports and simplify config exports in README.md ([d50eab8](https://github.com/anolilab/javascript-style-guide/commit/d50eab887dbd9586254689e7dc43694247f6522e))
16
+
1
17
  ## @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
18
 
3
19
  ### Bug Fixes
package/README.md CHANGED
@@ -77,10 +77,9 @@ Create `eslint.config.mjs` in your project root:
77
77
 
78
78
  ```js
79
79
  // eslint.config.mjs
80
- import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
81
80
  import { createConfig } from "@anolilab/eslint-config";
82
81
 
83
- export default createConfig() as PromiseFlatConfigComposer;
82
+ export default createConfig();
84
83
  ```
85
84
 
86
85
  <details>
@@ -92,7 +91,6 @@ If you still use some configs from the legacy eslintrc format, you can use the [
92
91
 
93
92
  ```js
94
93
  // eslint.config.mjs
95
- import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
96
94
  import { createConfig } from "@anolilab/eslint-config";
97
95
  import { FlatCompat } from "@eslint/eslintrc";
98
96
 
@@ -112,7 +110,7 @@ export default createConfig(
112
110
  }),
113
111
 
114
112
  // Other flat configs...
115
- ) as PromiseFlatConfigComposer;
113
+ );
116
114
  ```
117
115
 
118
116
  > Note that `.eslintignore` no longer works in Flat config.
@@ -123,9 +121,9 @@ Or you can configure each integration individually, for example:
123
121
 
124
122
  ```js
125
123
  // eslint.config.js
126
- import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
127
124
  import { createConfig } from "@anolilab/eslint-config";
128
125
 
126
+ /** @type {import("@anolilab/eslint-config").PromiseFlatConfigComposer} */
129
127
  export default createConfig({
130
128
  // Enable stylistic formatting rules
131
129
  // stylistic: true,
@@ -149,7 +147,7 @@ export default createConfig({
149
147
  vue: true,
150
148
 
151
149
  yaml: false,
152
- }) as PromiseFlatConfigComposer;
150
+ });
153
151
  ```
154
152
 
155
153
  ### Add script for package.json
@@ -169,7 +167,6 @@ The factory function also accepts any number of arbitrary custom config override
169
167
 
170
168
  ```js
171
169
  // eslint.config.js
172
- import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
173
170
  import { createConfig } from "@anolilab/eslint-config";
174
171
 
175
172
  export default createConfig(
@@ -186,16 +183,16 @@ export default createConfig(
186
183
  {
187
184
  rules: {},
188
185
  },
189
- ) as PromiseFlatConfigComposer;
186
+ );
190
187
  ```
191
188
 
192
189
  We also provided the `overrides` options in each integration to make it easier:
193
190
 
194
191
  ```js
195
192
  // eslint.config.js
196
- import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
197
193
  import { createConfig } from "@anolilab/eslint-config";
198
194
 
195
+ /** @type {import("@anolilab/eslint-config").PromiseFlatConfigComposer} */
199
196
  export default createConfig({
200
197
  typescript: {
201
198
  overrides: {
@@ -207,7 +204,7 @@ export default createConfig({
207
204
  // ...
208
205
  },
209
206
  },
210
- }) as PromiseFlatConfigComposer;
207
+ });
211
208
  ```
212
209
 
213
210
  ## IDE Support (auto fix on save)
@@ -407,14 +404,14 @@ You can optionally enable the [type aware](https://typescript-eslint.io/linting/
407
404
 
408
405
  ```js
409
406
  // eslint.config.js
410
- import type { PromiseFlatConfigComposer } from "@anolilab/eslint-config";
411
407
  import { createConfig } from "@anolilab/eslint-config";
412
408
 
409
+ /** @type {import("@anolilab/eslint-config").PromiseFlatConfigComposer} */
413
410
  export default createConfig({
414
411
  typescript: {
415
412
  tsconfigPath: "tsconfig.json",
416
413
  },
417
- }) as PromiseFlatConfigComposer;
414
+ });
418
415
  ```
419
416
 
420
417
  ### Utilities