This package provides linting rules for JavaScript projects.
npm install --save-dev @zestia/eslint-config
Add the following to ~/.npmrc
to pull @zestia scoped packages from Github instead of NPM.
@zestia:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<YOUR_GH_TOKEN>
-
Create the following file
eslint.config.mjs
import js from '@eslint/js'; import zestia from '@zestia/eslint-config'; export default [js.configs.recommended, zestia];
-
Add the following to
scripts
inpackage.json
"lint:js": "eslint ."
npm run lint:js