This is a ESLint config that you can use in your projects.
You can install this package using your favorite package manager. This configuration assumes that you have ESLint, Typescript and Prettier already installed; if not, install the following additional dependencies.
typescript eslint prettier
If you are using pnpm:
pnpm install -D @pixelmatters/eslint-config-pixelmatters @typescript-eslint/eslint-plugin eslint-plugin-prettier
If you are using yarn:
yarn add -D @pixelmatters/eslint-config-pixelmatters @typescript-eslint/eslint-plugin eslint-plugin-prettier
If you are using npm:
npm install --save-dev @pixelmatters/eslint-config-pixelmatters @typescript-eslint/eslint-plugin eslint-plugin-prettier
Create an .eslintrc.js
file in the root of your project and add the following code:
module.exports = {
extends: ['@pixelmatters/eslint-config-pixelmatters'],
};
At this point you should be good to go 👍
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.
Licensed under the MIT License.