| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Shared ECMAScript Config (TypeScript, oxlint, oxfmt)
Install
pnpm add -D @nihalgonsalves/esconfig typescript oxlint oxlint-tsgolint oxfmttsconfig.json
{
"extends": "@nihalgonsalves/esconfig/tsconfig.shared.json",
"compilerOptions": {
"outDir": "./build",
"rootDir": "./src"
},
"include": ["./src"]
}copy .oxfmtrc.json (does not support extends)
.oxlintrc.json
package.json
{
"scripts": {
"build": "tsc",
"lint": "oxlint",
"format": "oxfmt",
"format:check": "oxfmt --check"
}
}Done! Don't forget to run build, lint and format:check in your CI workflow.
| Back | FazBrowse Home | New Git URL |
{ "extends": [ "node_modules/@nihalgonsalves/esconfig/.oxlintrc.json", // optional: "node_modules/@nihalgonsalves/esconfig/.oxlintrc.react.json", ], }