orukRed / tyranosyntax

vscodeで動くティラノスクリプト言語サポート拡張機能です。
https://orukred.github.io/TyranoScriptSyntax.html
MIT License
13 stars 3 forks source link

フォーマッタ適用(2) #162

Open botamochi0x12 opened 1 week ago

botamochi0x12 commented 1 week ago

ワークスペース内の次のファイルをフォーマットしましょう:

手順:

  1. (任意)npm ci または npm install を実行します。
  2. (任意)editor.formatOnSaveMode の値を modificationsIfAvailable から特定のファイル拡張子(例:[json])のために files に変更します。
  3. フォーマットしたいファイルを開きます(例:tsconfig.json を開く)。
  4. Ctrl + P を押してコマンド パレットを開きます。
  5. ファイル上で「Format Document (Forced)」コマンドを実行します。
  6. .prettierignore から関連する行を削除します(例:tsconfig.json の行を削除します)。
In English Formatting the files below in the workspace: - Format TypeScript and JavaScript files: - `eslint.config.mjs` - `webpack.config.js` - `src/**/*.ts` - `src/**/*.js` except `src/lib/tyrano_parser.js` - Format configuration files for this VSCode workspace: - `.vscode/*.json` - Format configuration files for the VSCode extension settings: - `tsconfig.json` - `snippet/*.json` - `syntaxes/*.json` - `contributes` in `package.json` - `Tooltip/*.json` - `language-configuration*.json` Steps: 1. (Optional) Execute `npm ci` or `npm install` 2. (Optional) Change the value of `editor.formatOnSaveMode` from `modificationsIfAvailable` to `file` for a specific file extension (e.g. `[json]`) 3. Open the file needed to format (e.g. Open `tsconfig.json`) 4. Open the command palette by pressing `Ctrl + P` 5. Run the command `Format Document (Forced)` on the file 6. Remove any relevant lines from `.prettierignore` (e.g. remove line for `tsconfig.json`)
botamochi0x12 commented 1 week ago

163 で tsconfig をフォーマットしました

orukRed commented 1 week ago

(ただし src/lib/tyrano_parser.js は除く)

上記文言を削除しました。 src/lib/tyrano_parser.jsは現在未使用(Parser.tsに置き換え)なため、ファイルごと削除します。