This package provides Inveniem's ESLint configuration as an extensible shared configuration.
- Install this package
- If using Yarn, run
yarn add --dev @inveniem/eslint-config
- If using npm, run
npm install --save-dev @inveniem/eslint-config
- If using Yarn, run
- Run
npx install-peerdeps --dev @inveniem/eslint-config
- Create an .eslintrc.js file with the following contents:
module.exports = {
extends: '@inveniem/eslint-config',
};
To run ESLint with this configuration, consider adding a lint:js:eslint
script
to the scripts
section of package.json with the following value:
eslint --no-error-on-unmatched-pattern --report-unused-disable-directives --max-warnings=0 --ext .js --ext .ts --ext .jsx --ext .tsx .
Then, run yarn lint:js:eslint
(if using Yarn) or npm run lint:js:eslint
(if
using npm) to run it.