UNPKG

isaacscript

Version:

A command line tool for managing Isaac mods written in TypeScript.

132 lines (117 loc) 4.27 kB
// These are Visual Studio Code settings that should apply to this particular repository. { // ---------------- // Vanilla settings // ---------------- // This matches the Airbnb JavaScript style guide. "editor.rulers": [100], "editor.tabSize": 2, "files.associations": { "*.anm2": "xml", // anm2 files are just XML files. "*.dat": "json", // Nearly all mods save JSON to the "save#.dat" file. ".env*": "shellscript", // e.g. ".env.example" is the same as ".env". }, // We want to always use "lf" to be consistent with all platforms. "files.eol": "\n", // Automatically remove all trailing whitespace when saving a file. "files.trimTrailingWhitespace": true, // Configure glob patterns for excluding files and folders in full text searches and quick open. "search.exclude": { "**/*.mp3": true, "**/*.png": true, "**/*.svg": true, "**/*.wav": true, "**/.yarn/": true, "**/dist/": true, "**/node_modules/": true, "bun.lock": true, "LICENSE": true, "package-lock.json": true, "pnpm-lock.yaml": true, "yarn.lock": true, }, // ------------------ // Extension settings // ------------------ // Use Prettier to format "cspell.config.jsonc". "cSpell.autoFormatConfigFile": true, // Change all ESLint errors to have yellow squigglies instead of red squigglies. // https://www.joshuakgoldberg.com/blog/if-i-wrote-a-linter-part-2-developer-experience/#only-errors "eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], // ----------------- // Language settings // ----------------- // By default, VSCode will not automatically fill-in function arguments. "javascript.suggest.completeFunctionCalls": true, "typescript.suggest.completeFunctionCalls": true, // By default, VSCode will prefer non-relative paths for deeply nested files. "javascript.preferences.importModuleSpecifier": "project-relative", "typescript.preferences.importModuleSpecifier": "project-relative", // By default, VSCode will not add `import type` automatically. "typescript.preferences.preferTypeOnlyAutoImports": true, // Show TypeScript errors for files that don't happen to be currently open, which makes TypeScript // work similar to other compiled languages like Golang or Rust. "typescript.tsserver.experimental.enableProjectDiagnostics": true, // Automatically run the formatter when certain files are saved. We intentionally do not group // languages together because of this bug: https://github.com/microsoft/vscode/issues/168411 "[javascript]": { "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", }, "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[typescript]": { "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", }, "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[javascriptreact]": { "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", }, "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[typescriptreact]": { "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", }, "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[css]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[html]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[json]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[jsonc]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[markdown]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[postcss]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[xml]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, "[yaml]": { "editor.defaultFormatter": "prettier.prettier-vscode", "editor.formatOnSave": true, }, }