A pretty standard ESLint configuration I use for my packages.
Install the NPM package and all its dependencies:
npm i -D eslint eslint-config-package
Add the configuration to your .eslintrc.js
file:
// .eslintrc.js
module.exports = {
extends: 'package'
}
Or to your .eslintrc
file:
// .eslintrc
{
"extends": "package"
}