Skip to content

Commit 9e659fc

Browse files
committed
Update some JS dependencies
- Update selective dependencies that are compatible with webpack 4. We can not upgrade to webpack 5 yet because `license-webpack-plugin` is incompatible. - Enable a few new eslint rules and fix new issues
1 parent 70cb9e3 commit 9e659fc

File tree

6 files changed

+878
-697
lines changed

6 files changed

+878
-697
lines changed

.eslintrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ rules:
9999
import/no-amd: [0]
100100
import/no-anonymous-default-export: [0]
101101
import/no-commonjs: [0]
102-
import/no-cycle: [0]
102+
import/no-cycle: [2, {ignoreExternal: true}]
103103
import/no-default-export: [0]
104104
import/no-deprecated: [0]
105105
import/no-dynamic-require: [0]
@@ -117,7 +117,7 @@ rules:
117117
import/no-self-import: [2]
118118
import/no-unassigned-import: [0]
119119
import/no-unresolved: [2, {commonjs: true}]
120-
import/no-unused-modules: [0]
120+
import/no-unused-modules: [2, {unusedExports: true}]
121121
import/no-useless-path-segments: [2, {commonjs: true}]
122122
import/no-webpack-loader-syntax: [2]
123123
import/order: [0]
@@ -211,7 +211,7 @@ rules:
211211
no-mixed-operators: [0]
212212
no-mixed-spaces-and-tabs: [2]
213213
no-multi-assign: [0]
214-
no-multi-spaces: [2, {ignoreEOLComments: true, exceptions: {Property: true, VariableDeclarator: true}}]
214+
no-multi-spaces: [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
215215
no-multi-str: [2]
216216
no-negated-condition: [0]
217217
no-nested-ternary: [0]
@@ -336,6 +336,7 @@ rules:
336336
unicorn/explicit-length-check: [0]
337337
unicorn/filename-case: [0]
338338
unicorn/import-index: [0]
339+
unicorn/import-style: [0]
339340
unicorn/new-for-builtins: [2]
340341
unicorn/no-abusive-eslint-disable: [0]
341342
unicorn/no-array-instanceof: [0]
@@ -356,11 +357,13 @@ rules:
356357
unicorn/no-useless-undefined: [0]
357358
unicorn/no-zero-fractions: [2]
358359
unicorn/number-literal-case: [0]
360+
unicorn/numeric-separators-style: [0]
359361
unicorn/prefer-add-event-listener: [2]
360362
unicorn/prefer-array-find: [2]
361363
unicorn/prefer-dataset: [2]
362364
unicorn/prefer-event-key: [2]
363365
unicorn/prefer-includes: [2]
366+
unicorn/prefer-math-trunc: [2]
364367
unicorn/prefer-modern-dom-apis: [0]
365368
unicorn/prefer-negative-index: [2]
366369
unicorn/prefer-node-append: [0]
@@ -374,6 +377,7 @@ rules:
374377
unicorn/prefer-spread: [0]
375378
unicorn/prefer-starts-ends-with: [2]
376379
unicorn/prefer-string-slice: [0]
380+
unicorn/prefer-ternary: [0]
377381
unicorn/prefer-text-content: [2]
378382
unicorn/prefer-trim-start-end: [2]
379383
unicorn/prefer-type-error: [0]

0 commit comments

Comments
 (0)