@kevinbai/lint-rules

1.0.2 • Public • Published

Custom ESLint rules

Rules are based on @rushstack/eslint-config

Installation

npm i -D @kevinbai/lint-rules

Add .eslintrc

Choose the appropriate profile depending on the project

// .eslintrc
{
  "extends": "./node_modules/@kevinbai/lint-rules/onde/.eslintrc.js"
}

Add .prettierrc

//.prettierrc
"@kevinbai/lint-rules/.prettierrc.json"

Add .eslintignore

node_modules
...any other files

Add lint script to package.json

{
  "scripts": {
    "lint": "eslint . --fix"
  }
}
// or eslint src --fix

Profiles

  • Node: @kevinbai/lint-rules/node/.eslintrc.js
  • React: @kevinbai/lint-rules/react/.eslintrc.js

Readme

Keywords

none

Package Sidebar

Install

npm i @kevinbai/lint-rules

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.91 kB

Total Files

6

Last publish

Collaborators

  • kevinbai0