Skip to content

Commit 5d5ce23

Browse files
committed
Update dependencies
- Update `@eslint/markdown` to ^7.0.0` - Update `@stylistic/eslint-plugin` to ^5.0.0` - Update `eslint-plugin-jsdoc` to ^51.0.0` - Update `eslint-plugin-unicorn` to ^60.0.0` - Enable rule `no-unassigned-vars` - Enable rule `unicorn/no-unnecessary-array-flat-depth` - Enable rule `unicorn/no-unnecessary-array-splice-count` - Enable rule `unicorn/no-unnecessary-slice-end` - Enable rule `unicorn/no-useless-error-capture-stack-trace` - Enable rule `unicorn/prefer-class-fields` - Enable rule `unicorn/prefer-import-meta-properties` - Enable rule `unicorn/prefer-single-call` - Enable rule `unicorn/require-module-specifiers`
1 parent b6714ae commit 5d5ce23

File tree

6 files changed

+796
-1726
lines changed

6 files changed

+796
-1726
lines changed

examples/typescript-preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"bulma": "^1.0.0",
1111
"classnames": "^2.0.0",
1212
"preact": "^10.0.0",
13-
"vite": "^6.0.0"
13+
"vite": "^7.0.0"
1414
}
1515
}

examples/typescript-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"classnames": "^2.0.0",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0",
16-
"vite": "^6.0.0"
16+
"vite": "^7.0.0"
1717
}
1818
}

lib/config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ const config = defineConfig([
320320
'no-shadow-restricted-names': 'error',
321321
'no-this-before-super': 'error',
322322
'no-throw-literal': 'error',
323+
'no-unassigned-vars': 'error',
323324
'no-undef': 'error',
324325
'no-undef-init': 'error',
325326
'no-underscore-dangle': 'error',
@@ -678,7 +679,6 @@ const config = defineConfig([
678679
'unicorn/no-accessor-recursion': 'error',
679680
'unicorn/no-array-for-each': 'error',
680681
'unicorn/no-array-method-this-argument': 'error',
681-
'unicorn/no-array-push-push': 'error',
682682
'unicorn/no-array-reduce': 'error',
683683
'unicorn/no-await-in-promise-methods': 'error',
684684
'unicorn/no-console-spaces': 'error',
@@ -689,7 +689,6 @@ const config = defineConfig([
689689
'unicorn/no-instanceof-builtins': 'error',
690690
'unicorn/no-invalid-fetch-options': 'error',
691691
'unicorn/no-invalid-remove-event-listener': 'error',
692-
'unicorn/no-length-as-slice-end': 'error',
693692
'unicorn/no-lonely-if': 'error',
694693
'unicorn/no-named-default': 'error',
695694
'unicorn/no-negated-condition': 'error',
@@ -700,9 +699,13 @@ const config = defineConfig([
700699
'unicorn/no-static-only-class': 'error',
701700
'unicorn/no-this-assignment': 'error',
702701
'unicorn/no-typeof-undefined': 'error',
702+
'unicorn/no-unnecessary-array-flat-depth': 'error',
703+
'unicorn/no-unnecessary-array-splice-count': 'error',
703704
'unicorn/no-unnecessary-await': 'error',
705+
'unicorn/no-unnecessary-slice-end': 'error',
704706
'unicorn/no-unreadable-iife': 'error',
705707
'unicorn/no-unused-properties': 'error',
708+
'unicorn/no-useless-error-capture-stack-trace': 'error',
706709
'unicorn/no-useless-fallback-in-spread': 'error',
707710
'unicorn/no-useless-length-check': 'error',
708711
'unicorn/no-useless-promise-resolve-reject': 'error',
@@ -718,6 +721,7 @@ const config = defineConfig([
718721
'unicorn/prefer-array-some': 'error',
719722
'unicorn/prefer-at': 'error',
720723
'unicorn/prefer-blob-reading-methods': 'error',
724+
'unicorn/prefer-class-fields': 'error',
721725
'unicorn/prefer-date-now': 'error',
722726
'unicorn/prefer-default-parameters': 'error',
723727
'unicorn/prefer-dom-node-append': 'error',
@@ -727,6 +731,7 @@ const config = defineConfig([
727731
'unicorn/prefer-event-target': 'error',
728732
'unicorn/prefer-export-from': ['error', { ignoreUsedVariables: true }],
729733
'unicorn/prefer-global-this': 'error',
734+
'unicorn/prefer-import-meta-properties': 'error',
730735
'unicorn/prefer-includes': 'error',
731736
'unicorn/prefer-json-parse-buffer': 'error',
732737
'unicorn/prefer-keyboard-event-key': 'error',
@@ -746,6 +751,7 @@ const config = defineConfig([
746751
'unicorn/prefer-regexp-test': 'error',
747752
'unicorn/prefer-set-has': 'error',
748753
'unicorn/prefer-set-size': 'error',
754+
'unicorn/prefer-single-call': 'error',
749755
'unicorn/prefer-string-replace-all': 'error',
750756
'unicorn/prefer-string-slice': 'error',
751757
'unicorn/prefer-string-starts-ends-with': 'error',
@@ -755,6 +761,7 @@ const config = defineConfig([
755761
'unicorn/prefer-top-level-await': 'error',
756762
'unicorn/prefer-type-error': 'error',
757763
'unicorn/relative-url-style': 'error',
764+
'unicorn/require-module-specifiers': 'error',
758765
'unicorn/require-post-message-target-origin': 'error',
759766
'unicorn/switch-case-braces': ['error', 'avoid'],
760767
'unicorn/template-indent': 'error',

0 commit comments

Comments
 (0)