Felipstein / lint

My main rules used in my projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lint

This repository contains Eslint configuration packages for different project types. Please note that these configurations are primarily designed for TypeScript projects.

Node Project

To apply these rules to a Node.js project, follow these steps:

  1. 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
  2. Add the Eslint configuration to your eslint config file:

    {
      // ...
      "extends": ["@felipstein/eslint-config-node"],
      // ...
    }
    

React Project

To apply the rules to a react project, follow the steps:

  1. 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
  2. Add the Eslint configuration to your eslint config file:

    {
      // ...
      "extends": ["@felipstein/eslint-config-react"],
      // ...
    }
    

And everything should be working!

About

My main rules used in my projects


Languages

Language:JavaScript 100.0%