@pagopa/eslint-config

4.0.1 • Public • Published

@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"
      }
    }

Readme

Keywords

none

Package Sidebar

Install

npm i @pagopa/eslint-config

Weekly Downloads

2,449

Version

4.0.1

License

none

Unpacked Size

3.03 kB

Total Files

3

Last publish

Collaborators

  • pp-ps
  • pasqualedevita
  • gunzip
  • balanza
  • pagopa-bot