forked from node-opcua/node-opcua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (56 loc) · 2 KB
/
.eslintrc.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 2017,
sourceType: "module"
},
globals : {
"Float32Array": true,
"Float64Array": true,
"Int8Array": true,
"Int16Array": true,
"Int32Array": true,
"Int64Array": true,
"Uint8Array": true,
"Uint16Array": true,
"Uint32Array": true,
"Uint64Array": true,
"__dirname": false,
"ArrayBuffer": true,
"Proxy": true,
"WeakMap": true
},
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": 2, // 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,
"no-console": 0,
"no-var": 2,
"no-empty":1,
"no-unreachable": 1,
"no-constant-condition":1
},
"plugins": []
};