diff options
author | silverwind <me@silverwind.io> | 2022-05-10 21:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 21:44:36 +0200 |
commit | 3c658dff233e791856496761325f5ebf787d7521 (patch) | |
tree | f38273cd9ef9954733e61e2eef8b9a6c895740e6 /.eslintrc | |
parent | 9d0253a9fad085c67e6c985f2a17451d78ac63e7 (diff) | |
download | gitea-3c658dff233e791856496761325f5ebf787d7521.tar.gz gitea-3c658dff233e791856496761325f5ebf787d7521.zip |
Update JS dependencies (#19675)
* Update JS dependencies
- Update all JS dependencies minus vue and vue-loader
- Adapt to jest 28
- Add new eslint rules
- Tested Mermaid and Swagger-UI
* switch to @happy-dom/jest-environment for faster tests
* bump eslint env to es2022
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -18,7 +18,7 @@ extends: - plugin:vue/recommended env: - es2021: true + es2022: true node: true globals: @@ -174,6 +174,7 @@ rules: no-confusing-arrow: [0] no-console: [1, {allow: [info, warn, error]}] no-const-assign: [2] + no-constant-binary-expression: [2] no-constant-condition: [0] no-constructor-return: [2] no-continue: [0] @@ -384,12 +385,14 @@ rules: unicorn/no-thenable: [2] unicorn/no-this-assignment: [2] unicorn/no-unreadable-array-destructuring: [0] + unicorn/no-unreadable-iife: [2] unicorn/no-unsafe-regex: [0] unicorn/no-unused-properties: [2] unicorn/no-useless-fallback-in-spread: [2] unicorn/no-useless-length-check: [2] unicorn/no-useless-promise-resolve-reject: [2] unicorn/no-useless-spread: [2] + unicorn/no-useless-switch-case: [2] unicorn/no-useless-undefined: [0] unicorn/no-zero-fractions: [2] unicorn/number-literal-case: [0] @@ -411,7 +414,9 @@ rules: unicorn/prefer-json-parse-buffer: [0] unicorn/prefer-math-trunc: [2] unicorn/prefer-modern-dom-apis: [0] + unicorn/prefer-modern-math-apis: [2] unicorn/prefer-module: [2] + unicorn/prefer-native-coercion-functions: [2] unicorn/prefer-negative-index: [2] unicorn/prefer-node-append: [0] unicorn/prefer-node-protocol: [0] |