This package provides my ESLint/Prettier config for my projects.
It's kinda newish with the introduction of the flat config, it will need to grow up a little.
To ensure installation of required peerDependencies, add to .npmrc
auto-install-peers=true
npm install wescfg
npx wescfg [-h] [-f]
- -h = show help
- -f = overwrite existing files
This will create the following configuration files:
- eslint.config.js
- prettier.config.js
- .prettierignore
- .editorconfig
"lint": "eslint . --fix",
"format": "prettier --write .",
Optionally, update the eslint.config.js
to fit your needs.
- ESLint standard recommended rules
- Typescript-eslint recommended rules
- Prettier integration and rules
- Some custom ESlint rules