@jimmy.codes/eslint-config
Version:
A simple, modern ESLint config that covers most use cases.
23 lines (20 loc) • 696 B
JavaScript
import { s as GLOB_NEXTJS } from "./globs-C5FyFNuk.js";
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
import { t as upwarn } from "./upwarn-DItTz7lt.js";
//#region src/rules/nextjs.ts
const nextjsRules = async () => {
return upwarn((await interopDefault(import("@next/eslint-plugin-next"))).configs.recommended.rules);
};
//#endregion
//#region src/configs/nextjs.ts
async function nextjsConfig() {
const nextjsPlugin = await interopDefault(import("@next/eslint-plugin-next"));
return [{
files: GLOB_NEXTJS,
name: "jimmy.codes/nextjs",
plugins: { "@next/next": nextjsPlugin },
rules: await nextjsRules()
}];
}
//#endregion
export { nextjsConfig as default };