This commit is contained in:
gcch 2026-03-14 13:39:45 +01:00
commit 91d4573bff
14 changed files with 442 additions and 217 deletions

4
cfg/eslint.config.ts Normal file
View file

@ -0,0 +1,4 @@
import { configTypescriptNavigateur } from "@gcch/configuration-eslint";
import { defineConfig } from "eslint/config";
export default defineConfig([...configTypescriptNavigateur]);

8
cfg/knip.config.ts Normal file
View file

@ -0,0 +1,8 @@
import type { KnipConfig } from "knip";
const config: Readonly<KnipConfig> = {
entry: ["index.ts!"],
project: ["**/*.{js,ts}"],
};
export default config;

5
cfg/prettier.config.ts Normal file
View file

@ -0,0 +1,5 @@
import { configWordPress } from "../dist/index.mjs";
export default {
...configWordPress,
};

4
cfg/prettierignore Normal file
View file

@ -0,0 +1,4 @@
.cache
bun.lock
dist
node_modules

41
cfg/treefmt.toml Normal file
View file

@ -0,0 +1,41 @@
allow-missing-formatter = true
excludes = [".{gitignore,prettierignore}", "*.lock"]
on-unmatched = "info"
verbose = 2
# fail-on-change = true
# -- Formatters --
# dprint
# JSON(C), Markdown
[formatter.dprint]
command = "dprint"
excludes = []
includes = [
"*.fish",
"*.kdl",
"*.md",
"*.rs",
"*.{css,scss}",
"*.{html,twig}",
"*.{js,mjs}",
"*.{json,jsonc}",
"*.{ts,mts,tsx,astro}",
"*.{yaml}"
]
options = ["fmt", "--config", "/home/gcch/.config/dprint/dprint.jsonc"]
priority = 0
[formatter.justfile]
command = "just"
includes = ["justfile"]
options = ["--unstable", "--fmt", "-f"]
priority = 1
# TOML
[formatter.tombi]
command = "tombi"
excludes = []
includes = ["*.toml"]
options = ["format"]
priority = 1

14
cfg/tsdown.config.ts Normal file
View file

@ -0,0 +1,14 @@
import { defineConfig } from "tsdown";
export default defineConfig({
clean: true,
dts: { oxc: true, parallel: true },
entry: ["../index.ts"],
minify: false,
nodeProtocol: true,
outDir: "../dist",
platform: "node",
sourcemap: false,
target: "esnext",
treeshake: true,
});