@carlos3g/create-config
v0.1.0
Published
Scaffold a project onto carlos3g's shared ESLint, Prettier, TypeScript and commitlint config.
Maintainers
Readme
@carlos3g/create-config
Scaffold a project onto carlos3g's code style
in one command — ESLint, Prettier, TypeScript, commitlint, EditorConfig and
husky git hooks, all wired to the @carlos3g/* config packages.
npm create @carlos3g/configIt prompts for the stack, then writes the config and prints the install command. Non-interactive:
npm create @carlos3g/config -- --stack nestStacks
| Stack | ESLint preset | TypeScript base |
| ------- | ------------- | ------------------------------------------ |
| nest | nest | @carlos3g/tsconfig/nestjs.json |
| react | react | @carlos3g/tsconfig/vite-react.json |
| expo | expo | expo/tsconfig.base + react-native.json |
| node | base | @carlos3g/tsconfig/node.json |
What it does
- Writes
eslint.config.mjs,tsconfig.json,.editorconfig,.nvmrc,.commitlintrc.json,.lintstagedrc.json,.prettierignoreand the.husky/pre-commit+.husky/commit-msghooks. - Adds the
prettierkey andlint/format/preparescripts topackage.json— without clobbering anything already there. - Prints the exact dev-dependency install command for your package manager.
Existing files are kept untouched unless you pass --force.
Options
-s, --stack <name> Pick the stack without the prompt (nest|react|expo|node).
-f, --force Overwrite config files that already exist.
-h, --help Show help.License
MIT © carlos3g
