1.0.1 • Published 1 year ago
@codecraftbr/eslint-config v1.0.1
Integrate into new project
- Install this package as devDependency
# with Yarn
$ yarn add -D @codecraftbr/eslint-config
# with npm
$ npm i -D @codecraftbr/eslint-config
- Install peer dependencies of this package in your project as devDependencies
Therefore, you can make use of the tool install-peerdeps:
# with Yarn
$ yarn dlx install-peerdeps --dev @codecraftbr/eslint-config
# with npm
$ npx install-peerdeps --dev @codecraftbr/eslint-config
Instead, you can do this manually by adding all entries part of the peerDependencies
property (see package.json
).
- Use ESLint config in your project
Create a .eslintrc.js
file in project root with the following content:
module.exports = {
extends: ["@codecraftbr/eslint-config"],
};
If you want to use the next variant use:
module.exports = {
extends: ["@codecraftbr/eslint-next-config"],
};