1 | module.exports = {
|
2 | "env": {
|
3 | "browser": true,
|
4 | "commonjs": true,
|
5 | "es6": true,
|
6 | "node": true,
|
7 | "mocha": true
|
8 | },
|
9 | "extends": [
|
10 | "eslint:recommended",
|
11 | "plugin:flowtype/recommended"
|
12 | ],
|
13 | "parserOptions": {
|
14 | "ecmaFeatures": {
|
15 | "experimentalObjectRestSpread": true,
|
16 | "jsx": true
|
17 | }
|
18 | },
|
19 | "plugins": [
|
20 | "flowtype",
|
21 | "mocha"
|
22 | ],
|
23 | "rules": {
|
24 | "indent": ["warn", 2],
|
25 | "linebreak-style": ["error", "unix"],
|
26 | "semi": ["warn", "never"],
|
27 | "prefer-const": 1,
|
28 | "no-var": 1,
|
29 | "prefer-template": 1,
|
30 | "prefer-arrow-callback": 1,
|
31 | "no-multiple-empty-lines": 1,
|
32 | "new-parens": 1,
|
33 | "new-cap": 1,
|
34 | "no-sync": 1,
|
35 | "no-mixed-requires": 1,
|
36 | "handle-callback-err": 1,
|
37 | "global-require": 1,
|
38 | "callback-return": 1,
|
39 | "no-shadow": 1,
|
40 | "require-await": 1,
|
41 | "prefer-promise-reject-errors": 1,
|
42 | "no-useless-return": 1,
|
43 | "no-useless-escape": 1,
|
44 | "no-useless-concat": 1,
|
45 | "no-useless-call": 1,
|
46 | "no-throw-literal": 1,
|
47 | "no-multi-spaces": 1,
|
48 | "no-loop-func": 1,
|
49 | "no-alert": 1,
|
50 | "eqeqeq": 1,
|
51 | "consistent-return": 1,
|
52 | "array-callback-return": 1,
|
53 | "no-constant-condition": 1,
|
54 | "mocha/no-identical-title": 1,
|
55 | }
|
56 | };
|