1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-07 10:44:26 +00:00
gitea/web_src/js
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
..
components Add initial typescript config and use it for eslint,vitest,playwright (#31186) 2024-06-28 16:15:51 +00:00
features Add initial typescript config and use it for eslint,vitest,playwright (#31186) 2024-06-28 16:15:51 +00:00
markup Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
modules Make toast support preventDuplicates (#31501) 2024-06-27 13:58:38 +00:00
render Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
standalone Make toast support preventDuplicates (#31501) 2024-06-27 13:58:38 +00:00
utils Make toast support preventDuplicates (#31501) 2024-06-27 13:58:38 +00:00
vendor Refactor image diff (#31444) 2024-06-22 04:52:09 +00:00
webcomponents Add initial typescript config and use it for eslint,vitest,playwright (#31186) 2024-06-28 16:15:51 +00:00
bootstrap.js Check if reverse proxy is correctly configured (#30890) 2024-05-10 20:07:01 +08:00
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) 2024-01-21 14:23:08 +00:00
globals.js Bump htmx to 2.0.0 (#31413) 2024-06-20 20:04:09 +00:00
htmx.js Bump htmx to 2.0.0 (#31413) 2024-06-20 20:04:09 +00:00
index.js Refactor dropzone (#31482) 2024-06-27 01:01:20 +08:00
svg.js Update JS any PY dependencies, remove workarounds (#30085) 2024-03-26 09:41:40 +00:00
svg.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
utils.js Improve attachment upload methods (#30513) 2024-06-27 09:31:49 +00:00
utils.test.js Improve attachment upload methods (#30513) 2024-06-27 09:31:49 +00:00
vitest.setup.js Move vitest setup file to root (#29097) 2024-02-08 20:07:02 +08:00