UNPKG

eslint-config-ao

Version:

AO ESLint config

18 lines (16 loc) 993 B
const { ERROR, WARN } = require('./eslint-consts'); module.exports = { rules: { //Variables 'no-catch-shadow': ERROR, //disallow the catch clause parameter name being the same as a variable in the outer scope 'no-delete-var': ERROR, //disallow deletion of variables 'no-label-var': ERROR, //disallow labels that share a name with a variable 'no-shadow': ERROR, //disallow declaration of variables already declared in the outer scope 'no-shadow-restricted-names': ERROR, //disallow shadowing of names such as arguments 'no-undef': ERROR, //disallow use of undeclared variables unless mentioned in a /*global */ block 'no-undef-init': ERROR, //disallow use of undefined when initializing variables 'no-undefined': ERROR, //disallow use of undefined variable 'no-unused-vars': [WARN, { vars: 'local', args: 'none' }], //disallow declaration of variables that are not used in the code 'no-use-before-define': ERROR //disallow use of variables before they are defined } };