0.0.2 • Published 8 months ago
@yurychang/eslint-config v0.0.2
Shared ESLint configuration for React projects
Shared ESLint configuration changes some of the default behavior.
Usage
- 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
- 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
).
- 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"],
};