1.0.0 • Published 2 years ago

@secondcloset/eslint-config-nestjs v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Secondcloset eslint-config-nestjs

Installation

Run the following command:

  npm i --save-dev @secondcloset/eslint-config-nestjs

How to use

  1. In your react project, create an .eslintrc.js file and add these changes:

    module.exports = {
      extends: ["@secondcloset/nestjs"]
    };
  2. Add these scripts in your repo's package.json scripts attribute:

      "lint": "eslint src --ext .js,.ts",
      "lint:fix": "eslint src --ext .js,.ts --fix",
  3. Install the newly added packages:

      npm install
  4. Add the prettier config to your package.json file:

      "prettier": "@secondcloset/prettier-config"
  5. Test the configuration:

      npm run lint