@doppelmutzi/eslint-config-react

1.0.10 • Public • Published

Shared ESLint configuration for React projects

This ESLint configuration deactivates all formatting rules of ESLint and makes sure that Prettier is used for code beautifying. If you want to find out more about this approach, feel free to read my articles on this topic:

Integrate into new project

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

# with npm
$ npm i -D @doppelmutzi/eslint-config-react

# with pnpm
$ pnpm add -D @doppelmutzi/eslint-config-react
  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 @doppelmutzi/eslint-config-react

# with npm
$ npx install-peerdeps --dev @doppelmutzi/eslint-config-react

#with pnpm
$ pnpm dlx install-peerdeps --dev @doppelmutzi/eslint-config-react

Instead, you can do this manually my 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: ["@doppelmutzi/eslint-config-react"],
};

Readme

Keywords

none

Package Sidebar

Install

npm i @doppelmutzi/eslint-config-react

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

4.21 kB

Total Files

3

Last publish

Collaborators

  • doppelmutzi