diff options
author | silverwind <me@silverwind.io> | 2022-01-18 07:01:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 23:01:36 +0800 |
commit | 8156e0f8556f08e3577ada436945a3240b01a5ac (patch) | |
tree | 80ad6377e61fda61ad780f3cf360875c0149d451 /.eslintrc | |
parent | 89a321435259afa911900c0047f2766d255d315b (diff) | |
download | gitea-8156e0f8556f08e3577ada436945a3240b01a5ac.tar.gz gitea-8156e0f8556f08e3577ada436945a3240b01a5ac.zip |
Update JS dependencies, remove eslint-plugin-github (#18317)
- Update all JS dependencies
- Add new lint rules
- Regenerate SVGs
- Tested Monaco and Mermaid
* Remove eslint-plugin-github
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 26 |
1 files changed, 7 insertions, 19 deletions
@@ -13,7 +13,6 @@ plugins: - eslint-plugin-import - eslint-plugin-vue - eslint-plugin-html - - eslint-plugin-github extends: - plugin:vue/recommended @@ -96,23 +95,6 @@ rules: function-paren-newline: [0] generator-star-spacing: [0] getter-return: [2] - github/array-foreach: [2] - github/async-currenttarget: [2] - github/async-preventdefault: [2] - github/authenticity-token: [0] - github/get-attribute: [2] - github/js-class-name: [0] - github/no-blur: [0] - github/no-d-none: [0] - github/no-dataset: [2] - github/no-implicit-buggy-globals: [0] - github/no-inner-html: [0] - github/no-innerText: [2] - github/no-then: [0] - github/no-useless-passive: [2] - github/prefer-observers: [0] - github/require-passive-events: [2] - github/unescaped-html-literal: [0] grouped-accessor-pairs: [2] guard-for-in: [0] id-blacklist: [0] @@ -301,6 +283,7 @@ rules: no-unsafe-negation: [2] no-unused-expressions: [2] no-unused-labels: [2] + no-unused-private-class-members: [2] no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, ignoreRestSiblings: false}] no-use-before-define: [2, nofunc] no-useless-backreference: [0] @@ -333,6 +316,7 @@ rules: prefer-exponentiation-operator: [2] prefer-named-capture-group: [0] prefer-numeric-literals: [2] + prefer-object-has-own: [0] prefer-object-spread: [0] prefer-promise-reject-errors: [2, {allowEmptyReject: false}] prefer-regex-literals: [2] @@ -379,7 +363,7 @@ rules: unicorn/import-style: [0] unicorn/new-for-builtins: [2] unicorn/no-abusive-eslint-disable: [0] - unicorn/no-array-for-each: [0] + unicorn/no-array-for-each: [2] unicorn/no-array-instanceof: [0] unicorn/no-array-method-this-argument: [2] unicorn/no-array-push-push: [2] @@ -401,12 +385,14 @@ rules: unicorn/no-process-exit: [0] unicorn/no-reduce: [2] unicorn/no-static-only-class: [2] + unicorn/no-thenable: [2] unicorn/no-this-assignment: [2] unicorn/no-unreadable-array-destructuring: [0] 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-undefined: [0] unicorn/no-zero-fractions: [2] @@ -426,6 +412,7 @@ rules: unicorn/prefer-event-key: [2] unicorn/prefer-export-from: [2] unicorn/prefer-includes: [2] + unicorn/prefer-json-parse-buffer: [0] unicorn/prefer-math-trunc: [2] unicorn/prefer-modern-dom-apis: [0] unicorn/prefer-module: [2] @@ -453,6 +440,7 @@ rules: unicorn/prefer-trim-start-end: [2] unicorn/prefer-type-error: [0] unicorn/prevent-abbreviations: [0] + unicorn/relative-url-style: [2] unicorn/require-array-join-separator: [2] unicorn/require-number-to-fixed-digits-argument: [2] unicorn/require-post-message-target-origin: [0] |