.eslintrc.json 657 Bytes
Newer Older
1
{
2
  "root": true,
3
4
5
6
  "extends": [
    "eslint:recommended",
    "strongloop"
  ],
7
8
9
10
11
  "env": {
    "node": true,
    "es2017": true,
    "browser": false
  },
12
  "parser": "@babel/eslint-parser",
13
14
15
16
  "ignorePatterns": [
    "test/*.js",
    "**/vendor/*.js"
  ],
17
18
19
  "parserOptions": {
    "requireConfigFile": false
  },
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  "rules": {
    "max-len": [2, 140, 2],
    "eqeqeq": 2,
    "complexity": [
      "error"
    ],
    "default-param-last": [
      "error"
    ],
    "no-magic-numbers": [
      "error",
      {
        "ignore": [-1, 0, 1],
        "ignoreArrayIndexes": true
      }
    ],
    "arrow-parens": [
      "error",
      "as-needed"
    ]
  }
}