forked from node-opcua/node-opcua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
32 lines (31 loc) · 1.22 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"env": {
"node": true,
"mocha": true
},
"rules": {
"strict": 0, // controls location of Use Strict Directives
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
"no-irregular-whitespace": 0, // disallow irregular whitespace outside of strings and comments
"no-multi-spaces": 0, // disallow use of multiple spaces
"key-spacing": 0, // enforces spacing between keys and values in object literal proper
"comma-spacing": 0, // enforce spacing before and after comma
"no-trailing-spaces": 0, // disallow trailing whitespace at the end of lines
"no-unused-vars": 0, // disallow declaration of variables that are not used in the code
// styling issues
"camelcase": 0,
"complexity": [2, 20 ],
"max-depth": [2, 5], // Maximum of 2 deep.
"max-params": [1, 7],
"max-statements": [1, 40],
// to fix
"no-use-before-define": 0, // disallow use of variables before they are defined
"quotes": 0, // specify whether double or single quotes should be used
"no-lone-blocks": 0,
"no-shadow": 0,
"comma-dangle": 0,
"dot-notation": 0
},
"plugins": [
]
}