Configure automatic import sorting

This commit is contained in:
Tangent Wantwight 2023-08-25 19:16:33 -04:00
parent e538471611
commit ca5d64eca7
2 changed files with 9 additions and 5 deletions

View file

@ -10,6 +10,10 @@
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"importSorter.generalConfiguration.sortOnBeforeSave": true
},
"extensions": {
"recommendations": ["mike-co.import-sorter", "esbenp.prettier-vscode"]
}
}

View file

@ -10,12 +10,12 @@ import {
Use,
} from "./peg";
import {
Script,
Word as WordType,
TextWord,
EnchantedWord as EnchantedWordType,
SimplifyWord,
InterpolatedPiece,
Script,
SimplifyWord,
TextWord,
Word as WordType,
} from "./words";
const Comment = Regex(/#[^\n]*/y)