fix .prettierignore (jsfmt.spec.js files were ignored)
This commit is contained in:
1 parent
c2c702d2ad
commit
605e57dd3e
17 files changed
+34
-34
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
dist/
|
||||
.cache/
|
||||
coverage/
|
||||
/tests/
|
||||
/tests/**/*.*
|
||||
!/tests/**/jsfmt.spec.js
|
||||
/tests_integration/cli/
|
||||
/tests_integration/plugins/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
run_spec(__dirname, ["babel", "flow", "typescript"]);
|
||||
run_spec(__dirname, ["babel", "flow", "typescript"], {
|
||||
trailingComma: "all"
|
||||
trailingComma: "all",
|
||||
});
|
||||
run_spec(__dirname, ["babel", "flow", "typescript"], {
|
||||
arrowParens: "always"
|
||||
arrowParens: "always",
|
||||
});
|
||||
@@ -1,3 +1,3 @@
|
||||
run_spec(__dirname, ["flow", "babel", "typescript"], {
|
||||
jsxBracketSameLine: true
|
||||
jsxBracketSameLine: true,
|
||||
});
|
||||
@@ -7,7 +7,7 @@ test("translates cursor correctly in basic case", () => {
|
||||
prettier.formatWithCursor(" 1", { parser: "babel", cursorOffset: 2 })
|
||||
).toEqual({
|
||||
formatted: "1;\n",
|
||||
cursorOffset: 1
|
||||
cursorOffset: 1,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ test("positions cursor relative to closest node, not SourceElement", () => {
|
||||
prettier.formatWithCursor(code, { parser: "babel", cursorOffset: 15 })
|
||||
).toEqual({
|
||||
formatted: "return 15;\n",
|
||||
cursorOffset: 7
|
||||
cursorOffset: 7,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -27,7 +27,7 @@ test("keeps cursor inside formatted node", () => {
|
||||
prettier.formatWithCursor(code, { parser: "babel", cursorOffset: 14 })
|
||||
).toEqual({
|
||||
formatted: "return 15;\n",
|
||||
cursorOffset: 7
|
||||
cursorOffset: 7,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -43,6 +43,6 @@ foo('bar', cb => {
|
||||
console.log("stuff");
|
||||
});
|
||||
`,
|
||||
cursorOffset: 25
|
||||
cursorOffset: 25,
|
||||
});
|
||||
});
|
||||
@@ -1,11 +1,11 @@
|
||||
const prettier = require("prettier/local");
|
||||
const parsers = prettier
|
||||
.getSupportInfo()
|
||||
.options.find(option => option.name === "parser");
|
||||
.options.find((option) => option.name === "parser");
|
||||
|
||||
run_spec(
|
||||
__dirname,
|
||||
parsers.choices
|
||||
.filter(choice => !choice.deprecated)
|
||||
.map(choice => choice.value)
|
||||
.filter((choice) => !choice.deprecated)
|
||||
.map((choice) => choice.value)
|
||||
);
|
||||
@@ -1,16 +1,16 @@
|
||||
run_spec(__dirname, ["flow", "babel", "typescript"], {
|
||||
singleQuote: false,
|
||||
jsxSingleQuote: false
|
||||
jsxSingleQuote: false,
|
||||
});
|
||||
run_spec(__dirname, ["flow", "babel", "typescript"], {
|
||||
singleQuote: false,
|
||||
jsxSingleQuote: true
|
||||
jsxSingleQuote: true,
|
||||
});
|
||||
run_spec(__dirname, ["flow", "babel", "typescript"], {
|
||||
singleQuote: true,
|
||||
jsxSingleQuote: false
|
||||
jsxSingleQuote: false,
|
||||
});
|
||||
run_spec(__dirname, ["flow", "babel", "typescript"], {
|
||||
singleQuote: true,
|
||||
jsxSingleQuote: true
|
||||
jsxSingleQuote: true,
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
run_spec(__dirname, ["babel", "flow", "typescript"]);
|
||||
run_spec(__dirname, ["babel", "flow", "typescript"], {
|
||||
htmlWhitespaceSensitivity: "ignore"
|
||||
htmlWhitespaceSensitivity: "ignore",
|
||||
});
|
||||
@@ -1,15 +1,15 @@
|
||||
run_spec(__dirname, ["flow", "babel"], {
|
||||
quoteProps: "as-needed"
|
||||
quoteProps: "as-needed",
|
||||
});
|
||||
|
||||
run_spec(__dirname, ["flow", "babel"], {
|
||||
quoteProps: "preserve"
|
||||
quoteProps: "preserve",
|
||||
});
|
||||
|
||||
run_spec(__dirname, ["flow", "babel"], {
|
||||
quoteProps: "consistent"
|
||||
quoteProps: "consistent",
|
||||
});
|
||||
run_spec(__dirname, ["flow", "babel"], {
|
||||
quoteProps: "consistent",
|
||||
singleQuote: true
|
||||
singleQuote: true,
|
||||
});
|
||||
@@ -1,11 +1,11 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
quoteProps: "as-needed"
|
||||
quoteProps: "as-needed",
|
||||
});
|
||||
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
quoteProps: "preserve"
|
||||
quoteProps: "preserve",
|
||||
});
|
||||
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
quoteProps: "consistent"
|
||||
quoteProps: "consistent",
|
||||
});
|
||||
@@ -2,6 +2,6 @@ run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: [
|
||||
"downlevelLetConst1.ts",
|
||||
"errorOnInitializerInInterfaceProperty.ts",
|
||||
"modifiersOnInterfaceIndexSignature1.ts"
|
||||
]
|
||||
"modifiersOnInterfaceIndexSignature1.ts",
|
||||
],
|
||||
});
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: ["classAbstractMixedWithModifiers.ts"]
|
||||
disableBabelTS: ["classAbstractMixedWithModifiers.ts"],
|
||||
});
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: ["readonlyInConstructorParameters.ts", "readonlyReadonly.ts"]
|
||||
disableBabelTS: ["readonlyInConstructorParameters.ts", "readonlyReadonly.ts"],
|
||||
});
|
||||
@@ -1,3 +1,3 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: ["functionOverloadErrorsSyntax.ts"]
|
||||
disableBabelTS: ["functionOverloadErrorsSyntax.ts"],
|
||||
});
|
||||
@@ -1,3 +1,3 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: ["abstractProperties.ts", "abstractPropertiesWithBreaks.ts"]
|
||||
disableBabelTS: ["abstractProperties.ts", "abstractPropertiesWithBreaks.ts"],
|
||||
});
|
||||
@@ -1,3 +1,3 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: ["constructor.ts", "generics.ts", "methods.ts"]
|
||||
disableBabelTS: ["constructor.ts", "generics.ts", "methods.ts"],
|
||||
});
|
||||
@@ -1,11 +1,11 @@
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
disableBabelTS: ["jsdoc_only_types.ts", "index-signature.ts"]
|
||||
disableBabelTS: ["jsdoc_only_types.ts", "index-signature.ts"],
|
||||
});
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
trailingComma: "es5",
|
||||
disableBabelTS: ["jsdoc_only_types.ts", "index-signature.ts"]
|
||||
disableBabelTS: ["jsdoc_only_types.ts", "index-signature.ts"],
|
||||
});
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
trailingComma: "all",
|
||||
disableBabelTS: ["jsdoc_only_types.ts", "index-signature.ts"]
|
||||
disableBabelTS: ["jsdoc_only_types.ts", "index-signature.ts"],
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
run_spec(__dirname, ["typescript"], { disableBabelTS: ["abstract.ts"] });
|
||||
run_spec(__dirname, ["typescript"], {
|
||||
semi: false,
|
||||
disableBabelTS: ["abstract.ts"]
|
||||
disableBabelTS: ["abstract.ts"],
|
||||
});
|
||||
Reference in new issue
Block a user