Skip to content

Commit e46553c

Browse files
authored
refactor: use defineConfig in the default JavaScript example (#234)
1 parent d2e9928 commit e46553c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/const.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ export const defaultJsCode = `
333333
*/
334334
335335
import js from "@eslint/js";
336+
import { defineConfig } from "eslint/config";
336337
337338
function getConfig() {
338339
return {
@@ -342,10 +343,10 @@ function getConfig() {
342343
};
343344
}
344345
345-
export default [
346-
...js.configs.recommended,
346+
export default defineConfig([
347+
js.configs.recommended,
347348
getConfig()
348-
];`.trim();
349+
]);`.trim();
349350

350351
export const defaultJsonCode = `
351352
/**

0 commit comments

Comments
 (0)