UNPKG

4.79 kBPlain TextView Raw
1{
2 "parserOptions": {"ecmaVersion": 2018, "sourceType": "module"},
3 "env": {"node": true},
4 "plugins": ["prettier"],
5 "rules": {
6 "prettier/prettier": "error",
7 "accessor-pairs": "error",
8 "array-callback-return": "error",
9 "block-scoped-var": "error",
10 "constructor-super": "error",
11 "default-case": "error",
12 "dot-notation": "error",
13 "for-direction": "error",
14 "func-name-matching": "error",
15 "getter-return": "error",
16 "guard-for-in": "warn",
17 "handle-callback-err": "warn",
18 "linebreak-style": ["error", "unix"],
19 "max-depth": "warn",
20 "max-nested-callbacks": ["warn", 4],
21 "max-params": ["warn", {"max": 4}],
22 "max-statements-per-line": "error",
23 "no-alert": "error",
24 "no-array-constructor": "error",
25 "no-await-in-loop": "warn",
26 "no-caller": "error",
27 "no-case-declarations": "error",
28 "no-class-assign": "error",
29 "no-compare-neg-zero": "error",
30 "no-cond-assign": "error",
31 "no-console": "error",
32 "no-const-assign": "error",
33 "no-constant-condition": "error",
34 "no-control-regex": "error",
35 "no-debugger": "error",
36 "no-delete-var": "error",
37 "no-div-regex": "error",
38 "no-dupe-args": "error",
39 "no-dupe-class-members": "error",
40 "no-dupe-keys": "error",
41 "no-duplicate-case": "error",
42 "no-else-return": "off",
43 "no-empty": ["error", {"allowEmptyCatch": true}],
44 "no-empty-character-class": "error",
45 "no-empty-pattern": "error",
46 "no-eq-null": "error",
47 "no-eval": "error",
48 "no-ex-assign": "error",
49 "no-extend-native": "error",
50 "no-extra-bind": "error",
51 "no-extra-boolean-cast": "error",
52 "no-extra-label": "error",
53 "no-fallthrough": "error",
54 "no-func-assign": "error",
55 "no-global-assign": "error",
56 "no-implicit-coercion": "error",
57 "no-implicit-globals": "error",
58 "no-implied-eval": "error",
59 "no-inner-declarations": "error",
60 "no-invalid-regexp": "error",
61 "no-irregular-whitespace": "error",
62 "no-iterator": "error",
63 "no-label-var": "error",
64 "no-labels": "error",
65 "no-lone-blocks": "error",
66 "no-lonely-if": "error",
67 "no-loop-func": "error",
68 "no-mixed-operators": "error",
69 "no-mixed-requires": ["error", {"grouping": true, "allowCall": true}],
70 "no-multi-assign": "error",
71 "no-multi-str": "error",
72 "no-negated-condition": "error",
73 "no-new": "error",
74 "no-new-func": "error",
75 "no-new-object": "error",
76 "no-new-require": "error",
77 "no-new-symbol": "error",
78 "no-new-wrappers": "error",
79 "no-obj-calls": "error",
80 "no-octal": "error",
81 "no-octal-escape": "error",
82 "no-path-concat": "error",
83 "no-proto": "error",
84 "no-prototype-builtins": "error",
85 "no-redeclare": "error",
86 "no-restricted-globals": ["error", "event"],
87 "no-restricted-syntax": ["error", "WithStatement"],
88 "no-return-assign": "off",
89 "no-return-await": "error",
90 "no-script-url": "error",
91 "no-self-assign": ["error", {"props": true}],
92 "no-self-compare": "error",
93 "no-sequences": "error",
94 "no-shadow-restricted-names": "error",
95 "no-sparse-arrays": "error",
96 "no-template-curly-in-string": "error",
97 "no-this-before-super": "error",
98 "no-throw-literal": "error",
99 "no-undef": ["error", {"typeof": true}],
100 "no-undef-init": "error",
101 "no-unmodified-loop-condition": "error",
102 "no-unneeded-ternary": "error",
103 "no-unreachable": "error",
104 "no-unsafe-finally": "error",
105 "no-unsafe-negation": "error",
106 "no-unused-expressions": "error",
107 "no-unused-labels": "error",
108 "no-unused-vars": ["error", {"ignoreRestSiblings": true}],
109 "no-use-before-define": ["error", "nofunc"],
110 "no-useless-call": "error",
111 "no-useless-computed-key": "error",
112 "no-useless-concat": "error",
113 "no-useless-constructor": "error",
114 "no-useless-escape": "error",
115 "no-useless-rename": "error",
116 "no-useless-return": "error",
117 "no-var": "error",
118 "no-void": "error",
119 "no-warning-comments": "warn",
120 "no-with": "error",
121 "object-shorthand": ["error", "always"],
122 "one-var": ["error", {"initialized": "never", "uninitialized": "always"}],
123 "operator-assignment": ["error", "always"],
124 "prefer-arrow-callback": "error",
125 "prefer-const": ["error", {"destructuring": "all"}],
126 "prefer-numeric-literals": "error",
127 "prefer-promise-reject-errors": "error",
128 "require-yield": "error",
129 "symbol-description": "error",
130 "use-isnan": "error",
131 "valid-typeof": ["error", {"requireStringLiterals": true}],
132 "camelcase": ["error", {"properties": "always"}],
133 "complexity": ["warn", 10],
134 "eqeqeq": "error",
135 "radix": "error",
136 "yoda": "error"
137 },
138 "overrides": [{"files": ["*.test.js"], "rules": {"no-unused-expressions": "off"}}]
139}