Skip to content

Commit acf8115

Browse files
committed
Webpack 4 support. Vscode intellisense support, etc
1 parent ff173d9 commit acf8115

25 files changed

+5093
-7095
lines changed

.babelrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"presets": ["env"],
3-
"plugins": ["babel-plugin-add-module-exports"]
3+
"plugins": [
4+
"babel-plugin-add-module-exports",
5+
"transform-class-properties"
6+
]
47
}

.eslintrc

-149
Original file line numberDiff line numberDiff line change
@@ -26,154 +26,5 @@
2626
],
2727

2828
"rules": {
29-
"block-scoped-var": 2,
30-
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
31-
"camelcase": [2, { "properties": "always" }],
32-
"comma-dangle": [2, "never"],
33-
"comma-spacing": [2, { "before": false, "after": true }],
34-
"comma-style": [2, "last"],
35-
"complexity": 0,
36-
"consistent-return": 2,
37-
"consistent-this": 0,
38-
"curly": [2, "multi-line"],
39-
"default-case": 0,
40-
"dot-location": [2, "property"],
41-
"dot-notation": 0,
42-
"eol-last": 2,
43-
"eqeqeq": [2, "allow-null"],
44-
"func-names": 0,
45-
"func-style": 0,
46-
"generator-star-spacing": [2, "both"],
47-
"guard-for-in": 0,
48-
"handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
49-
"indent": [2, 2, { "SwitchCase": 1 }],
50-
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
51-
"keyword-spacing": [2, {"before": true, "after": true}],
52-
"linebreak-style": 0,
53-
"max-depth": 0,
54-
"max-len": [2, 120, 4],
55-
"max-nested-callbacks": 0,
56-
"max-params": 0,
57-
"max-statements": 0,
58-
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
59-
"newline-after-var": [2, "always"],
60-
"new-parens": 2,
61-
"no-alert": 0,
62-
"no-array-constructor": 2,
63-
"no-bitwise": 0,
64-
"no-caller": 2,
65-
"no-catch-shadow": 0,
66-
"no-cond-assign": 2,
67-
"no-console": 0,
68-
"no-constant-condition": 0,
69-
"no-continue": 0,
70-
"no-control-regex": 2,
71-
"no-debugger": 2,
72-
"no-delete-var": 2,
73-
"no-div-regex": 0,
74-
"no-dupe-args": 2,
75-
"no-dupe-keys": 2,
76-
"no-duplicate-case": 2,
77-
"no-else-return": 2,
78-
"no-empty": 0,
79-
"no-empty-character-class": 2,
80-
"no-eq-null": 0,
81-
"no-eval": 2,
82-
"no-ex-assign": 2,
83-
"no-extend-native": 2,
84-
"no-extra-bind": 2,
85-
"no-extra-boolean-cast": 2,
86-
"no-extra-parens": 0,
87-
"no-extra-semi": 0,
88-
"no-extra-strict": 0,
89-
"no-fallthrough": 2,
90-
"no-floating-decimal": 2,
91-
"no-func-assign": 2,
92-
"no-implied-eval": 2,
93-
"no-inline-comments": 0,
94-
"no-inner-declarations": [2, "functions"],
95-
"no-invalid-regexp": 2,
96-
"no-irregular-whitespace": 2,
97-
"no-iterator": 2,
98-
"no-label-var": 2,
99-
"no-labels": 2,
100-
"no-lone-blocks": 0,
101-
"no-lonely-if": 0,
102-
"no-loop-func": 0,
103-
"no-mixed-requires": 0,
104-
"no-mixed-spaces-and-tabs": [2, false],
105-
"no-multi-spaces": 2,
106-
"no-multi-str": 2,
107-
"no-multiple-empty-lines": [2, { "max": 1 }],
108-
"no-native-reassign": 2,
109-
"no-negated-in-lhs": 2,
110-
"no-nested-ternary": 0,
111-
"no-new": 2,
112-
"no-new-func": 2,
113-
"no-new-object": 2,
114-
"no-new-require": 2,
115-
"no-new-wrappers": 2,
116-
"no-obj-calls": 2,
117-
"no-octal": 2,
118-
"no-octal-escape": 2,
119-
"no-path-concat": 0,
120-
"no-plusplus": 0,
121-
"no-process-env": 0,
122-
"no-process-exit": 0,
123-
"no-proto": 2,
124-
"no-redeclare": 2,
125-
"no-regex-spaces": 2,
126-
"no-reserved-keys": 0,
127-
"no-restricted-modules": 0,
128-
"no-return-assign": 2,
129-
"no-script-url": 0,
130-
"no-self-compare": 2,
131-
"no-sequences": 2,
132-
"no-shadow": 0,
133-
"no-shadow-restricted-names": 2,
134-
"no-spaced-func": 2,
135-
"no-sparse-arrays": 2,
136-
"no-sync": 0,
137-
"no-ternary": 0,
138-
"no-throw-literal": 2,
139-
"no-trailing-spaces": 2,
140-
"no-undef": 2,
141-
"no-undef-init": 2,
142-
"no-undefined": 0,
143-
"no-underscore-dangle": 0,
144-
"no-unneeded-ternary": 2,
145-
"no-unreachable": 2,
146-
"no-unused-expressions": 0,
147-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
148-
"no-use-before-define": 2,
149-
"no-var": 0,
150-
"no-void": 0,
151-
"no-warning-comments": 0,
152-
"no-with": 2,
153-
"one-var": 0,
154-
"operator-assignment": 0,
155-
"operator-linebreak": [2, "after"],
156-
"padded-blocks": 0,
157-
"quote-props": 0,
158-
"quotes": [2, "single", "avoid-escape"],
159-
"radix": 2,
160-
"semi": [2, "always"],
161-
"semi-spacing": 0,
162-
"sort-vars": 0,
163-
"space-before-blocks": [2, "always"],
164-
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
165-
"space-in-brackets": 0,
166-
"space-in-parens": [2, "never"],
167-
"space-infix-ops": 2,
168-
"space-unary-ops": [2, { "words": true, "nonwords": false }],
169-
"spaced-comment": [2, "always"],
170-
"strict": 0,
171-
"use-isnan": 2,
172-
"valid-jsdoc": 0,
173-
"valid-typeof": 2,
174-
"vars-on-top": 2,
175-
"wrap-iife": [2, "any"],
176-
"wrap-regex": 0,
177-
"yoda": [2, "never"]
17829
}
17930
}

.eslintrc.old

+186
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
9+
"globals": {
10+
"document": false,
11+
"escape": false,
12+
"navigator": false,
13+
"unescape": false,
14+
"window": false,
15+
"describe": true,
16+
"before": true,
17+
"it": true,
18+
"expect": true,
19+
"sinon": true
20+
},
21+
22+
"parser": "babel-eslint",
23+
24+
"plugins": [
25+
26+
],
27+
28+
"rules": {
29+
"zzz":{
30+
31+
}
32+
},
33+
34+
"disabledRules":{
35+
"block-scoped-var": 2,
36+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
37+
"camelcase": [2, { "properties": "always" }],
38+
"comma-dangle": [2, "never"],
39+
"comma-spacing": [2, { "before": false, "after": true }],
40+
"comma-style": [2, "last"],
41+
"complexity": 0,
42+
"consistent-return": 2,
43+
"consistent-this": 0,
44+
"curly": [2, "multi-line"],
45+
"default-case": 0,
46+
"dot-location": [2, "property"],
47+
"dot-notation": 0,
48+
"eol-last": 2,
49+
"eqeqeq": [2, "allow-null"],
50+
"func-names": 0,
51+
"func-style": 0,
52+
"generator-star-spacing": [2, "both"],
53+
"guard-for-in": 0,
54+
"handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
55+
"indent": [2, 2, { "SwitchCase": 1 }],
56+
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
57+
"keyword-spacing": [2, {"before": true, "after": true}],
58+
"linebreak-style": 0,
59+
"max-depth": 0,
60+
"max-len": [2, 120, 4],
61+
"max-nested-callbacks": 0,
62+
"max-params": 0,
63+
"max-statements": 0,
64+
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
65+
"newline-after-var": [2, "always"],
66+
"new-parens": 2,
67+
"no-alert": 0,
68+
"no-array-constructor": 2,
69+
"no-bitwise": 0,
70+
"no-caller": 2,
71+
"no-catch-shadow": 0,
72+
"no-cond-assign": 2,
73+
"no-console": 0,
74+
"no-constant-condition": 0,
75+
"no-continue": 0,
76+
"no-control-regex": 2,
77+
"no-debugger": 2,
78+
"no-delete-var": 2,
79+
"no-div-regex": 0,
80+
"no-dupe-args": 2,
81+
"no-dupe-keys": 2,
82+
"no-duplicate-case": 2,
83+
"no-else-return": 2,
84+
"no-empty": 0,
85+
"no-empty-character-class": 2,
86+
"no-eq-null": 0,
87+
"no-eval": 2,
88+
"no-ex-assign": 2,
89+
"no-extend-native": 2,
90+
"no-extra-bind": 2,
91+
"no-extra-boolean-cast": 2,
92+
"no-extra-parens": 0,
93+
"no-extra-semi": 0,
94+
"no-extra-strict": 0,
95+
"no-fallthrough": 2,
96+
"no-floating-decimal": 2,
97+
"no-func-assign": 2,
98+
"no-implied-eval": 2,
99+
"no-inline-comments": 0,
100+
"no-inner-declarations": [2, "functions"],
101+
"no-invalid-regexp": 2,
102+
"no-irregular-whitespace": 2,
103+
"no-iterator": 2,
104+
"no-label-var": 2,
105+
"no-labels": 2,
106+
"no-lone-blocks": 0,
107+
"no-lonely-if": 0,
108+
"no-loop-func": 0,
109+
"no-mixed-requires": 0,
110+
"no-mixed-spaces-and-tabs": [2, false],
111+
"no-multi-spaces": 2,
112+
"no-multi-str": 2,
113+
"no-multiple-empty-lines": [2, { "max": 1 }],
114+
"no-native-reassign": 2,
115+
"no-negated-in-lhs": 2,
116+
"no-nested-ternary": 0,
117+
"no-new": 2,
118+
"no-new-func": 2,
119+
"no-new-object": 2,
120+
"no-new-require": 2,
121+
"no-new-wrappers": 2,
122+
"no-obj-calls": 2,
123+
"no-octal": 2,
124+
"no-octal-escape": 2,
125+
"no-path-concat": 0,
126+
"no-plusplus": 0,
127+
"no-process-env": 0,
128+
"no-process-exit": 0,
129+
"no-proto": 2,
130+
"no-redeclare": 2,
131+
"no-regex-spaces": 2,
132+
"no-reserved-keys": 0,
133+
"no-restricted-modules": 0,
134+
"no-return-assign": 2,
135+
"no-script-url": 0,
136+
"no-self-compare": 2,
137+
"no-sequences": 2,
138+
"no-shadow": 0,
139+
"no-shadow-restricted-names": 2,
140+
"no-spaced-func": 2,
141+
"no-sparse-arrays": 2,
142+
"no-sync": 0,
143+
"no-ternary": 0,
144+
"no-throw-literal": 2,
145+
"no-trailing-spaces": 2,
146+
"no-undef": 2,
147+
"no-undef-init": 2,
148+
"no-undefined": 0,
149+
"no-underscore-dangle": 0,
150+
"no-unneeded-ternary": 2,
151+
"no-unreachable": 2,
152+
"no-unused-expressions": 0,
153+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
154+
"no-use-before-define": 2,
155+
"no-var": 0,
156+
"no-void": 0,
157+
"no-warning-comments": 0,
158+
"no-with": 2,
159+
"one-var": 0,
160+
"operator-assignment": 0,
161+
"operator-linebreak": [2, "after"],
162+
"padded-blocks": 0,
163+
"quote-props": 0,
164+
"quotes": [2, "single", "avoid-escape"],
165+
"radix": 2,
166+
"semi": [2, "always"],
167+
"semi-spacing": 0,
168+
"sort-vars": 0,
169+
"space-before-blocks": [2, "always"],
170+
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
171+
"space-in-brackets": 0,
172+
"space-in-parens": [2, "never"],
173+
"space-infix-ops": 2,
174+
"space-unary-ops": [2, { "words": true, "nonwords": false }],
175+
"spaced-comment": [2, "always"],
176+
"strict": 0,
177+
"use-isnan": 2,
178+
"valid-jsdoc": 0,
179+
"valid-typeof": 2,
180+
"vars-on-top": 2,
181+
"wrap-iife": [2, "any"],
182+
"wrap-regex": 0,
183+
"yoda": [2, "never"]
184+
185+
}
186+
}

0 commit comments

Comments
 (0)