eslint flat config with support for typescript, react, vitest, and license headers
pnpm add -D @grby/eslint-config
// eslint.config.js
import config from "@grby/eslint-config";
export default config;
// eslint.config.js
import config from "@grby/eslint-config";
import { withLicenseHeader } from "@grby/eslint-config/header";
export default [
...config,
withLicenseHeader([" * foo", " * bar"])
];
// eslint.config.js
import config from "@grby/eslint-config";
import { withVitest } from "@grby/eslint-config/vitest";
export default [
...config,
withVitest
];
// eslint.config.js
import config from "@grby/eslint-config";
import { withReact } from "@grby/eslint-config/react";
export default [
...config,
...withReact
];