Last active
February 27, 2022 21:25
-
-
Save nirtamir2/8833046af60233e5f5557d5bc2352579 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
require.resolve("@trivago/prettier-plugin-sort-imports"), | |
require.resolve("prettier-plugin-packagejson"), | |
require.resolve("@nirtamir2/prettier-plugin-css-order"), | |
], | |
// @see https://github.com/trivago/prettier-plugin-sort-imports | |
importOrder: [ | |
"^react$", | |
"<THIRD_PARTY_MODULES>", | |
// Internal modules | |
"^@core/(.*)$", | |
"^@server/(.*)$", | |
"^@ui/(.*)$", | |
"^@*/(.*)$", | |
// Relative imports | |
"^[./]", | |
], | |
overrides: [ | |
{ | |
files: "*.svg", | |
options: { | |
parser: "html", | |
}, | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The package.json script for prettier is