Preset eslint configs for node.js/javascript/react/typescript project.
-
npm
npm install --save-dev @guanghechen/eslint-config
-
yarn
yarn add --dev @guanghechen/eslint-config
-
For javascript project.
// eslint.config.js import configs from '@guanghechen/eslint-config/js' export default [...configs]
-
For typescript project.
// eslint.config.js import configs from '@guanghechen/eslint-config/ts' export default [...configs]