3.0.5 • Published 5 months ago

@nish1896/eslint-config v3.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@nish1896/eslint-config

NPM Version NPM Downloads NPM Downloads Per Month node-current GitHub Release Date - Published_At

A set of developer-friendly eslint, stylistic, typescript and accessibility configuration rules to help you and fellow developers follow the industry-recommended coding practices for easier readability, maintenance and productivity !

This package is compatible with eslint 8.57.1 or below. For usage with eslint 9.0.0 or above check @nish1896/eslint-flat-config.

⚠️ Deprecated ESLint Version Detected

You're currently using ESLint v8, which is deprecated. It is recommended to upgrade to ESLint v9 and @nish1896/eslint-flat-config for continued support and improvements.

👉 Follow the migration guide for a smooth and minimal-change upgrade process.

Quick Setup

Copy the code snippet most relevant to your application and paste it in the .eslintrc, .eslintrc.js or .eslintrc.json file in your project root.

Node.js

Use the ts module only if your code is written in Typescript.

module.exports = {
  extends: [
    "@nish1896/eslint-config/js",
    "@nish1896/eslint-config/ts"
  ]
}

React.js & Vite

Use the ts module only if your code is written in Typescript.

module.exports = {
  extends: [
    "@nish1896/eslint-config/js",
    "@nish1896/eslint-config/ts",
    "@nish1896/eslint-config/jsx"
  ]
}

Next.js

Update the existing .eslintrc.json file provided by Next.js app. Include the next/typescript and next-ts modules only if your code is written in Typescript.

module.exports = {
  extends: [
    "next/core-web-vitals",
    "next/typescript",
    "@nish1896/eslint-config/js",
    "@nish1896/eslint-config/next-ts",
    "@nish1896/eslint-config/next"
  ]
}

For comprehensive details on installation, setup, rules, and usage, please refer the Documentation 📖.

If you are a React developer, I highly recommend checking out my package, @nish1896/rhf-mui-components.