@pawover/kit-eslint-rules 0.2.0-alpha.1 → 0.2.0-alpha.3

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/package.json CHANGED
@@ -6,11 +6,12 @@
6
6
  "url": "https://github.com/pawover"
7
7
  },
8
8
  "description": "Self-contained ESLint flat config preset: javascript, typescript, react, vue, stylistic, antfu and import rules, with pinned bundled plugins",
9
- "version": "0.2.0-alpha.1",
9
+ "version": "0.2.0-alpha.3",
10
10
  "type": "module",
11
11
  "keywords": [
12
12
  "pawover",
13
- "pawover-kit-eslint-rules"
13
+ "pawover-kit-eslint-rules",
14
+ "tanstack-intent"
14
15
  ],
15
16
  "homepage": "https://github.com/pawover/pawover-kit/packages/eslint-rules#readme",
16
17
  "repository": {
@@ -25,7 +26,8 @@
25
26
  "module": "./dist/index.js",
26
27
  "types": "./dist/index.d.ts",
27
28
  "files": [
28
- "dist"
29
+ "dist",
30
+ "skills/eslint-preset"
29
31
  ],
30
32
  "exports": {
31
33
  ".": {
@@ -44,16 +46,17 @@
44
46
  "access": "public"
45
47
  },
46
48
  "dependencies": {
47
- "@eslint-react/eslint-plugin": "5.28.8",
48
- "@stylistic/eslint-plugin": "6.0.0-beta.6",
49
+ "@eslint-react/eslint-plugin": "5.30.3",
50
+ "@pawover/kit-utils": "1.1.0-alpha.0",
51
+ "@stylistic/eslint-plugin": "6.0.1",
49
52
  "eslint-flat-config-utils": "3.2.0",
50
53
  "eslint-plugin-antfu": "3.3.1",
51
54
  "eslint-plugin-import-lite": "0.6.0",
52
55
  "eslint-plugin-react-hooks": "7.1.1",
53
56
  "eslint-plugin-simple-import-sort": "14.0.0",
54
- "eslint-plugin-vue": "10.12.0",
55
- "typescript-eslint": "8.72.1",
56
- "vue-eslint-parser": "10.4.1"
57
+ "eslint-plugin-vue": "10.12.1",
58
+ "typescript-eslint": "8.73.0",
59
+ "vue-eslint-parser": "10.4.2"
57
60
  },
58
61
  "devDependencies": {
59
62
  "@pawover/kit-internal": "0.0.0"
@@ -0,0 +1,332 @@
1
+ ---
2
+ name: eslint-preset
3
+ description: >-
4
+ Use when configuring ESLint flat config with @pawover/kit-eslint-rules,
5
+ including enabling TypeScript, React, Vue, stylistic, antfu, imports, or
6
+ importsSort groups; overriding rules per group or per layer; handling React
7
+ Compiler rules; and applying stylistic (quotes / semi) or vue (naming /
8
+ templateNaming / attributeNaming / eventNaming) quick switches.
9
+ metadata:
10
+ purpose: >-
11
+ Configure ESLint flat config with the self-contained
12
+ @pawover/kit-eslint-rules preset, including style quick switches and
13
+ the documented precedence over explicit overrides.
14
+ type: core
15
+ library: "@pawover/kit-eslint-rules"
16
+ library_version: "0.2.0-alpha.1"
17
+ sources:
18
+ - src/index.ts
19
+ - src/config.ts
20
+ - src/globs.ts
21
+ - src/globExclude.ts
22
+ - src/reactCompiler.ts
23
+ - src/core.javascript.ts
24
+ - src/core.typescript.ts
25
+ - src/core.stylistic.ts
26
+ - src/core.react.ts
27
+ - src/core.vue.ts
28
+ ---
29
+
30
+ # Configure `@pawover/kit-eslint-rules`
31
+
32
+ The package is a self-contained ESLint flat config preset. Every upstream plugin
33
+ it uses is a dependency and is registered by the factory; do not install or
34
+ register the preset's plugins manually. It also depends on
35
+ `@pawover/kit-utils` (shared internal utilities, used at assembly time for
36
+ array de-duplication when merging parser options).
37
+
38
+ The default export is `pawover(options?, ...userConfigs)`. It returns an
39
+ `eslint-flat-config-utils` `FlatConfigComposer`, which extends `Promise` and can
40
+ be exported directly from `eslint.config.js`.
41
+
42
+ ## Setup
43
+
44
+ ```ts
45
+ // eslint.config.js
46
+ import pawover from "@pawover/kit-eslint-rules";
47
+
48
+ export default pawover();
49
+ ```
50
+
51
+ With no options, the preset returns the global ignore layer, the JavaScript
52
+ parser layer, and the JavaScript rules layer. `javascript` is always enabled.
53
+ Every other group is opt-in.
54
+
55
+ ```ts
56
+ // eslint.config.js
57
+ import pawover from "@pawover/kit-eslint-rules";
58
+
59
+ const fullConfig = pawover({
60
+ typescript: true,
61
+ stylistic: true,
62
+ antfu: true,
63
+ imports: true,
64
+ importsSort: true,
65
+ react: true,
66
+ });
67
+ ```
68
+
69
+ ## Core patterns
70
+
71
+ ### Enable the groups the project needs
72
+
73
+ | Option | Enables | Files |
74
+ | ------------- | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
75
+ | `typescript` | TypeScript plugin, parser, and rules | `**/*.{ts,tsx}`; adds `*.vue` when `vue` is enabled |
76
+ | `stylistic` | Stylistic rules | source files |
77
+ | `antfu` | `eslint-plugin-antfu` rules | source files |
78
+ | `imports` | `eslint-plugin-import-lite` rules | source files |
79
+ | `importsSort` | `eslint-plugin-simple-import-sort` rules | source files |
80
+ | `react` | `@eslint-react` + `eslint-plugin-react-hooks` | source files; type-aware rules also cover `*.jsx` |
81
+ | `vue` | Vue parser, `vue/vue` processor, and rules | `**/*.vue`; when `typescript` is also enabled, the TypeScript parser's `extraFileExtensions` additionally admits `.vue` |
82
+
83
+ `typescript` defaults the parser to `projectService: true`. Pass parser options
84
+ to match the project:
85
+
86
+ ```ts
87
+ // eslint.config.js
88
+ import pawover from "@pawover/kit-eslint-rules";
89
+
90
+ const parserConfig = pawover({
91
+ typescript: {
92
+ parserOptions: { tsconfigRootDir: process.cwd() },
93
+ },
94
+ });
95
+ ```
96
+
97
+ The passed `parserOptions` are shallow-merged over the defaults; a same-named key
98
+ wins, with one exception: `extraFileExtensions` is de-duplicated and merged with
99
+ the preset's required entries (`.vue` when `vue` is enabled) instead of being
100
+ overwritten. When `vue` is not enabled, the user's `extraFileExtensions` is
101
+ passed through unchanged — the preset neither trims nor rewrites it.
102
+ Use `filesTypeAware` to narrow the type-aware file range; the default is
103
+ `GLOB_TYPESCRIPT` (`**/*.{ts,tsx}`).
104
+
105
+ ### Override rules at the group level
106
+
107
+ Every group accepts `{ overrides }`. The override is merged into the preset's
108
+ rule map at generation time, so it inherits the group's file range and plugin
109
+ registration. This avoids the flat-config plugin-scope problem that occurs when
110
+ a later config layer uses a rule without registering its plugin.
111
+
112
+ ```ts
113
+ // eslint.config.js
114
+ import pawover from "@pawover/kit-eslint-rules";
115
+
116
+ const overrideConfig = pawover({
117
+ typescript: {
118
+ overrides: {
119
+ "ts/consistent-type-definitions": ["error", "interface"],
120
+ },
121
+ },
122
+ react: {
123
+ overrides: {
124
+ "react/no-implicit-key": "warn",
125
+ },
126
+ },
127
+ });
128
+ ```
129
+
130
+ Type-aware rules use `overridesTypeAware`. They only apply inside
131
+ `filesTypeAware`; React's type-aware layer also includes `GLOB_JSX`:
132
+
133
+ ```ts
134
+ import pawover, { GLOB_TYPESCRIPT } from "@pawover/kit-eslint-rules";
135
+
136
+ const typeAwareConfig = pawover({
137
+ typescript: {
138
+ filesTypeAware: GLOB_TYPESCRIPT,
139
+ overridesTypeAware: {
140
+ "ts/no-unsafe-assignment": "warn",
141
+ },
142
+ },
143
+ });
144
+ ```
145
+
146
+ ### Use style quick switches
147
+
148
+ `stylistic` and `vue` accept ergonomic shortcut options that compile into rule
149
+ overrides at assembly time. They sit between the rule map defaults and
150
+ `overrides`:
151
+
152
+ ```ts
153
+ import pawover from "@pawover/kit-eslint-rules";
154
+
155
+ const config = pawover({
156
+ stylistic: { quotes: "single", semi: false },
157
+ vue: { naming: "kebab-case" },
158
+ });
159
+ ```
160
+
161
+ `stylistic.quotes` switches `stylistic/quotes` and `stylistic/jsx-quotes` in
162
+ tandem (`"single"` → `"prefer-single"`, `"double"` → `"prefer-double"`).
163
+ `stylistic.semi: false` additionally rewrites
164
+ `stylistic/member-delimiter-style` (multiline: `delimiter: "none"`,
165
+ `requireLast: false`; singleline: `delimiter: "comma"`). The two options are
166
+ independent and only affect rules they explicitly own — `semi-spacing`,
167
+ `semi-style`, `no-extra-semi`, `quote-props`, and `vue/html-quotes` are
168
+ left untouched, and `quotes` does not inject `allowTemplateLiterals`. HTML
169
+ attribute quotes stay at `double` regardless of the switch.
170
+
171
+ `vue.naming` sets `vue/component-name-in-template-casing`,
172
+ `vue/attribute-hyphenation`, and `vue/v-on-event-hyphenation` in one go.
173
+ Override any of them individually with `templateNaming`, `attributeNaming`, or
174
+ `eventNaming` — the per-item option wins over the group-wide `naming`.
175
+
176
+ Precedence (highest first): `overrides` > per-item shortcut > group shortcut >
177
+ rule map default. Both shortcut sets remain fully compatible with the existing
178
+ `{ overrides }` shape.
179
+
180
+ ### Control React Compiler rules
181
+
182
+ When `react` is enabled, the preset switches ten overlapping rules from
183
+ `@eslint-react` to the official `eslint-plugin-react-hooks` implementations and
184
+ turns off the `@eslint-react` equivalents. This avoids duplicate diagnostics and
185
+ also disables `react/no-unstable-context-value` because React Compiler memoizes
186
+ context values.
187
+
188
+ ```ts
189
+ // Default: official recommended Compiler rules
190
+ const recommendedConfig = pawover({ typescript: true, react: true });
191
+
192
+ // Keep the @eslint-react implementations instead
193
+ const legacyConfig = pawover({ typescript: true, react: { compiler: false } });
194
+
195
+ // Add the experimental void-use-memo rule
196
+ const latestConfig = pawover({ typescript: true, react: { compiler: "latest" } });
197
+ ```
198
+
199
+ `react.overrides` is applied last, so it can override any switched rule. The
200
+ official-only `config`, `gating`, `incompatible-library`, and
201
+ `preserve-manual-memoization` rules are always provided by `react-hooks`.
202
+
203
+ Without `typescript`, the React group disables the type-aware rules and registers
204
+ a no-op plugin implementation. A later override that forces one of those rules
205
+ on will not throw "requires type information". With `typescript` enabled, the
206
+ type-aware rules apply to `filesTypeAware` plus `*.jsx`; the `.jsx` type
207
+ availability still depends on the project's `tsconfig` `include` / `allowJs`.
208
+
209
+ ### Override a specific generated layer
210
+
211
+ Each layer has a unique name. Use the composer's `override(name, config)` to
212
+ target it precisely:
213
+
214
+ ```ts
215
+ import pawover from "@pawover/kit-eslint-rules";
216
+
217
+ const layerConfig = pawover({ typescript: true }).override("pawover/typescript/rules", {
218
+ rules: {
219
+ "ts/consistent-type-definitions": ["error", "interface"],
220
+ },
221
+ });
222
+ ```
223
+
224
+ Layer names are `pawover/<group>/<setup|parser|rules|type-aware>`; group names use
225
+ kebab-case (`importsSort` → `imports-sort`). The global ignore layer is
226
+ `pawover/ignores`. See
227
+ [the options reference](references/options.md) for the complete layer list.
228
+
229
+ ### Append or prepend your own config
230
+
231
+ The second and later arguments are appended as flat configs. They can be a
232
+ single object, an array, a composer, or a Promise of an array. You can also use
233
+ the composer methods directly.
234
+
235
+ ```ts
236
+ import pawover from "@pawover/kit-eslint-rules";
237
+
238
+ const appendedConfig = pawover({ typescript: true }, { rules: { "no-console": "error" } });
239
+
240
+ // Equivalent composition style
241
+ const composerConfig = pawover({ typescript: true }).append({
242
+ rules: { "no-console": "error" },
243
+ });
244
+ ```
245
+
246
+ ### Use the exported glob constants
247
+
248
+ `GLOB_SOURCE`, `GLOB_TYPESCRIPT`, `GLOB_JSX`, `GLOB_VUE`, and `GLOB_EXCLUDE` are
249
+ available for custom layers and overrides.
250
+
251
+ ```ts
252
+ import pawover, { GLOB_JSX, GLOB_TYPESCRIPT } from "@pawover/kit-eslint-rules";
253
+
254
+ const globConfig = pawover({ typescript: true }).append({
255
+ files: [...GLOB_TYPESCRIPT, GLOB_JSX],
256
+ rules: {
257
+ "no-console": "warn",
258
+ },
259
+ });
260
+ ```
261
+
262
+ `GLOB_EXCLUDE` already covers dependency directories, build outputs, lockfiles,
263
+ editor directories, caches, and generated declaration files. Extend ignores by
264
+ appending a layer or overriding `pawover/ignores`; the factory does not accept an
265
+ `ignores` option.
266
+
267
+ ## Common mistakes
268
+
269
+ ### Passing `javascript: true`
270
+
271
+ The JavaScript group is always on and is not a switch. Use its option object only
272
+ for overrides:
273
+
274
+ ```ts no-check
275
+ pawover({ javascript: true }); // javascript is always enabled
276
+ ```
277
+
278
+ ```ts
279
+ pawover({ javascript: { overrides: { "no-console": "error" } } });
280
+ ```
281
+
282
+ ### Passing `ignores` or `renamePlugins` to the factory
283
+
284
+ The factory does not accept these options. Append a config layer for ignores, or
285
+ use the composer's `.renamePlugins()`:
286
+
287
+ ```ts no-check
288
+ pawover({ ignores: ["dist/**"] });
289
+ pawover({ renamePlugins: { ts: "typescript" } });
290
+ ```
291
+
292
+ Use:
293
+
294
+ ```ts
295
+ import pawover from "@pawover/kit-eslint-rules";
296
+
297
+ const customConfig = pawover({ typescript: true })
298
+ .append({ ignores: ["dist/**"] })
299
+ .renamePlugins({ ts: "typescript" });
300
+ ```
301
+
302
+ ### Installing the preset's plugins manually
303
+
304
+ The preset is self-contained. Installing `@eslint-react`, `typescript-eslint`,
305
+ `eslint-plugin-vue`, and the rest separately can produce a second copy or a
306
+ different version than the one the preset registers. Install only
307
+ `@pawover/kit-eslint-rules` (plus ESLint itself), then add custom plugins in your
308
+ own config layer when needed.
309
+
310
+ ### Enabling React type-aware rules without TypeScript
311
+
312
+ The React group only enables type-aware rules when `typescript` is also enabled.
313
+ Without it, the preset registers no-op implementations so forced rules do not
314
+ throw. If the project needs those checks, enable `typescript` and ensure the
315
+ files are covered by the project's `tsconfig`.
316
+
317
+ ### Assuming `.jsx` is type-aware in a TS project
318
+
319
+ React's type-aware range adds `*.jsx`, but TypeScript only has type information
320
+ for those files when the project's `tsconfig` includes them and `allowJs` allows
321
+ them. Files outside the project are reported as "not in the project".
322
+
323
+ ## Completion
324
+
325
+ - `pawover()` is the default export of `eslint.config.js`.
326
+ - Only the needed groups are enabled; `javascript` is left implicit.
327
+ - Group overrides use `overrides` / `overridesTypeAware`, not a separate layer
328
+ that lacks plugin registration.
329
+ - Layer overrides use the exact generated layer name.
330
+ - The project does not install the preset's upstream plugins separately.
331
+ - The config runs with the project's package manager and the ESLint version the
332
+ preset supports.
@@ -0,0 +1,164 @@
1
+ # Preset options and layers
2
+
3
+ This reference lists the generated layers, the option shapes, and the glob
4
+ constants. Use it when a layer name or option boundary is not obvious from the
5
+ main skill.
6
+
7
+ ## Generated layer names
8
+
9
+ The factory emits layers in this order when the corresponding group is enabled:
10
+
11
+ | Layer name | Contents |
12
+ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | `pawover/ignores` | The `GLOB_EXCLUDE` ignore list. |
14
+ | `pawover/javascript/parser` | JavaScript parser settings (`ecmaVersion: "latest"`, `sourceType: "module"`, JSX enabled). |
15
+ | `pawover/javascript/rules` | JavaScript rule map and `javascript.overrides`. |
16
+ | `pawover/typescript/setup` | Registers the `ts` plugin. |
17
+ | `pawover/typescript/parser` | TypeScript parser with `projectService: true`, `typescript.parserOptions`, and the preset-merged `extraFileExtensions` (`.vue` appended and de-duplicated only when `vue` is enabled; user value passed through unchanged otherwise). |
18
+ | `pawover/typescript/rules` | TypeScript rule map and `typescript.overrides`. |
19
+ | `pawover/typescript/type-aware` | `typescript.overridesTypeAware` on `filesTypeAware`. |
20
+ | `pawover/stylistic/setup` / `rules` | Registers the `stylistic` plugin and applies its rules. `stylistic.overrides` is merged last; style shortcut keys (`quotes` / `semi`) compile into rule overrides between the rule map default and `overrides`. |
21
+ | `pawover/antfu/setup` / `rules` | Registers the `antfu` plugin and applies its rules. |
22
+ | `pawover/imports/setup` / `rules` | Registers the `imports` plugin and applies its rules. |
23
+ | `pawover/imports-sort/setup` / `rules` | Registers the `importsSort` plugin and applies its rules. |
24
+ | `pawover/react/setup` | Registers `react` and `react-hooks` (or the no-op `react` implementation without TypeScript). |
25
+ | `pawover/react/rules` | React base rules, hooks rules, compiler switch, and `react.overrides`. |
26
+ | `pawover/react/type-aware` | React type-aware rules and `react.overridesTypeAware`. |
27
+ | `pawover/vue/setup` | Registers the `vue` plugin. |
28
+ | `pawover/vue/parser` | `vue-eslint-parser` with the `vue/vue` processor (consumes `vue/comment-directive` `clear` messages; without it each `clear` surfaces as an error), optionally delegating `<script>` to the TypeScript parser. |
29
+ | `pawover/vue/rules` | Vue rule map and `vue.overrides`. Style shortcut keys (`naming` / `templateNaming` / `attributeNaming` / `eventNaming`) compile into rule overrides between the rule map default and `overrides`. |
30
+
31
+ Group names in layer names use kebab-case: `importsSort` becomes
32
+ `imports-sort`.
33
+
34
+ ## Option shapes
35
+
36
+ ```ts
37
+ import type { PawoverOptions } from "@pawover/kit-eslint-rules";
38
+
39
+ const options: PawoverOptions = {
40
+ javascript: { overrides: { "no-console": "error" } },
41
+ typescript: {
42
+ overrides: { "ts/consistent-type-definitions": ["error", "interface"] },
43
+ overridesTypeAware: { "ts/no-unsafe-assignment": "warn" },
44
+ filesTypeAware: ["**/*.{ts,tsx}"],
45
+ parserOptions: { tsconfigRootDir: "/repo" },
46
+ },
47
+ stylistic: { quotes: "single", semi: false },
48
+ antfu: true,
49
+ imports: true,
50
+ importsSort: true,
51
+ react: {
52
+ compiler: "latest",
53
+ overrides: { "react/no-implicit-key": "warn" },
54
+ overridesTypeAware: { "react/no-unused-props": "off" },
55
+ },
56
+ vue: {
57
+ naming: "kebab-case",
58
+ templateNaming: "PascalCase",
59
+ overrides: { "vue/multi-word-component-names": "off" },
60
+ },
61
+ };
62
+ ```
63
+
64
+ `javascript` is always enabled; its option only accepts overrides. All other
65
+ groups accept `true` or an options object. Each group's `overrides` is merged
66
+ into that group's rule map at generation time.
67
+
68
+ ## Style quick switches
69
+
70
+ `stylistic` and `vue` options accept shortcut keys that compile into rule
71
+ overrides at assembly time. The precedence is
72
+ `overrides` > per-item shortcut > group shortcut > rule map default.
73
+
74
+ **`StylisticOptions`**:
75
+
76
+ - `quotes?: "single" | "double"` — toggles `stylistic/quotes` and
77
+ `stylistic/jsx-quotes` in tandem (`single` → `prefer-single`,
78
+ `double` → `prefer-double`). Does not inject `allowTemplateLiterals`.
79
+ - `semi?: boolean` — toggles `stylistic/semi`; when `false`, additionally
80
+ rewrites `stylistic/member-delimiter-style` (multiline:
81
+ `delimiter: "none"`, `requireLast: false`; singleline:
82
+ `delimiter: "comma"`).
83
+
84
+ The two keys only affect the rules they explicitly own. Rules that are **not**
85
+ touched: `semi-spacing`, `semi-style`, `no-extra-semi`, `quote-props`, and
86
+ `vue/html-quotes` (HTML attribute quotes stay at `double` regardless of the
87
+ switch).
88
+
89
+ **`VueOptions`**:
90
+
91
+ - `naming?: "PascalCase" | "camelCase" | "kebab-case"` — one-shot setter for
92
+ `vue/component-name-in-template-casing`, `vue/attribute-hyphenation`, and
93
+ `vue/v-on-event-hyphenation`.
94
+ - `templateNaming?` / `attributeNaming?` / `eventNaming?` — per-item
95
+ overrides; each takes precedence over `naming` for its own rule.
96
+
97
+ Both shortcut sets remain fully compatible with the existing `{ overrides }`
98
+ shape.
99
+
100
+ ## Glob constants
101
+
102
+ | Constant | Value | Meaning |
103
+ | ----------------- | ---------------------------------- | ------------------------------------------------------------------------------------------- |
104
+ | `GLOB_SOURCE` | `["**/*.{js,cjs,mjs,jsx,ts,tsx}"]` | All source files. Append `GLOB_VUE` when customizing Vue sources. |
105
+ | `GLOB_TYPESCRIPT` | `["**/*.{ts,tsx}"]` | TypeScript files; default for type-aware layers. |
106
+ | `GLOB_JSX` | `"**/*.jsx"` | JSX files; added to React's type-aware range. |
107
+ | `GLOB_VUE` | `"**/*.vue"` | Vue single-file components. |
108
+ | `GLOB_EXCLUDE` | Array of ignore globs | Dependencies, build outputs, lockfiles, caches, editor directories, generated declarations. |
109
+
110
+ ## React Compiler switch
111
+
112
+ The switch covers ten rules that exist in both `@eslint-react` and
113
+ `eslint-plugin-react-hooks`:
114
+
115
+ `error-boundaries`, `globals`, `immutability`, `purity`, `refs`,
116
+ `set-state-in-effect`, `set-state-in-render`, `static-components`,
117
+ `unsupported-syntax`, `use-memo`.
118
+
119
+ When enabled, the `@eslint-react` equivalents are set to `0` and the
120
+ `react-hooks` implementations are enabled at the level from the official
121
+ `recommended` preset. It also disables `react/no-unstable-context-value`.
122
+ `compiler: "latest"` adds the experimental `react-hooks/void-use-memo`.
123
+
124
+ `compiler: false` turns off the ten `react-hooks` compiler rules and leaves the
125
+ `@eslint-react` implementations in place. The official-only rules (`config`,
126
+ `gating`, `incompatible-library`, `preserve-manual-memoization`) remain from
127
+ `react-hooks` in all modes.
128
+
129
+ ## Composer operations
130
+
131
+ The returned value is a `FlatConfigComposer` and inherits `Promise`. Useful
132
+ methods:
133
+
134
+ ```ts
135
+ import pawover from "@pawover/kit-eslint-rules";
136
+
137
+ const config = pawover({ typescript: true })
138
+ .append({ rules: { "no-console": "error" } })
139
+ .prepend({ files: ["**/*.ts"], rules: { "no-console": "warn" } })
140
+ .override("pawover/typescript/rules", {
141
+ rules: { "ts/consistent-type-definitions": ["error", "interface"] },
142
+ })
143
+ .renamePlugins({ ts: "typescript" });
144
+ ```
145
+
146
+ `append` and `prepend` accept a config, an array, a composer, or a Promise of an
147
+ array. `override` targets a layer by its generated name. `renamePlugins` renames
148
+ matching plugin keys and rule prefixes across all configurations in the
149
+ composer.
150
+
151
+ ## Common option mistakes
152
+
153
+ - `javascript` is not a boolean switch; passing `true` is not meaningful.
154
+ - `filesTypeAware` only accepts `string[]`; a single glob string is invalid.
155
+ - `parserOptions` is shallow-merged, so nested objects are replaced rather than
156
+ deep-merged — except `extraFileExtensions`, which is de-duplicated and merged
157
+ with the preset's required entries (`.vue` when `vue` is enabled) instead of
158
+ being overwritten. Without `vue`, the user value is passed through unchanged.
159
+ De-duplication uses strict string equality: `.Vue` and `.vue` are treated as
160
+ distinct entries — normalize casing yourself before passing the array.
161
+ - `ignores` and `renamePlugins` are composer concerns, not factory options.
162
+ - `react.compiler` accepts `true`, `false`, `"recommended"`, or `"latest"`.
163
+ - A custom plugin layer must register the plugin before using its rules; the
164
+ preset's setup layers only cover the preset's own plugins.