minor refactoring in router, clarifying names and complicating parameter objects
[squeep-api-dingus] / .eslintrc.json
1 {
2 "env": {
3 "browser": false,
4 "es6": true,
5 "node": true
6 },
7 "extends": [
8 "eslint:recommended",
9 "plugin:node/recommended",
10 "plugin:security/recommended",
11 "plugin:sonarjs/recommended"
12 ],
13 "parserOptions": {
14 "ecmaVersion": 2018
15 },
16 "plugins": [
17 "node",
18 "security",
19 "sonarjs"
20 ],
21 "rules": {
22 "array-element-newline": [
23 "error",
24 "consistent"
25 ],
26 "arrow-parens": [
27 "error",
28 "always"
29 ],
30 "arrow-spacing": [
31 "error",
32 {
33 "after": true,
34 "before": true
35 }
36 ],
37 "block-scoped-var": "error",
38 "block-spacing": "error",
39 "brace-style": "error",
40 "callback-return": "error",
41 "camelcase": "error",
42 "capitalized-comments": "warn",
43 "class-methods-use-this": "error",
44 "comma-dangle": [
45 "error",
46 "always-multiline"
47 ],
48 "comma-spacing": [
49 "error",
50 {
51 "after": true,
52 "before": false
53 }
54 ],
55 "comma-style": [
56 "error",
57 "last"
58 ],
59 "indent": [
60 "warn",
61 2,
62 {
63 "SwitchCase": 1
64 }
65 ],
66 "sonarjs/cognitive-complexity": "warn",
67 "keyword-spacing": "error",
68 "linebreak-style": [
69 "error",
70 "unix"
71 ],
72 "no-unused-vars": [
73 "error", {
74 "varsIgnorePattern": "^_"
75 }
76 ],
77 "object-curly-spacing": [
78 "error",
79 "always"
80 ],
81 "prefer-const": "error",
82 "quotes": [
83 "error",
84 "single"
85 ],
86 "strict": "error",
87 "vars-on-top": "error"
88 }
89 }