Skip to content

Commit

Permalink
feat(preset): include all file types supported by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
keplersj committed Aug 26, 2019
1 parent c4c5283 commit bb1f1c3
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 39 deletions.
76 changes: 50 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,41 @@ In your `package.json`
"runner": "prettier",
"moduleFileExtensions": [
"js",
"mjs",
"jsx",
"json",
"vue",
"ts",
"tsx",
"css",
"less",
"scss",
"html",
"json",
"graphql",
"md",
"markdown"
"markdown",
"mdx",
"yaml",
"yml"
],
"testMatch": [
"**/*.js",
"**/*.jsx",
"**/*.json",
"**/*.ts",
"**/*.tsx",
"**/*.css",
"**/*.less",
"**/*.scss",
"**/*.graphql",
"**/*.md",
"**/*.markdown"
"**/*js",
"**/*mjs",
"**/*jsx",
"**/*vue",
"**/*ts",
"**/*tsx",
"**/*css",
"**/*less",
"**/*scss",
"**/*html",
"**/*json",
"**/*graphql",
"**/*md",
"**/*markdown",
"**/*mdx",
"**/*yaml",
"**/*yml"
]
}
}
Expand All @@ -99,29 +111,41 @@ module.exports = {
runner: "prettier",
moduleFileExtensions: [
"js",
"mjs",
"jsx",
"json",
"vue",
"ts",
"tsx",
"css",
"less",
"scss",
"html",
"json",
"graphql",
"md",
"markdown"
"markdown",
"mdx",
"yaml",
"yml"
],
testMatch: [
"**/*.js",
"**/*.jsx",
"**/*.json",
"**/*.ts",
"**/*.tsx",
"**/*.css",
"**/*.less",
"**/*.scss",
"**/*.graphql",
"**/*.md",
"**/*.markdown"
"**/*js",
"**/*mjs",
"**/*jsx",
"**/*vue",
"**/*ts",
"**/*tsx",
"**/*css",
"**/*less",
"**/*scss",
"**/*html",
"**/*json",
"**/*graphql",
"**/*md",
"**/*markdown",
"**/*mdx",
"**/*yaml",
"**/*yml"
]
};
```
Expand Down
38 changes: 25 additions & 13 deletions jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,40 @@ module.exports = {
runner: "prettier",
moduleFileExtensions: [
"js",
"mjs",
"jsx",
"json",
"vue",
"ts",
"tsx",
"css",
"less",
"scss",
"html",
"json",
"graphql",
"md",
"markdown"
"markdown",
"mdx",
"yaml",
"yml"
],
testMatch: [
"**/*.js",
"**/*.jsx",
"**/*.json",
"**/*.ts",
"**/*.tsx",
"**/*.css",
"**/*.less",
"**/*.scss",
"**/*.graphql",
"**/*.md",
"**/*.markdown"
"**/*js",
"**/*mjs",
"**/*jsx",
"**/*vue",
"**/*ts",
"**/*tsx",
"**/*css",
"**/*less",
"**/*scss",
"**/*html",
"**/*json",
"**/*graphql",
"**/*md",
"**/*markdown",
"**/*mdx",
"**/*yaml",
"**/*yml"
]
};

0 comments on commit bb1f1c3

Please sign in to comment.