Commit Graph

6 Commits (5d65b9060b24e507fa530a1cfd6171b6d799f5e8)

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

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