1.1.1 • Published 1 year ago

eslint-config-react-anirudhab v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

eslint-config-react-anirudhab

A versatile and extensible ESLint configuration built on top of popular libraries, with added TypeScript support and custom rules. Enforces best practices and consistent code style to improve code quality and maintainability across projects.

Installation

Install the ESLint config and its peer dependencies

npx install-peerdeps --dev eslint-config-react-anirudhab

Usage

1. In .eslintrc.js, add extend the config

module.exports = {
  extends: ["eslint-config-react-anirudhab"],
};

2. Optional Update tsconfig.json

{
  "extends": "eslint-config-react-anirudhab/tsconfig.base"
}

3. Optional Update Prettier Config .prettierrc

{
  "semi": true,
  "singleQuote": true,
  "printWidth": 80,
  "tabWidth": 2,
  "useTabs": false,
  "bracketSpacing": false,
  "jsxBracketSameLine": true,
  "bracketSameLine": true
}

3. Add an ESLint script to your project's package.json file:

{
  "scripts": {
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
  }
}
1.1.1

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago