Compare commits
2 commits
99da2743d2
...
c9feff8cd9
Author | SHA1 | Date | |
---|---|---|---|
c9feff8cd9 | |||
e398d8bf1e |
13 changed files with 48 additions and 27 deletions
|
@ -1 +0,0 @@
|
|||
"@pompydev/prettier-config"
|
|
@ -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"],
|
||||
}
|
|
@ -22,6 +22,11 @@ export default function Home() {
|
|||
if (postCards.length >= howMany) break
|
||||
|
||||
const content_id = contentMap.date[date][i]
|
||||
if (
|
||||
content_id ===
|
||||
"/posts/an-open-letter-to-the-war-brokers-community"
|
||||
)
|
||||
break
|
||||
|
||||
postCards.push(
|
||||
<PostCard
|
||||
|
|
|
@ -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" } },
|
||||
],
|
||||
}
|
|
@ -12,6 +12,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@pompydev/eslint-config": "workspace:*",
|
||||
"@pompydev/prettier-config": "workspace:*",
|
||||
"turbo": "2.4.4"
|
||||
},
|
||||
"//": "see devenv.nix, required for turborepo to work",
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"$schema": "http://json.schemastore.org/prettierrc",
|
||||
"tabWidth": 4,
|
||||
"semi": false,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.md", "*.yml"],
|
||||
"options": {
|
||||
"tabWidth": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@pompydev/prettier-config",
|
||||
"version": "0.0.0",
|
||||
"main": "index.json",
|
||||
"main": "./prettier.config.js",
|
||||
"devDependencies": {
|
||||
"prettier": "3.5.3"
|
||||
}
|
||||
|
|
5
packages/prettier-config/prettier.config.d.ts
vendored
Normal file
5
packages/prettier-config/prettier.config.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { config } from "prettier"
|
||||
|
||||
declare module "@pompydev/prettier-config"
|
||||
|
||||
export default config
|
13
packages/prettier-config/prettier.config.js
Normal file
13
packages/prettier-config/prettier.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/** @type {import("prettier").Options} */
|
||||
export default {
|
||||
tabWidth: 4,
|
||||
semi: false,
|
||||
overrides: [
|
||||
{
|
||||
files: ["*.md", "*.yml"],
|
||||
options: {
|
||||
tabWidth: 2,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
|
@ -11,6 +11,9 @@ importers:
|
|||
'@pompydev/eslint-config':
|
||||
specifier: workspace:*
|
||||
version: link:packages/eslint-config
|
||||
'@pompydev/prettier-config':
|
||||
specifier: workspace:*
|
||||
version: link:packages/prettier-config
|
||||
turbo:
|
||||
specifier: 2.4.4
|
||||
version: 2.4.4
|
||||
|
|
6
prettier.config.js
Normal file
6
prettier.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import config from "@pompydev/prettier-config"
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
export default {
|
||||
...config,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue