|
1 | 1 | {
|
2 |
| - "rules": { |
3 |
| - "no-shadow-restricted-names": [2], |
4 |
| - "computed-property-spacing": [2], |
5 |
| - "no-empty-character-class": [2], |
6 |
| - "no-irregular-whitespace": [2], |
7 |
| - "no-unexpected-multiline": [2], |
8 |
| - "no-multiple-empty-lines": [2], |
9 |
| - "keyword-spacing": [2], |
10 |
| - "no-constant-condition": [2], |
11 |
| - "no-extra-boolean-cast": [2], |
12 |
| - "no-inner-declarations": [2], |
13 |
| - "no-this-before-super": [2], |
14 |
| - "no-array-constructor": [2], |
15 |
| - "object-curly-spacing": [2, "always"], |
16 |
| - "no-floating-decimal": [2], |
17 |
| - "no-warning-comments": [2], |
18 |
| - "handle-callback-err": [2], |
19 |
| - "no-unneeded-ternary": [2], |
20 |
| - "operator-assignment": [2], |
21 |
| - "space-before-blocks": [2], |
22 |
| - "no-native-reassign": [2], |
23 |
| - "no-trailing-spaces": [2], |
24 |
| - "operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }], |
25 |
| - // "consistent-return": [2], |
26 |
| - "no-duplicate-case": [2], |
27 |
| - "no-invalid-regexp": [2], |
28 |
| - "no-negated-in-lhs": [2], |
29 |
| - "constructor-super": [2], |
30 |
| - "no-nested-ternary": [0], |
31 |
| - "no-extend-native": [2], |
32 |
| - "block-scoped-var": [2], |
33 |
| - "no-control-regex": [2], |
34 |
| - "no-sparse-arrays": [2], |
35 |
| - "no-throw-literal": [2], |
36 |
| - "no-return-assign": [2], |
37 |
| - "no-const-assign": [2], |
38 |
| - "no-class-assign": [2], |
39 |
| - "no-extra-parens": [2], |
40 |
| - "no-regex-spaces": [2], |
41 |
| - "no-implied-eval": [2], |
42 |
| - "no-useless-call": [2], |
43 |
| - "no-self-compare": [2], |
44 |
| - "no-octal-escape": [2], |
45 |
| - "no-new-wrappers": [2], |
46 |
| - "no-process-exit": [2], |
47 |
| - "no-catch-shadow": [2], |
48 |
| - "linebreak-style": [2], |
49 |
| - "space-infix-ops": [2], |
50 |
| - "space-unary-ops": [2], |
51 |
| - "no-func-assign": [2], |
52 |
| - "no-unreachable": [2], |
53 |
| - "accessor-pairs": [2], |
54 |
| - "no-labels": [2], |
55 |
| - "no-fallthrough": [2], |
56 |
| - "no-path-concat": [2], |
57 |
| - "no-new-require": [2], |
58 |
| - "no-spaced-func": [2], |
59 |
| - "no-unused-vars": [2], |
60 |
| - "spaced-comment": [2], |
61 |
| - "no-delete-var": [2], |
62 |
| - "comma-spacing": [2], |
63 |
| - "no-extra-semi": [2], |
64 |
| - "no-extra-bind": [2], |
65 |
| - "arrow-spacing": [2], |
66 |
| - "prefer-spread": [2], |
67 |
| - "no-new-object": [2], |
68 |
| - "no-multi-str": [2], |
69 |
| - "semi-spacing": [2], |
70 |
| - "no-lonely-if": [2], |
71 |
| - "dot-notation": [2], |
72 |
| - "dot-location": [2, "property"], |
73 |
| - "comma-dangle": [2, "never"], |
74 |
| - "no-dupe-args": [2], |
75 |
| - "no-dupe-keys": [2], |
76 |
| - "no-ex-assign": [2], |
77 |
| - "no-obj-calls": [2], |
78 |
| - "valid-typeof": [2], |
79 |
| - "default-case": [2], |
80 |
| - "no-redeclare": [2], |
81 |
| - "no-div-regex": [2], |
82 |
| - "no-sequences": [2], |
83 |
| - "no-label-var": [2], |
84 |
| - "comma-style": [2], |
85 |
| - "brace-style": [2], |
86 |
| - "no-debugger": [2], |
87 |
| - "quote-props": [0], |
88 |
| - "no-iterator": [2], |
89 |
| - "no-new-func": [2], |
90 |
| - // "key-spacing": [2, { "align": "value" }], |
91 |
| - "complexity": [2], |
92 |
| - "new-parens": [2], |
93 |
| - "no-eq-null": [2], |
94 |
| - "no-bitwise": [0], |
95 |
| - "wrap-iife": [2], |
96 |
| - "no-caller": [2], |
97 |
| - "use-isnan": [2], |
98 |
| - // "no-shadow": [2], |
99 |
| - "camelcase": [2], |
100 |
| - "eol-last": [2], |
101 |
| - "no-octal": [2], |
102 |
| - "no-empty": [2], |
103 |
| - "no-alert": [2], |
104 |
| - "no-proto": [2], |
105 |
| - "no-undef": [2], |
106 |
| - "no-eval": [2], |
107 |
| - "no-with": [2], |
108 |
| - "no-void": [2], |
109 |
| - "new-cap": [2], |
110 |
| - "eqeqeq": [2], |
111 |
| - "no-new": [2], |
112 |
| - "quotes": [2, "single"], |
113 |
| - "indent": ["error", 2], |
114 |
| - "semi": [2, "always"], |
115 |
| - "yoda": [2, "never"] |
116 |
| - }, |
117 |
| - "env": { |
118 |
| - "mocha": true, |
119 |
| - "node": true |
120 |
| - }, |
121 |
| - "globals": { |
122 |
| - "document": true, |
123 |
| - "window": true |
124 |
| - } |
| 2 | + "env": { |
| 3 | + "es6": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "extends": "eslint:recommended", |
| 7 | + "plugins": [ |
| 8 | + "prettier" |
| 9 | + ], |
| 10 | + "rules": { |
| 11 | + "prettier/prettier": "error", |
| 12 | + "indent": [ |
| 13 | + "error", |
| 14 | + 4 |
| 15 | + ], |
| 16 | + "linebreak-style": [ |
| 17 | + "error", |
| 18 | + "unix" |
| 19 | + ], |
| 20 | + "quotes": [ |
| 21 | + "error", |
| 22 | + "single" |
| 23 | + ], |
| 24 | + "semi": [ |
| 25 | + "error", |
| 26 | + "always" |
| 27 | + ] |
| 28 | + } |
125 | 29 | }
|
0 commit comments