1.0.0 • Published 3 years ago

@piktew/eslint-config-node v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

TMoweS ESLint config

npm version ESLint configuration used by Piktew.

Whats included?

  • Airbnb config base
  • SonarJS plugin
  • Prettier

⚙️ Setup

Install the dependencies

npm i -D eslint @piktew/eslint-config-node
# Or Yarn
yarn add -D eslint @piktew/eslint-config-node

Create a .eslintrc file extending the config:

{
  "extends": "@piktew/eslint-config-node"
}

You can also use a .eslintrc.js instead of JSON if you prefer.

📖 Usage

Add lint script to package.json file:

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