Skip to content

Commit

Permalink
Fix: インポート時のトラック順を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Dec 14, 2024
1 parent e0d3869 commit abb5336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const tsEslintRules = {
// TODO: いずれは有効化する
"@typescript-eslint/require-await": "off",

// ミスが起こりやすいため有効化
"@typescript-eslint/require-array-sort-compare": "error",

"@typescript-eslint/no-misused-promises": [
"error",
{
Expand Down Expand Up @@ -44,11 +47,7 @@ module.exports = {
plugins: ["import"],
parser: vueEslintParser,
parserOptions: vueEslintParserOptions,
ignorePatterns: [
"dist/**/*",
"dist_*/**/*",
"node_modules/**/*",
],
ignorePatterns: ["dist/**/*", "dist_*/**/*", "node_modules/**/*"],
rules: {
"linebreak-style":
process.env.NODE_ENV === "production" && process.platform !== "win32"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/ImportSongProjectDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const handleImportTrack = () => {
throw new Error("project or selected track is not set");
}
// トラックをインポート
const trackIndexes = selectedTrackIndexes.value.toSorted();
const trackIndexes = selectedTrackIndexes.value.toSorted((a, b) => a - b);
if (project.value.type === "vvproj") {
void store.actions.COMMAND_IMPORT_VOICEVOX_PROJECT({
project: project.value.project,
Expand Down

0 comments on commit abb5336

Please sign in to comment.