Commit Graph

6 Commits (2aa59ba9e56d234816942b29e61039f4e225f0f3)

Author SHA1 Message Date
silverwind b35a9da14c
Enable `@typescript-eslint/no-use-before-define` (#33715)
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.
1 day ago
silverwind 3e39583bb5
Enable eslint for commonjs (#33575) 2 weeks ago
silverwind bcd1317d17
Switch to `@vitest/eslint-plugin` (#33573)
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
2 weeks ago
silverwind ab347fd0f7
Update JS and PY dependencies (#33249)
- Update all JS and PY dependencies
- Tested affected dependencies
- Disabled `async-preventdefault` lint rule because it brought up new
false-positives.
1 month ago
wxiaoguang ea198f9ea8
Fix eslint (#33002)
Fix  #32982
Related #32869

* eslint-plugin-github 5.1.x doesn't work well with eslint8
* no-undef is still needed
2 months ago
silverwind 195fccd617
Move eslint config to javascript (#32869)
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
2 months ago