modernize prettier config
This commit is contained in:
parent
99da2743d2
commit
e398d8bf1e
12 changed files with 43 additions and 27 deletions
|
@ -1,5 +1,7 @@
|
|||
import config from "@pompydev/prettier-config"
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...import("@pompydev/prettier-config"),
|
||||
export default {
|
||||
...config,
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
import pompydevPrettierConfig from "@pompydev/prettier-config" with { type: "json" }
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
export default {
|
||||
...pompydevPrettierConfig,
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
}
|
7
apps/list/prettier.config.js
Normal file
7
apps/list/prettier.config.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import config from "@pompydev/prettier-config"
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
export default {
|
||||
...config,
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
import pompydevPrettierConfig from "@pompydev/prettier-config" with { type: "json" }
|
||||
import config from "@pompydev/prettier-config"
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
export default {
|
||||
...pompydevPrettierConfig,
|
||||
...config,
|
||||
plugins: ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
|
||||
overrides: [
|
||||
...pompydevPrettierConfig.overrides,
|
||||
...config.overrides,
|
||||
{ files: "*.svelte", options: { parser: "svelte" } },
|
||||
],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue