This package is a batteries-included JS configuration for ESLint and Prettier.
config-js
depends on ESLint and Prettier and their configuration-specific
dependencies so you only have to install this package and by the magic of
flat-dependencies, they are available for use in your project.
npm install --save-dev @steelbrain/config-js
# OR
yarn add --dev @steelbrain/config-js
For ESLint, create a configuration file .eslintrc.json
and paste the following in it
{
"extends": "@steelbrain/config-js/eslint"
}
For Prettier, add the following to .prettierrc.js
in your package root
module.exports = require('@steelbrain/config-js/prettier')
and that's it. Enjoy!
This package has the necessary plugins, including to the ESLint and Prettier CLIs themselves.
So you should remove/not install them in your project, the flat dependency installation
will make sure the ESLint CLI from this package is accessible to npm run
etc.
This project is licensed under the terms of MIT License. See the LICENSE file for more info.