0.0.12
This commit is contained in:
parent
d83744ed6e
commit
91d4573bff
14 changed files with 442 additions and 217 deletions
4
cfg/eslint.config.ts
Normal file
4
cfg/eslint.config.ts
Normal 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
8
cfg/knip.config.ts
Normal 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
5
cfg/prettier.config.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { configWordPress } from "../dist/index.mjs";
|
||||
|
||||
export default {
|
||||
...configWordPress,
|
||||
};
|
||||
4
cfg/prettierignore
Normal file
4
cfg/prettierignore
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.cache
|
||||
bun.lock
|
||||
dist
|
||||
node_modules
|
||||
41
cfg/treefmt.toml
Normal file
41
cfg/treefmt.toml
Normal 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
14
cfg/tsdown.config.ts
Normal 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,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue