16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
const prettier = require("prettier/local");
|
|
const parsers = prettier
|
|
.getSupportInfo()
|
|
.options.find(option => option.name === "parser");
|
|
|
|
run_spec(
|
|
__dirname,
|
|
parsers.choices
|
|
.filter(choice => !choice.deprecated)
|
|
.map(choice => choice.value)
|
|
.filter(
|
|
parser =>
|
|
["json", "json5", "json-stringify", "graphql"].indexOf(parser) === -1
|
|
)
|
|
);
|