@jpapini/eslint-config
v1.4.8
Published
Custom ESLint configuration for JavaScript and TypeScript projects.
Downloads
159
Maintainers
Readme
ESLint configuration
Custom ESLint configuration for JavaScript and TypeScript projects.
Additional configurations are available for:
- React projects:
@jpapini/eslint-config/react
- Nest.js projects:
@jpapini/eslint-config/nest
How to use
- Install the package and its required peer dependencies:
pnpm add -D @jpapini/eslint-config eslint@^8
[!WARNING] Use ESLint version 8, because the configuration is not compatible with version 9.
- Edit your
package.json
file to include the following:
{
"scripts": {
"lint:eslint": "eslint --cache --cache-location node_modules/.cache/eslint/.eslintcache .",
"format:eslint": "eslint --cache --cache-location node_modules/.cache/eslint/.eslintcache --fix ."
},
"eslintConfig": {
"extends": "@jpapini/eslint-config"
}
}
- Add a
.eslintignore
file with the following content:
### Jetbrains IDEs ###
.idea
### Visual Studio Code ###
.vscode
### Dependencies ###
node_modules
.pnpm-store
### Cache ###
.turbo
### Compiled outputs ###
dist
generated
### Tests ###
coverage
### Temporary ###
old
*.timestamp-*
Author
- Julien Papini [email protected]