-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
36 lines (32 loc) · 971 Bytes
/
index.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
module.exports = {
extends: ['eslint:recommended', 'plugin:security/recommended', 'standard'],
plugins: ['security'],
rules: {
indent: ['error', 2],
'space-before-function-paren': [2, { anonymous: 'never', named: 'never' }],
// Prefer destructuring from arrays and objects
// https://eslint.org/docs/rules/prefer-destructuring
'prefer-destructuring': [
'error',
{
VariableDeclarator: {
array: false,
object: true
},
AssignmentExpression: {
array: true,
object: true
}
},
{
enforceForRenamedProperties: false
}
],
// Enforce consistent spacing inside braces
// https://eslint.org/docs/rules/object-curly-spacing
'object-curly-spacing': ['error', 'always'],
// Disable detect-object-injection
// https://github.com/nodesecurity/eslint-plugin-security/issues/21
'security/detect-object-injection': 0
}
}