1 | module.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 labels that share a name with a variable
|
10 | 'no-label-var': 0,
|
11 | // disallow shadowing of names such as arguments
|
12 | 'no-shadow-restricted-names': 2,
|
13 | // disallow declaration of variables already declared in the outer scope
|
14 | 'no-shadow': 2,
|
15 | // disallow use of undefined when initializing variables
|
16 | 'no-undef-init': 0,
|
17 | // disallow use of undeclared variables unless mentioned in a /*global */ block
|
18 | 'no-undef': 2,
|
19 | // disallow use of undefined variable
|
20 | 'no-undefined': 0,
|
21 | // disallow declaration of variables that are not used in the code
|
22 | 'no-unused-vars': [2, {'vars': 'local', 'args': 'after-used'}],
|
23 | // disallow use of variables before they are defined
|
24 | 'no-use-before-define': 2
|
25 | }
|
26 | };
|