forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:redwoodjs/redwood into try/apollo-u…
…pload-link * 'main' of github.com:redwoodjs/redwood: chore(linting): Remove/fix references to non-existant files (redwoodjs#11245) chore(rsa): Use swc for parsing server actions (redwoodjs#11243) chore(lint): Remove override for 'unused-imports/no-unused-imports' (redwoodjs#11244) chore(linting): Separate out framework and user linting config (redwoodjs#11242) fix: Update default tsconfig options (target, module and moduleResolution) (redwoodjs#11170) chore(fixture): Update tailwind dep (redwoodjs#11241) chore(deps): bump fast-xml-parser from 4.4.0 to 4.4.1 (redwoodjs#11239) chore(rsc): Switch last remaining transform-server test to inline snapshot (redwoodjs#11240) chore: brought in typescript-eslint@v8 with stylistic preset (redwoodjs#10911) chore(deps): bump axios from 1.7.3 to 1.7.4 (redwoodjs#11237) docs(serverConfig): Remove server config option from TOML (redwoodjs#11236) fix(deps): update typescript-eslint monorepo to v8 (major) (redwoodjs#11235)
- Loading branch information
Showing
30 changed files
with
852 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
- chore: brought in typescript-eslint@v8 with stylistic preset (#10911) by @JoshuaKGoldberg | ||
|
||
This change updates Redwood linting config and introduces some changes to the linting rules that are applied to your project. | ||
|
||
Specifically: | ||
|
||
1. `jsx-a11y/no-noninteractive-element-to-interactive-role` has it's default config updated. | ||
3. `@typescript-eslint/explicit-function-return-type` used to be turned off, now it's no longer applied. | ||
4. `@typescript-eslint/no-empty-interface` - used to be turned off, now it's no longer applied. | ||
5. `@typescript-eslint/explicit-module-boundary-types` - used be turned off, now it's no longer applied. | ||
6. `@typescript-eslint/ban-types` - used to be 'warn', now it's no longer applied. This has been replaces with a set of smaller more specific rules. | ||
7. `no-empty-function` - used be turned off, now it's no longer applied. The ts-eslint flavour is still there and turned off still. | ||
8. `camelcase` - used to be turned off, now it's 'warn'. | ||
9. `@typescript-eslint/camelcase` - used to be turned off, now it's no longer applied. | ||
10. `no-use-before-define` - used to be turned off, now it's no longer applied. | ||
11. `@typescript-eslint/no-use-before-define` - used to be turned off, now it's no longer applied. | ||
12. `@typescript-eslint/prefer-namespace-keyword` - used to be turned off, now it's 'error' | ||
13. `unicode-bom` - used to be turned off, now it's no longer applied. | ||
14. `@typescript-eslint/adjacent-overload-signatures` - used to be 'error', now it's no longer applied. | ||
15. `@typescript-eslint/no-explicit-any` - used be 'warn', now 'error' | ||
16. `@typescript-eslint/no-inferrable-types` - used to be 'error', now it's no longer applied. | ||
17. `no-loss-of-precision` - used be 'off', now 'error' | ||
18. `@typescript-eslint/no-loss-of-precision` - used be 'error', now it's no longer applied. | ||
19. `@typescript-eslint/no-non-null-assertion` - used be 'warn', now it's no longer applied. | ||
20. `valid-typeof` - used be either 'error' or 'off', now always 'error' | ||
21. `no-unused-expressions` - used be always 'error', now either 'error' or 'off' | ||
22. `@typescript-eslint/prefer-function-type` - newly added as 'off' | ||
23. `@typescript-eslint/no-require-imports` - newly added as 'off' | ||
24. `@typescript-eslint/no-empty-object-type` - newly added as 'off' | ||
25. `unicorn/template-indent` - newly added as 'off' | ||
26. `@typescript-eslint/no-duplicate-enum-values` - newly added as 'error' | ||
27. `@typescript-eslint/no-unsafe-declaration-merging` - newly added as 'error' | ||
28. `@typescript-eslint/no-unsafe-function-type` - newly added as 'error' | ||
29. `@typescript-eslint/no-unused-expressions` - newly added as 'error' | ||
30. `@typescript-eslint/no-wrapper-object-types` - newly added as 'error' | ||
31. `no-new-native-nonconstructor` - newly added as 'off' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- fix: Update default tsconfig options (target, module and moduleResolution) (#11170) by @Josh-Walker-GM | ||
|
||
This changes the default values of: | ||
- target | ||
- module | ||
- moduleResolution | ||
|
||
in the tsconfig files for both the API and web side. The benefit of this change is increased correctness for build time checking of the imports from packages which specify `exports` in their `package.json` files. | ||
|
||
This change will have a limited effect while Redwood apps are still built to CJS rather than ESM. After that switch to ESM there would be more breaking changes but they are not applied here and are a future concern. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- fix(api-server): Use createServer in all cases, to make fastify config consistent (#11176) by @dac09 | ||
|
||
This PR removes all the cases where we use `createFastifyInstance` for the api server, and replaces it with `createServer`. | ||
[BREAKING] Removes serverConfig support, in favour of server file to configure your Fastify instance. | ||
You can still customise your server settings by running `yarn rw setup server-file` first. See docs for [Server File](https://docs.redwoodjs.com/docs/docker/#using-the-server-file) | ||
|
||
This makes sure that the API server config is always consistent - whether you use a server file or not. (createServer was only used when we had a server file before) | ||
This PR removes all the cases where we use `createFastifyInstance` for the api server, and replaces it with `createServer`. This makes sure that the API server config is always consistent - whether you use a server file or not. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.