Skip to content

Commit c7c82ca

Browse files
fix: update deps (#139)
1 parent 46017f3 commit c7c82ca

5 files changed

Lines changed: 202 additions & 38 deletions

File tree

.changeset/true-words-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-config-webpack": patch
3+
---
4+
5+
Update deps and enable useful rules.

configs/javascript.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,8 @@ const unicornRules = {
690690
// No need
691691
// "unicorn/consistent-function-scoping": "off",
692692

693+
"unicorn/consistent-template-literal-escape": "error",
694+
693695
// No need
694696
// "unicorn/custom-error-definition": "off",
695697

@@ -706,7 +708,7 @@ const unicornRules = {
706708
// No need
707709
// "unicorn/explicit-length-check": "off",
708710

709-
// TODO
711+
// TODO enable in future?
710712
"unicorn/filename-case": [
711713
"off",
712714
{
@@ -834,7 +836,7 @@ const unicornRules = {
834836
// No need
835837
// "unicorn/no-this-assignment": "off",
836838

837-
// TODO - enable in future?
839+
// TODO enable in future? Need to check performance
838840
// "unicorn/no-typeof-undefined": "off",
839841

840842
"unicorn/no-unnecessary-array-flat-depth": "error",
@@ -862,6 +864,8 @@ const unicornRules = {
862864

863865
"unicorn/no-useless-fallback-in-spread": "error",
864866

867+
"unicorn/no-useless-iterator-to-array": "error",
868+
865869
"unicorn/no-useless-length-check": "error",
866870

867871
"unicorn/no-useless-promise-resolve-reject": "error",
@@ -993,6 +997,9 @@ const unicornRules = {
993997
// No need
994998
// "unicorn/prefer-set-size": "off",
995999

1000+
// TODO enable in the next major release
1001+
// "unicorn/prefer-simple-condition-first": "error",
1002+
9961003
// No need
9971004
// "unicorn/prefer-single-call": "off",
9981005

@@ -1045,6 +1052,10 @@ const unicornRules = {
10451052
// No need
10461053
// "unicorn/switch-case-braces": "off",
10471054

1055+
// TODO maybe?
1056+
// No need
1057+
// "unicorn/switch-case-break-position": "off",
1058+
10481059
// No need
10491060
// "unicorn/template-indent": "off",
10501061

configs/markdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ async function getMarkdownRecommendedConfig() {
1212
files: ["**/*.md"],
1313
processor: "markdown/markdown",
1414
plugins: {
15+
// @ts-expect-error bad types
1516
markdown: markdownPlugin,
1617
},
1718
},

0 commit comments

Comments
 (0)