Shareable ESLint configuration for Pangolin.js based on eslint-config-standard.
Install the configuration and all peer dependencies with one command:
npm install --save-dev @pangolinjs/eslint-config eslint eslint-config-standard
Create an ESLint configuration either as a JSON or a JavaScript file:
{
"extends": [
"@pangolinjs/eslint-config"
]
}
module.exports = {
extends: [
'@pangolinjs/eslint-config',
],
}
Overwrite rules from the default config:
{
"extends": [
"@pangolinjs/eslint-config"
],
"rules": {
"no-warning-comments": "error"
}
}
module.exports = {
extends: [
'@pangolinjs/eslint-config',
],
rules: {
'no-warning-comments': 'error',
},
}
ESLint has an extensive list of rules. Additional rules are provided by the following plugins: