mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:13:25 +00:00
26 lines
693 B
JavaScript
26 lines
693 B
JavaScript
/** @typedef {import("prettier").Config} PrettierConfig */
|
|
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
|
|
|
/** @type { PrettierConfig | SortImportsConfig } */
|
|
const config = {
|
|
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
|
importOrder: [
|
|
"<TYPES>",
|
|
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
|
|
"^(expo(.*)$)|^(expo$)",
|
|
"<THIRD_PARTY_MODULES>",
|
|
"",
|
|
"<TYPES>^@movie-web",
|
|
"^@movie-web/(.*)$",
|
|
"",
|
|
"<TYPES>^[.|..|~]",
|
|
"^~/",
|
|
"^[../]",
|
|
"^[./]",
|
|
],
|
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
|
importOrderTypeScriptVersion: "4.4.0",
|
|
};
|
|
|
|
export default config;
|