0.0.2 • Published 8 months ago

@yurychang/eslint-config v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Shared ESLint configuration for React projects

Shared ESLint configuration changes some of the default behavior.

Usage

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

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

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

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

#with pnpm
$ pnpm dlx install-peerdeps --dev @yurychang/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: ["@yurychang/eslint-config-react"],
};
0.0.2

8 months ago

0.0.1

8 months ago