ESLint

Table of Contents

Reference

.eslintrc.js

You can also use eslintConfig field in package.json

.eslintignore

/build/
/config/
/dist/
/*.js
/test/unit/coverage/

Rules

0 or off
turn the rule off
1 or warn
turn the rule on as a warning (doesn’t affect exit code)
2 or error
turn the rule on as an error (exit code is 1 when triggered)

Topics

Disable no-unused-vars on arguments

// Disable arguments unused check.
// Cases like implementing callbacks, arguments might not be needed.
// It is just valid to omit those arguments,
// But, for readability, it is more important to explicitly specify args.
'no-unused-vars': ['error', { 'args': 'none' }],

Links