eslint-config-resultsdm
Version:
Results Driven Marketing's ESLint config, following our styleguide
27 lines (26 loc) • 1.06 kB
JavaScript
module.exports = {
rules: {
// Enforce or disallow variable initializations at definition
'init-declarations': 0,
// Disallow the catch clause parameter name being the same as a variable in the outer scope
'no-catch-shadow': 0,
// Disallow deletion of variables
'no-delete-var': 2,
// Disallow labels that share a name with a variable
'no-label-var': 0,
// Disallow shadowing of names such as arguments
'no-shadow-restricted-names': 2,
// Disallow declaration of variables already declared in the outer scope
'no-shadow': 2,
// Disallow use of undefined when initializing variables
'no-undef-init': 0,
// Disallow use of undeclared variables unless mentioned in a /*global */ block
'no-undef': 2,
// Disallow use of undefined variable
'no-undefined': 0,
// Disallow declaration of variables that are not used in the code
'no-unused-vars': [2, { vars: 'local', args: 'after-used' }],
// Disallow use of variables before they are defined
'no-use-before-define': 2,
},
};