-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (38 loc) · 1.01 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
'use strict';
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'eslint:all',
'plugin:node/recommended',
'prettier',
'plugin:security/recommended',
'plugin:unicorn/recommended',
],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'script',
},
plugins: ['node', 'security', 'unicorn'],
root: true,
rules: {
'capitalized-comments': 'off',
eqeqeq: ['error', 'smart'],
'line-comment-position': 'off',
'linebreak-style': 'off',
'max-statements': ['error', {max: 15}],
'multiline-comment-style': 'off',
'no-inline-comments': 'off',
'no-magic-numbers': 'off',
'no-ternary': 'off',
'no-undefined': 'off',
'no-warning-comments': 'off',
'one-var': 'off',
// We can disable the following rule as the use of schemas
// protects us from unexpected values.
'security/detect-object-injection': 'off',
'sort-keys': ['error', 'asc', {caseSensitive: false, natural: true}],
},
};