isaacscript 3.6.49 → 3.6.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/file-templates/dynamic/.github/workflows/ci.yml +1 -1
  2. package/file-templates/dynamic/package.mod.json +1 -1
  3. package/file-templates/static-mod/lint.sh +2 -2
  4. package/file-templates/static-mod/prettier.config.mjs +36 -0
  5. package/file-templates/static-ts/lint.sh +2 -2
  6. package/file-templates/static-ts/prettier.config.mjs +21 -0
  7. package/package.json +6 -7
  8. package/schemas/isaacscript-schema.json +8 -8
  9. package/src/checkForWindowsTerminalBugs.js +2 -2
  10. package/src/checkForWindowsTerminalBugs.js.map +1 -1
  11. package/src/classes/Config.js +3 -1
  12. package/src/classes/Config.js.map +1 -1
  13. package/src/classes/ValidatedConfig.js +3 -0
  14. package/src/classes/ValidatedConfig.js.map +1 -0
  15. package/src/commands/check/check.js +6 -6
  16. package/src/commands/check/check.js.map +1 -1
  17. package/src/commands/copy/copy.js.map +1 -1
  18. package/src/commands/init/checkIfProjectPathExists.js +2 -2
  19. package/src/commands/init/checkIfProjectPathExists.js.map +1 -1
  20. package/src/commands/init/checkModSubdirectory.js +2 -2
  21. package/src/commands/init/checkModSubdirectory.js.map +1 -1
  22. package/src/commands/init/checkModTargetDirectory.js +2 -2
  23. package/src/commands/init/checkModTargetDirectory.js.map +1 -1
  24. package/src/commands/init/createProject.js +4 -4
  25. package/src/commands/init/createProject.js.map +1 -1
  26. package/src/commands/init/getAuthorName.js +2 -2
  27. package/src/commands/init/getAuthorName.js.map +1 -1
  28. package/src/commands/init/getModsDir.js +6 -6
  29. package/src/commands/init/getModsDir.js.map +1 -1
  30. package/src/commands/init/getProjectPath.js +7 -7
  31. package/src/commands/init/getProjectPath.js.map +1 -1
  32. package/src/commands/init/installVSCodeExtensions.js +2 -2
  33. package/src/commands/init/installVSCodeExtensions.js.map +1 -1
  34. package/src/commands/init/promptSaveSlot.js +2 -2
  35. package/src/commands/init/promptSaveSlot.js.map +1 -1
  36. package/src/commands/monitor/copyWatcherMod.js.map +1 -1
  37. package/src/commands/monitor/monitor.js +15 -14
  38. package/src/commands/monitor/monitor.js.map +1 -1
  39. package/src/commands/monitor/spawnSaveDatWriter.js +3 -3
  40. package/src/commands/monitor/spawnSaveDatWriter.js.map +1 -1
  41. package/src/commands/monitor/touchWatcherSaveDatFiles.js.map +1 -1
  42. package/src/commands/publish/isaacscriptMod.js.map +1 -1
  43. package/src/commands/publish/prePublish.js +3 -3
  44. package/src/commands/publish/prePublish.js.map +1 -1
  45. package/src/commands/publish/publish.js.map +1 -1
  46. package/src/commands/publish/validate.js +7 -7
  47. package/src/commands/publish/validate.js.map +1 -1
  48. package/src/common.js +10 -10
  49. package/src/common.js.map +1 -1
  50. package/src/configFile.js +2 -2
  51. package/src/configFile.js.map +1 -1
  52. package/src/customStage.js +22 -22
  53. package/src/customStage.js.map +1 -1
  54. package/src/dev.js +2 -2
  55. package/src/dev.js.map +1 -1
  56. package/src/enums/DoorSlotFlag.js.map +1 -1
  57. package/src/exec.js +8 -8
  58. package/src/exec.js.map +1 -1
  59. package/src/file.js +12 -12
  60. package/src/file.js.map +1 -1
  61. package/src/isaacScriptCommonTS.js +183 -0
  62. package/src/isaacScriptCommonTS.js.map +1 -0
  63. package/src/json.js +5 -5
  64. package/src/json.js.map +1 -1
  65. package/src/main.js +2 -2
  66. package/src/main.js.map +1 -1
  67. package/src/packageManager.js +7 -7
  68. package/src/packageManager.js.map +1 -1
  69. package/src/prompt.js +8 -8
  70. package/src/prompt.js.map +1 -1
  71. package/src/tsconfig.js +14 -14
  72. package/src/tsconfig.js.map +1 -1
  73. package/src/utils.js +1 -3
  74. package/src/utils.js.map +1 -1
  75. package/src/validateNodeVersion.js +3 -3
  76. package/src/validateNodeVersion.js.map +1 -1
  77. package/src/version.js +2 -2
  78. package/src/version.js.map +1 -1
  79. package/file-templates/static-mod/.prettierrc.cjs +0 -49
  80. package/file-templates/static-ts/.prettierrc.cjs +0 -37
@@ -1,49 +0,0 @@
1
- // This is the configuration file for Prettier, the auto-formatter:
2
- // https://prettier.io/docs/en/configuration.html
3
-
4
- /** @type {import("prettier").Config} */
5
- const config = {
6
- // Always print trailing commas:
7
- // https://prettier.io/docs/en/options.html#trailing-commas
8
- // The default is "es5" (only having trailing commas where valid in ES5). However, always having
9
- // trailing commas is objectively better. The Airbnb style guide agrees:
10
- // https://github.com/airbnb/javascript#commas--dangling
11
- // Prettier itself also acknowledges Nik Graf's blog in their official blog:
12
- // https://prettier.io/blog/2020/03/21/2.0.0.html
13
- // https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8
14
- // Prettier will change the default in the future:
15
- // https://github.com/prettier/prettier/issues/9369
16
- trailingComma: "all",
17
-
18
- // We want to always use "lf" to be consistent with all platforms.
19
- endOfLine: "lf",
20
-
21
- // Allow proper formatting of JSONC files:
22
- // https://github.com/prettier/prettier/issues/5708
23
- overrides: [
24
- {
25
- files: ["**/.vscode/*.json", "**/tsconfig.json", "**/tsconfig.*.json"],
26
- options: {
27
- parser: "json5",
28
- quoteProps: "preserve",
29
- },
30
- },
31
- {
32
- files: ["**/*.xml"],
33
- options: {
34
- printWidth: 1000000,
35
- },
36
- },
37
- ],
38
-
39
- // Allow proper formatting of XML files:
40
- // https://github.com/prettier/plugin-xml#configuration
41
- // The default is "struct". However, whitespace cannot be reformatted unless this is set to
42
- // "ignore".
43
- xmlWhitespaceSensitivity: "ignore",
44
-
45
- // `pnpm` requires that the plugin is explicitly loaded.
46
- plugins: [require.resolve("prettier-plugin-organize-imports")],
47
- };
48
-
49
- module.exports = config;
@@ -1,37 +0,0 @@
1
- // This is the configuration file for Prettier, the auto-formatter:
2
- // https://prettier.io/docs/en/configuration.html
3
-
4
- /** @type {import("prettier").Config} */
5
- const config = {
6
- // Always print trailing commas:
7
- // https://prettier.io/docs/en/options.html#trailing-commas
8
- // The default is "es5" (only having trailing commas where valid in ES5). However, always having
9
- // trailing commas is objectively better. The Airbnb style guide agrees:
10
- // https://github.com/airbnb/javascript#commas--dangling
11
- // Prettier itself also acknowledges Nik Graf's blog in their official blog:
12
- // https://prettier.io/blog/2020/03/21/2.0.0.html
13
- // https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8
14
- // Prettier will change the default in the future:
15
- // https://github.com/prettier/prettier/issues/9369
16
- trailingComma: "all",
17
-
18
- // We want to always use "lf" to be consistent with all platforms.
19
- endOfLine: "lf",
20
-
21
- // Allow proper formatting of JSONC files:
22
- // https://github.com/prettier/prettier/issues/5708
23
- overrides: [
24
- {
25
- files: ["**/.vscode/*.json", "**/tsconfig.json", "**/tsconfig.*.json"],
26
- options: {
27
- parser: "json5",
28
- quoteProps: "preserve",
29
- },
30
- },
31
- ],
32
-
33
- // `pnpm` requires that the plugin is explicitly loaded.
34
- plugins: [require.resolve("prettier-plugin-organize-imports")],
35
- };
36
-
37
- module.exports = config;