4.0.1 • Published 1 year ago

@pagopa/eslint-config v4.0.1

Weekly downloads
224
License
-
Repository
-
Last release
1 year ago

@pagopa/eslint-config

This package provides PagoPA's eslint.config.js as an extensible shared config.

Usage

  1. Install eslint and @pagopa/eslint-config

    yarn add -D eslint @pagopa/eslint-config
  2. Create a file names eslint.config.js at the root of your workspace with the following content

    !TIP
    If your workspace uses CommonJS, name this file eslint.config.mjs

    import pagopa from "@pagopa/eslint-config";
    
    export default [...pagopa];
  3. Add lint and lint:check scripts in your package.json

    {
      "scripts": {
        "lint": "eslint --fix src",
        "lint:check": "eslint src"
      }
    }