We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f0e8e commit 2919560Copy full SHA for 2919560
package.json
@@ -15,6 +15,7 @@
15
"url": "https://github.com/mmkal/eslint-plugin-mmkal"
16
},
17
"scripts": {
18
+ "inspect": "npx @eslint/config-inspector",
19
"prepare": "pnpm build",
20
"lint": "eslint .",
21
"test": "vitest run",
src/index.ts
@@ -477,12 +477,7 @@ type ConfigsRecord = typeof configsRecord
477
export const configs = Object.fromEntries(
478
Object.entries(configsRecord).map(([k, v]) => {
479
const named = v.map((cfg, i) => {
480
- const clone = {...cfg}
481
- Object.defineProperty(clone, 'name', {
482
- value: `${k}.${i}`,
483
- enumerable: false,
484
- })
485
- return clone
+ return {name: `${k}.${i}`, ...cfg}
486
})
487
return [k, named]
488
}),
0 commit comments