mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 15:03:26 +00:00
36 lines
1014 B
JavaScript
36 lines
1014 B
JavaScript
import { fileURLToPath } from "url";
|
|
|
|
/** @typedef {import("prettier").Config} PrettierConfig */
|
|
/** @typedef {import("prettier-plugin-tailwindcss").PluginOptions} TailwindConfig */
|
|
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
|
|
|
/** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */
|
|
const config = {
|
|
plugins: [
|
|
"@ianvs/prettier-plugin-sort-imports",
|
|
"prettier-plugin-tailwindcss",
|
|
],
|
|
tailwindConfig: fileURLToPath(
|
|
new URL("../../tooling/tailwind/web.ts", import.meta.url),
|
|
),
|
|
tailwindFunctions: ["cn", "cva"],
|
|
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;
|