A few reusable ESLint configurations.
pnpm add -D eslint eslint-plugin-import-x tslib eslint-plugin-perfectionist eslint-config-prettier @gcoguiec/eslint-config
Register the configuration with eslint
// eslint.config.js
import { ecmascript } from '@gcoguiec/eslint-config';
export default [...(await ecmascript())];
pnpm add -D eslint eslint-plugin-import-x tslib eslint-plugin-perfectionist eslint-config-prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser @gcoguiec/eslint-config
Register the configuration with eslint
// eslint.config.js
import { typescript } from '@gcoguiec/eslint-config';
export default [...(await typescript())];
pnpm add -D eslint eslint-plugin-import-x tslib eslint-plugin-perfectionist eslint-config-prettier eslint-plugin-vue @gcoguiec/eslint-config
pnpm add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser
Register the configuration with eslint
// eslint.config.js
import { vue } from '@gcoguiec/eslint-config';
// ECMAScript
export default [...(await vue())];
// TypeScript
export default [...(await vue({ typescript: true }))];
pnpm add -D eslint-plugin-vitest
Register the configuration with eslint
// eslint.config.js
import { ecmascript, typescript, vitest } from '@gcoguiec/eslint-config';
// ECMAScript
export default [
...(await ecmascript()),
...(await vitest())
];
// TypeScript
export default [
...(await typescript()),
...(await vitest({ typescript: true }))
];
This project is licensed under BSD 2-Clause.