forked from serialport/node-serialport
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
61 lines (61 loc) · 1.46 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:mocha/recommended"
],
"plugins": [
"prettier",
"node",
"mocha"
],
"env": {
"node": true,
"mocha": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"assert": false,
"makeTestFeature": false,
"shouldReject": false
},
"rules": {
"no-extra-semi": "off",
"no-process-exit": "off",
"no-unused-vars": [ "error", { "vars": "all", "args": "after-used" }],
"no-var": "error",
"node/no-extraneous-require": "off",
"node/no-unpublished-require": "off",
"node/no-unsupported-features/es-builtins": "error",
"node/no-unsupported-features/es-syntax": "error",
"node/no-unsupported-features/node-builtins": "error",
"node/shebang": "off",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5",
"semi": false,
"printWidth": 150,
"arrowParens": "avoid"
}
],
"mocha/no-exclusive-tests": "error",
"mocha/no-hooks-for-single-case": "off",
"mocha/no-mocha-arrows": "off",
"mocha/no-pending-tests": "error",
"mocha/no-setup-in-describe": "off",
"strict": [ "error", "never" ],
"valid-jsdoc": "off"
}
}