d10c1e57e8
DEV: Overhaul typechecking configuration ( #35794 )
...
- Switches to typescript 'composite project' mode for improved
organization & performance
- Generates declarations from core modules, and outputs to a new
`@discourse/types` package
- Introduces tsconfigs for core plugins, which leans on that new
`@discourse/types` package
- In future, we plan to publish this discourse-types package for other
themes/plugins to use
The motivation at this stage is primarily to improve editor
autocompletion. We provide absolutely no guarantees about the accuracy
or stability of the generated types.
For now, some issues have been resolved by adding manual `@type`
declarations.
In particular, extensionless imports of `.gjs` files are broken when
running in composite-project mode, so in those cases we have to add
manual `@type {import("./the-file.gjs").default}` declarations.
Unfortunately this failure does not show up in IDEs. We hope to get this
resolved soon.
---------
Co-authored-by: David Taylor <david@taylorhq.com >
Co-authored-by: Chris Manson <chris@manson.ie >
2025-11-12 12:54:34 +00:00
David Battersby
002f0db664
DEV: add missing flag for site settings ( #35626 )
2025-10-28 10:08:25 +04:00
Discourse Translator Bot
73664e3a69
Update translations ( #35104 )
2025-10-01 11:08:49 +02:00
Jarek Radosz
60dadd2166
DEV: Remove unnecessary freeze calls ( #35064 )
...
All those files have `# frozen_string_literal: true`
2025-09-30 15:36:16 +02:00
Jarek Radosz and Loïc Guitaut
e372355fd0
DEV: Clean up scope resolution operators in plugins ( #34979 )
...
Co-authored-by: Loïc Guitaut <loic@discourse.org >
2025-09-30 14:36:34 +02:00
Discourse Translator Bot
cb6a8a5cf1
Update translations ( #35031 )
2025-09-29 10:26:53 +02:00
Jarek Radosz
52e872961a
DEV: Clean up requires ( #34946 )
...
1. remove unnecessary `.rb` filename suffixes from `require_relative`
calls
2. replace `require File.expand_path(File.dirname(__FILE__) + …` with
`require_relative`
3. remove `./` prefixes from `require_relative` calls
2025-09-24 12:00:22 +02:00
Discourse Translator Bot
0d4ca82c91
Update translations ( #34568 )
2025-08-27 11:00:03 +02:00
Discourse Translator Bot
74066bffa2
Update translations ( #34116 )
2025-08-19 12:14:51 +02:00
Penar Musaraj
eec7ecac7e
FIX: Hcaptcha plugin was incompatible with login-required sites ( #34181 )
2025-08-08 14:37:57 -04:00
Jarek Radosz
ce6368ca98
DEV: Enable ember/no-classic-components ( #33978 )
...
…and apply lint-to-the-future
2025-07-30 14:54:24 +02:00
Discourse Translator Bot
fa87576fcf
Update translations ( #33892 )
2025-07-28 18:38:22 +02:00
e7d3c344d1
Build(deps-dev): Bump the lint group across 1 directory with 4 updates ( #33881 )
...
Bumps the lint group with 4 updates in the / directory:
[@discourse/lint-configs](https://github.com/discourse/lint-configs ),
[ember-template-lint](https://github.com/ember-template-lint/ember-template-lint ),
[eslint](https://github.com/eslint/eslint ) and
[stylelint](https://github.com/stylelint/stylelint ).
Updates `@discourse/lint-configs` from 2.22.0 to 2.28.0
- [Commits](https://github.com/discourse/lint-configs/commits )
Updates `ember-template-lint` from 7.7.0 to 7.9.1
- [Release
notes](https://github.com/ember-template-lint/ember-template-lint/releases )
-
[Changelog](https://github.com/ember-template-lint/ember-template-lint/blob/master/CHANGELOG.md )
-
[Commits](https://github.com/ember-template-lint/ember-template-lint/commits )
Updates `eslint` from 9.27.0 to 9.32.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.27.0...v9.32.0 )
Updates `stylelint` from 16.19.1 to 16.22.0
- [Release notes](https://github.com/stylelint/stylelint/releases )
-
[Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
-
[Commits](https://github.com/stylelint/stylelint/compare/16.19.1...16.22.0 )
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Discourse CI <ci@ci.invalid >
Co-authored-by: Jarek Radosz <jarek@cvx.dev >
2025-07-28 18:02:41 +02:00
Jarek Radosz
1cb3e2c070
DEV: Remove unnecessary rails_helper requires ( #33812 )
2025-07-24 13:50:04 +02:00
Discourse Translator Bot
be72df118f
Update translations ( #33821 )
2025-07-24 12:09:41 +02:00
Discourse Translator Bot
0bad5c6104
Update translations ( #33746 )
2025-07-23 00:13:58 +02:00
Jarek Radosz
b3c1f4e0af
DEV: Move discourse-hcaptcha to core ( #33570 )
...
https://meta.discourse.org/t/373574
Internal `/t/-/156778`
2025-07-15 16:38:05 +02:00