@lou.codes/configs
v5.1.5
Published
⚙️ Project configurations
Downloads
43
Maintainers
Readme
⚙️ Shared project configuration files for linting, formatting, documentation and so on.
Configurations
- 🦋 changelog.cjs — Changesets changelog functions.
- 🚨 eslint.config.js — JavaScript and TypeScript linting.
- ✨ prettier.config.js — Code formatting.
- 🎨 stylelint.config.js — CSS linting.
- 🏷️ typescript.config.json — TypeScript configuration (strict).
- 📖 typedoc.config.json — Documentation configuration.
Usage
All this configurations are setup automatically by @lou.codes/create-package when creating a new package.
For manual setup of each file, use the examples below:
// .changeset/config.json
{
"$schema": "https://raw.githubusercontent.com/changesets/changesets/main/packages/config/schema.json",
"changelog": "@lou.codes/configs/changelog.cjs",
"commit": false,
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch"
}
// eslint.config.js
export { default } from "@lou.codes/configs/eslint.config.js";
// prettier.config.js
export { default } from "@lou.codes/configs/prettier.config.js";
// stylelint.config.js
export { default } from "@lou.codes/configs/stylelint.config.js";
// tsconfig.json
{
"extends": "@lou.codes/configs/typescript.config.json"
}
// typedoc.json
{
"$schema": "https://typedoc.org/schema.json",
"cname": "PUBLIC DOMAIN",
"entryPoints": ["./lib"],
"extends": ["@lou.codes/configs/typedoc.config.json"],
"name": "PACKAGE NAME"
}
Useful links
- ⏳ Changelog: List of changes between versions.