1.0.1 • Published 1 year ago

@codecraftbr/eslint-config v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Integrate into new project

  1. Install this package as devDependency
# with Yarn
$ yarn add -D @codecraftbr/eslint-config

# with npm
$ npm i -D @codecraftbr/eslint-config
  1. 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).

  1. 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"],
};
1.0.1

1 year ago

1.0.0

1 year ago