@amisnl/lintconfig
v0.0.2
Published
Amis ESlint/Prettier setup
Keywords
Readme
AMIS eslint/prettier config
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.
note: this repository is not published yet, see you need to link it to work
Install
Setup peerDependencies
To ensure installation of required peerDependencies, add to .npmrc
auto-install-peers=trueInstall @amisnl/lintconfig
npm install @amisnl/lintconfig
Run init script
npx @amisnl/lintconfig [-h] [-f]
- -h = show help
- -f = overwrite existing files
This will create the following configuration files:
- eslint.config.js
- prettier.config.js
- .prettierignore
- .editorconfig
Create scripts in package.json
"lint": "eslint . --fix",
"format": "prettier --write .",Adapt
Optionally, update the eslint.config.js to fit your needs.
Implements
- ESLint standard recommended rules
- Typescript-eslint recommended rules
- Prettier integration and rules
- Some custom ESlint rules
