-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yaml
89 lines (89 loc) · 2.85 KB
/
.eslintrc.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
root: true
plugins:
- filenames
- json
- lodash
- node
- security
- smells
- you-dont-need-lodash-underscore
extends:
- airbnb-base
- plugin:lodash/canonical
- plugin:node/recommended
- plugin:security/recommended
- plugin:you-dont-need-lodash-underscore/compatible
env:
node: true
browser: true
shared-node-browser: true
rules:
global-require: off
# Rules of plugin `filenames`.
filenames/match-regex: error
filenames/match-exported:
- error
- kebab
filenames/no-index: off
# Rules of plugin `lodash` ~> disable most of lodash preference over native rules.
lodash/prefer-constant: error
lodash/prefer-get: off
lodash/prefer-includes: off
lodash/prefer-is-nil: error
lodash/prefer-lodash-chain: off
lodash/prefer-lodash-method: off
lodash/prefer-lodash-typecheck: error
lodash/prefer-matches: off
lodash/prefer-noop: error
lodash/prefer-over-quantifier: off
lodash/prefer-some: off
lodash/prefer-startswith: off
lodash/prefer-times: off
# Rules of plugin `security`.
# See https://github.com/nodesecurity/eslint-plugin-security for rules description.
# Rules of plugin `smells`.
smells/no-switch: off
smells/no-complex-switch-case: error
smells/no-setinterval: error
smells/no-this-assign: error
smells/no-complex-string-concat: error
smells/no-complex-chaining: off
# https://eslint.org/docs/user-guide/configuring#configuration-based-on-glob-patterns
overrides:
- files:
- lib/manager.js
- test/helpers/fix.js
rules:
# Rules of plugin `smells` ~> Joi is meant to be chained!
smells/no-complex-chaining: off
- files:
- test/**/*.spec.js
rules:
# Rules of plugin `smells` ~> mocha is meant to be chained!
smells/no-complex-chaining: off
- files:
- test/**/*.js
rules:
# Rules of plugin `node` ~> no test file is meant to be published!
node/no-unpublished-require: off
# Rules of plugin `security`
security/detect-unsafe-regex: off
security/detect-buffer-noassert: off
security/detect-child-process: off
security/detect-disable-mustache-escape: off
security/detect-eval-with-expression: off
security/detect-no-csrf-before-method-override: off
security/detect-non-literal-fs-filename: off
security/detect-non-literal-regexp: off
security/detect-non-literal-require: off
security/detect-object-injection: off
securiyt/detect-possible-timing-attacks: off
security/detect-pseudoRandomBytes: off
- files:
- bin/*.js
- test/**/*.spec.js
rules:
# Rules of plugin `filenames` ~> tests/binaries export nothing!
filenames/match-regex: 0
filenames/match-exported: off