@pagopa/eslint-config
v4.0.1
Published
This package provides PagoPA's `eslint.config.js` as an extensible shared config.
Downloads
47,879
Keywords
Readme
@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" } }