Revert "feat(flags): script arguments come after '--'" (#3681)

Due to complaints about ergonomics and because it breaks shebang on
linux.

This reverts commit 2d5457df15.

BREAKING CHANGE
This commit is contained in:
Ry Dahl 2020-01-15 19:21:35 -05:00 committed by GitHub
parent 3eab20ce42
commit a4dde552de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 82 additions and 78 deletions

View file

@ -25,8 +25,7 @@ const cmd = [
"--allow-run",
"--allow-write",
"--allow-read",
"./prettier/main.ts",
"--"
"./prettier/main.ts"
];
const testdata = join("prettier", "testdata");
@ -403,7 +402,6 @@ test(async function testPrettierWithAutoConfig(): Promise<void> {
"--allow-read",
"--allow-env",
prettierFile,
"--",
"../5.ts",
"--config",
"auto"
@ -470,7 +468,6 @@ test(async function testPrettierWithSpecifiedConfig(): Promise<void> {
"--allow-read",
"--allow-env",
prettierFile,
"--",
"../5.ts",
"--config",
config.name
@ -506,7 +503,6 @@ test(async function testPrettierWithAutoIgnore(): Promise<void> {
"--allow-read",
"--allow-env",
prettierFile,
"--",
"**/*",
"--ignore-path",
"auto"
@ -535,7 +531,6 @@ test(async function testPrettierWithSpecifiedIgnore(): Promise<void> {
"--allow-read",
"--allow-env",
prettierFile,
"--",
"**/*",
"--ignore-path",
"typescript.prettierignore"