@pixelmatters/eslint-config-react
v1.0.1
Published
Eslint config for usage in Pixelmatters projects that use React
Downloads
1
Readme
🚀 Get Up and Running
You can install this package using the package manger of your choice.
This package requires you to add some missing peer dependencies:
Add the new dependencies
If you are using pnpm:
pnpm install -D @pixelmatters/eslint-config-react @typescript-eslint/eslint-plugin eslint-plugin-prettier typescript eslint prettierIf you are using yarn:
yarn add -D @pixelmatters/eslint-config-react @typescript-eslint/eslint-plugin eslint-plugin-prettier typescript eslint prettierIf you are using npm:
npm install --save-dev @pixelmatters/eslint-config-react @typescript-eslint/eslint-plugin eslint-plugin-prettier typescript eslint prettierTell ESLint to use this config
Create an .eslintrc.js file in the root of your project and add the following code:
module.exports = {
extends: ['@pixelmatters/eslint-config-react'],
};At this point you should be good to go 👍
🤝 How to Contribute
Whether you're helping us fix bugs, improve the docs, or spread the word, thank you! 💪 🧡
Check out our Contributing Guide for ideas on contributing and setup steps.
:memo: License
Licensed under the MIT License.
