0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-14 20:34:07 +01:00
gitea/web_src
silverwind 08579d6cbb
Add initial typescript config and use it for eslint,vitest,playwright (#31186)
This enables eslint to use the typescript parser and resolver which
brings some benefits that eslint rules now have type information
available and a tsconfig.json is required for the upcoming typescript
migration as well. Notable changes done:

- Add typescript parser and resolver
- Move the vue-specific config into the root file
- Enable `vue-scoped-css/enforce-style-type` rule, there was only one
violation and I added a inline disable there.
- Fix new lint errors that were detected because of the parser change
- Update `i/no-unresolved` to remove now-unnecessary workaround for the
resolver
- Disable `i/no-named-as-default` as it seems to raise bogus issues in
the webpack config
- Change vitest config to typescript
- Change playwright config to typescript
- Add `eslint-plugin-playwright` and fix issues
- Add `tsc` linting to `make lint-js`
2024-06-28 16:15:51 +00:00
..
css Fix avatar radius problem on the new issue page (#31506) 2024-06-27 14:04:05 +00:00
fomantic Remove fomantic dimmer module (#30723) 2024-04-29 14:49:50 +00:00
js Add initial typescript config and use it for eslint,vitest,playwright (#31186) 2024-06-28 16:15:51 +00:00
svg Update various logos and unify their filenames (#29637) 2024-03-06 22:20:05 +00:00