UNPKG

1.31 kBJavaScriptView Raw
1module.exports = {
2 'rules': {
3 // enforce or disallow variable initializations at definition
4 'init-declarations': 0,
5 // disallow the catch clause parameter name being the same as a variable in the outer scope
6 'no-catch-shadow': 0,
7 // disallow deletion of variables
8 'no-delete-var': 2,
9 // disallow var and named functions in global scope
10 // http://eslint.org/docs/rules/no-implicit-globals
11 'no-implicit-globals': 0,
12 // disallow labels that share a name with a variable
13 'no-label-var': 0,
14 // disallow self assignment
15 // http://eslint.org/docs/rules/no-self-assign
16 'no-self-assign': 2,
17 // disallow shadowing of names such as arguments
18 'no-shadow-restricted-names': 2,
19 // disallow declaration of variables already declared in the outer scope
20 'no-shadow': 2,
21 // disallow use of undefined when initializing variables
22 'no-undef-init': 0,
23 // disallow use of undeclared variables unless mentioned in a /*global */ block
24 'no-undef': 2,
25 // disallow use of undefined variable
26 'no-undefined': 0,
27 // disallow declaration of variables that are not used in the code
28 'no-unused-vars': [2, { 'vars': 'local', 'args': 'after-used' }],
29 // disallow use of variables before they are defined
30 'no-use-before-define': 2
31 }
32};