mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
b10c416f9e
* Use AJAX for notifications table Signed-off-by: Andrew Thornton <art27@cantab.net> * move to separate js Signed-off-by: Andrew Thornton <art27@cantab.net> * placate golangci-lint Signed-off-by: Andrew Thornton <art27@cantab.net> * Add autoupdating notification count Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix wipeall Signed-off-by: Andrew Thornton <art27@cantab.net> * placate tests Signed-off-by: Andrew Thornton <art27@cantab.net> * Try hidden Signed-off-by: Andrew Thornton <art27@cantab.net> * Try hide and hidden Signed-off-by: Andrew Thornton <art27@cantab.net> * More auto-update improvements Only run checker on pages that have a count Change starting checker to 10s with a back-off to 60s if there is no change Signed-off-by: Andrew Thornton <art27@cantab.net> * string comparison! Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> * add configurability as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> * Add documentation as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> * Use CSRF header not query Signed-off-by: Andrew Thornton <art27@cantab.net> * Further JS improvements Fix @etzelia update notification table request Fix @silverwind comments Co-Authored-By: silverwind <me@silverwind.io> Signed-off-by: Andrew Thornton <art27@cantab.net> * Simplify the notification count fns Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
72 lines
1.6 KiB
Plaintext
72 lines
1.6 KiB
Plaintext
root: true
|
|
|
|
extends:
|
|
- eslint-config-airbnb-base
|
|
- eslint:recommended
|
|
|
|
ignorePatterns:
|
|
- /web_src/js/vendor
|
|
|
|
parserOptions:
|
|
ecmaVersion: 2020
|
|
|
|
env:
|
|
browser: true
|
|
es6: true
|
|
jquery: true
|
|
node: true
|
|
|
|
globals:
|
|
__webpack_public_path__: true
|
|
CodeMirror: false
|
|
Dropzone: false
|
|
emojify: false
|
|
SimpleMDE: false
|
|
u2fApi: false
|
|
|
|
overrides:
|
|
- files: ["web_src/**/*.worker.js"]
|
|
env:
|
|
worker: true
|
|
rules:
|
|
no-restricted-globals: [0]
|
|
|
|
rules:
|
|
arrow-body-style: [0]
|
|
arrow-parens: [2, always]
|
|
camelcase: [0]
|
|
comma-dangle: [2, only-multiline]
|
|
consistent-return: [0]
|
|
default-case: [0]
|
|
func-names: [0]
|
|
import/extensions: [2, always, {ignorePackages: true}]
|
|
import/prefer-default-export: [0]
|
|
max-len: [0]
|
|
multiline-comment-style: [2, separate-lines]
|
|
newline-per-chained-call: [0]
|
|
no-alert: [0]
|
|
no-cond-assign: [2, except-parens]
|
|
no-console: [1, {allow: [info, warn, error]}]
|
|
no-continue: [0]
|
|
no-eq-null: [2]
|
|
no-mixed-operators: [0]
|
|
no-multi-assign: [0]
|
|
no-new: [0]
|
|
no-param-reassign: [0]
|
|
no-plusplus: [0]
|
|
no-restricted-syntax: [0]
|
|
no-return-await: [0]
|
|
no-shadow: [0]
|
|
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
|
|
no-use-before-define: [0]
|
|
no-var: [2]
|
|
object-curly-spacing: [2, never]
|
|
one-var-declaration-per-line: [0]
|
|
one-var: [0]
|
|
operator-linebreak: [2, after]
|
|
prefer-const: [2, {destructuring: all}]
|
|
prefer-destructuring: [0]
|
|
quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
|
|
radix: [2, as-needed]
|
|
semi: [2, always, {omitLastInOneLineBlock: true}]
|