@seokminhong/configs

1.0.3 • Public • Published

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

References

Package Sidebar

Install

npm i @seokminhong/configs

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

27.1 kB

Total Files

17

Last publish

Collaborators

  • seokminhong