@seokminhong/configs
v2.1.0
Published
All-in-one ESLint, TypeScript, and Prettier configurations
Downloads
203
Maintainers
Readme
Configs
How to use
1. Install the package
pnpm add -D @seokminhong/configs eslint prettier typescript
2. Set the configs
ESLint
// eslint.config.js
import config from '@seokminhong/configs/eslint';
export default config();
ESLint (React)
// eslint.config.js
import config from '@seokminhong/configs/eslint';
import react from '@seokminhong/configs/eslint/react';
export default config({
envs: ['browser', 'node'],
extensions: [react()],
});
Prettier
// .prettierrc
"@seokminhong/configs/prettier"
TSConfig
{
"extends": "@seokminhong/config/tsconfig/node",
}
TODO
- [ ] Provides Node.js ESLint rules
- [ ] Provides testing ESLint rules
- [ ] Supports Deno