@seokminhong/configs
v1.0.3
Published
## How to use
Downloads
15
Maintainers
Readme
Configs
How to use
1. Install the package
npm install -D @seokminhong/configs eslint@^8.57.0
npm install -D prettier # If needed
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