This package provides PagoPA's eslint.config.js
as an extensible shared config.
-
Install
eslint
and@pagopa/eslint-config
yarn add -D eslint @pagopa/eslint-config
-
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 fileeslint.config.mjs
import pagopa from "@pagopa/eslint-config"; export default [...pagopa];
-
Add
lint
andlint:check
scripts in yourpackage.json
{ "scripts": { "lint": "eslint --fix src", "lint:check": "eslint src" } }