aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
Commit message (Collapse)AuthorAgeFilesLines
* Enable `@typescript-eslint/no-use-before-define` (#33715)silverwind2025-02-251-2/+2
| | | | | | The [rule](https://typescript-eslint.io/rules/no-use-before-define/) is a superset of the eslint base rule, and I tested it with https://github.com/go-gitea/gitea/pull/33514#discussion_r1969795271 where it does not raise an error for cyclic types.
* Enable eslint for commonjs (#33575)silverwind2025-02-121-3/+10
|
* Switch to `@vitest/eslint-plugin` (#33573)silverwind2025-02-121-54/+52
| | | | | | Package has been renamed and now also provides the globals so we can replace two dependencies with one. Ref: https://github.com/vitest-dev/eslint-plugin-vitest/issues/537
* Update JS and PY dependencies (#33249)silverwind2025-01-161-1/+1
| | | | | | - Update all JS and PY dependencies - Tested affected dependencies - Disabled `async-preventdefault` lint rule because it brought up new false-positives.
* Fix eslint (#33002)wxiaoguang2024-12-271-1/+1
| | | | | | | Fix #32982 Related #32869 * eslint-plugin-github 5.1.x doesn't work well with eslint8 * no-undef is still needed
* Move eslint config to javascript (#32869)silverwind2024-12-181-0/+999
In preparation for migrating to eslint flat config, move the config file to javascript. Additional changes: - `no-undef` is now disabled as it's no longer needed with typescript - `no-restricted-globals` config is simplified