This package provides unu's .eslintrc as an extensible shared config. And optional rulesets for different type of projects.
This package should be included in package.json
dependencies (devDependencies preferably). So first install it with npm install --save-dev eslint-config-unu
.
For using sharable configurations in your projects, please follow instructions in eslint's webpage: https://eslint.org/docs/developer-guide/shareable-configs
Create a .eslintrc.js
file with content:
module.exports = {
extends: 'unu'
}
Will allow you to use shared configuration right away.
Or if you need to include different rulesets and custom globals, you can extend your configuration with any setting you like.
module.exports = {
extends: [
'unu',
'unu/rules/closure-compiler'
],
globals: {
'analytics': false
}
}