This repository contains Eslint configuration packages for different project types. Please note that these configurations are primarily designed for TypeScript projects.
To apply these rules to a Node.js project, follow these steps:
-
Install the Eslint configuration package using npm, yarn, or pnpm:
- NPM:
npm install -D @felipstein/eslint-config-node
- Yarn:
yarn add -D @felipstein/eslint-config-node
- PNPM:
pnpm install -D @felipstein/eslint-config-node
- NPM:
-
Add the Eslint configuration to your eslint config file:
{ // ... "extends": ["@felipstein/eslint-config-node"], // ... }
To apply the rules to a react project, follow the steps:
-
Install the Eslint configuration package using npm, yarn, or pnpm:
- NPM:
npm install -D @felipstein/eslint-config-react
- Yarn:
yarn add -D @felipstein/eslint-config-react
- PNPM:
pnpm install -D @felipstein/eslint-config-react
- NPM:
-
Add the Eslint configuration to your eslint config file:
{ // ... "extends": ["@felipstein/eslint-config-react"], // ... }
And everything should be working!