This commit is contained in:
gcch 2026-03-18 17:28:39 +01:00
commit c0620280e6
13 changed files with 237 additions and 127 deletions

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

@ -0,0 +1,5 @@
import { defineConfig } from "eslint/config";
import { configAstro } from "../dist/index.mjs";
export default defineConfig([...configAstro]);

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 { configClassique } from "@gcch/configuration-prettier";
export default {
...configClassique,
};

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

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

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