1 | {
|
2 | "parser": "babel-eslint",
|
3 | "extends": [
|
4 | "eslint:recommended"
|
5 | ],
|
6 | "parserOptions": {
|
7 | "ecmaVersion": 2017,
|
8 | "sourceType": "module",
|
9 | "ecmaFeatures": {
|
10 | "forOf": true,
|
11 | "spread": true,
|
12 | "classes": true,
|
13 | "generators": true,
|
14 | "destructuring": true,
|
15 | "defaultParams": true,
|
16 | "arrowFunctions": true,
|
17 | "templateStrings": true,
|
18 | "experimentalObjectRestSpread": true
|
19 | }
|
20 | },
|
21 | "plugins": [
|
22 | "babel"
|
23 | ],
|
24 | "env": {
|
25 | "node": true,
|
26 | "es6": true,
|
27 | "browser": true
|
28 | },
|
29 | "globals": {
|
30 | "document": false
|
31 | },
|
32 | "rules": {
|
33 | "strict": 2,
|
34 | "arrow-spacing": "warn",
|
35 | "arrow-body-style": "off",
|
36 | "new-cap": 1,
|
37 | "semi": [
|
38 | 1,
|
39 | "never"
|
40 | ],
|
41 | "space-before-function-paren": 0,
|
42 | "eqeqeq": "warn",
|
43 | "block-scoped-var": "warn",
|
44 | "no-return-await": "warn",
|
45 | "no-unused-expressions": "warn",
|
46 | "no-unused-vars": "warn",
|
47 | "no-console": "error",
|
48 | "no-extra-boolean-cast": "warn",
|
49 | "no-dupe-keys": "error",
|
50 | "no-dupe-args": "error",
|
51 | "no-extra-bind": "error",
|
52 | "no-extra-semi": "error",
|
53 | "no-unreachable": "error",
|
54 | "no-duplicate-case": "error",
|
55 | "no-invalid-regexp": "error",
|
56 | "no-case-declarations": "off",
|
57 | "prefer-template": "warn"
|
58 | }
|
59 | }
|