https://github.com/nihalgonsalves/esconfig
Shared personal ECMAScript Config (TS, Lint, Prettier)
https://github.com/nihalgonsalves/esconfig
Last synced: 3 months ago
JSON representation
Shared personal ECMAScript Config (TS, Lint, Prettier)
- Host: GitHub
- URL: https://github.com/nihalgonsalves/esconfig
- Owner: nihalgonsalves
- License: mit
- Created: 2021-04-25T12:55:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2026-04-02T11:43:17.000Z (4 months ago)
- Last Synced: 2026-04-03T03:22:42.767Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.19 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# esconfig
Shared ECMAScript Config (TypeScript, oxlint, oxfmt)
## Usage
1. Install
```sh
pnpm add -D @nihalgonsalves/esconfig typescript oxlint oxlint-tsgolint oxfmt
```
2. `tsconfig.json`
```json
{
"extends": "@nihalgonsalves/esconfig/tsconfig.shared.json",
"compilerOptions": {
"outDir": "./build",
"rootDir": "./src"
},
"include": ["./src"]
}
```
3. copy [`.oxlintrc.json`](./.oxlintrc.json)
4. `.oxlintrc.json`
```jsonc
{
"extends": [
"node_modules/@nihalgonsalves/esconfig/.oxlintrc.json",
// optional:
"node_modules/@nihalgonsalves/esconfig/.oxlintrc.react.json",
],
}
```
5. `package.json`
```json
{
"scripts": {
"build": "tsc",
"lint": "oxlint",
"format": "oxfmt",
"format:check": "oxfmt --check"
}
}
```
6. Done! Don't forget to run `build`, `lint` and `format:check` in your CI workflow.