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.
- package/file-templates/dynamic/.github/workflows/ci.yml +1 -1
- package/file-templates/dynamic/package.mod.json +1 -1
- package/file-templates/static-mod/lint.sh +2 -2
- package/file-templates/static-mod/prettier.config.mjs +36 -0
- package/file-templates/static-ts/lint.sh +2 -2
- package/file-templates/static-ts/prettier.config.mjs +21 -0
- package/package.json +6 -7
- package/schemas/isaacscript-schema.json +8 -8
- package/src/checkForWindowsTerminalBugs.js +2 -2
- package/src/checkForWindowsTerminalBugs.js.map +1 -1
- package/src/classes/Config.js +3 -1
- package/src/classes/Config.js.map +1 -1
- package/src/classes/ValidatedConfig.js +3 -0
- package/src/classes/ValidatedConfig.js.map +1 -0
- package/src/commands/check/check.js +6 -6
- package/src/commands/check/check.js.map +1 -1
- package/src/commands/copy/copy.js.map +1 -1
- package/src/commands/init/checkIfProjectPathExists.js +2 -2
- package/src/commands/init/checkIfProjectPathExists.js.map +1 -1
- package/src/commands/init/checkModSubdirectory.js +2 -2
- package/src/commands/init/checkModSubdirectory.js.map +1 -1
- package/src/commands/init/checkModTargetDirectory.js +2 -2
- package/src/commands/init/checkModTargetDirectory.js.map +1 -1
- package/src/commands/init/createProject.js +4 -4
- package/src/commands/init/createProject.js.map +1 -1
- package/src/commands/init/getAuthorName.js +2 -2
- package/src/commands/init/getAuthorName.js.map +1 -1
- package/src/commands/init/getModsDir.js +6 -6
- package/src/commands/init/getModsDir.js.map +1 -1
- package/src/commands/init/getProjectPath.js +7 -7
- package/src/commands/init/getProjectPath.js.map +1 -1
- package/src/commands/init/installVSCodeExtensions.js +2 -2
- package/src/commands/init/installVSCodeExtensions.js.map +1 -1
- package/src/commands/init/promptSaveSlot.js +2 -2
- package/src/commands/init/promptSaveSlot.js.map +1 -1
- package/src/commands/monitor/copyWatcherMod.js.map +1 -1
- package/src/commands/monitor/monitor.js +15 -14
- package/src/commands/monitor/monitor.js.map +1 -1
- package/src/commands/monitor/spawnSaveDatWriter.js +3 -3
- package/src/commands/monitor/spawnSaveDatWriter.js.map +1 -1
- package/src/commands/monitor/touchWatcherSaveDatFiles.js.map +1 -1
- package/src/commands/publish/isaacscriptMod.js.map +1 -1
- package/src/commands/publish/prePublish.js +3 -3
- package/src/commands/publish/prePublish.js.map +1 -1
- package/src/commands/publish/publish.js.map +1 -1
- package/src/commands/publish/validate.js +7 -7
- package/src/commands/publish/validate.js.map +1 -1
- package/src/common.js +10 -10
- package/src/common.js.map +1 -1
- package/src/configFile.js +2 -2
- package/src/configFile.js.map +1 -1
- package/src/customStage.js +22 -22
- package/src/customStage.js.map +1 -1
- package/src/dev.js +2 -2
- package/src/dev.js.map +1 -1
- package/src/enums/DoorSlotFlag.js.map +1 -1
- package/src/exec.js +8 -8
- package/src/exec.js.map +1 -1
- package/src/file.js +12 -12
- package/src/file.js.map +1 -1
- package/src/isaacScriptCommonTS.js +183 -0
- package/src/isaacScriptCommonTS.js.map +1 -0
- package/src/json.js +5 -5
- package/src/json.js.map +1 -1
- package/src/main.js +2 -2
- package/src/main.js.map +1 -1
- package/src/packageManager.js +7 -7
- package/src/packageManager.js.map +1 -1
- package/src/prompt.js +8 -8
- package/src/prompt.js.map +1 -1
- package/src/tsconfig.js +14 -14
- package/src/tsconfig.js.map +1 -1
- package/src/utils.js +1 -3
- package/src/utils.js.map +1 -1
- package/src/validateNodeVersion.js +3 -3
- package/src/validateNodeVersion.js.map +1 -1
- package/src/version.js +2 -2
- package/src/version.js.map +1 -1
- package/file-templates/static-mod/.prettierrc.cjs +0 -49
- 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;
|