4.0.1 • Published 1 year ago
@pagopa/eslint-config v4.0.1
@pagopa/eslint-config
This package provides PagoPA's eslint.config.js
as an extensible shared config.
Usage
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" } }