The purpose of the eslint is linting javascript and typescript languages (js, ts, tsx).
This configuration targets monorepo packages.
-
Add workspace reference to
@muravjev/configs-eslint-tsand its peer dependencies:pnpm add -w @muravjev/configs-eslint-ts eslint
-
Add eslint configuration file:
// .eslintrc.js module.exports = require('@muravjev/configs-eslint-ts');
-
Add eslint ignore patterns file:
# .eslintignore !.* node_modules/ # Next ignore patterns .next/ .build/ .coverage/ # Custom ignore patterns ...
-
Add eslint scripts:
- Setup ➡ eslint vscode plugin to integrate
eslintwith vscode environment.
-
Automatic validation file with
eslinton save. -
Automatic validation of staged files with
eslinton commit. -
Manual usage from command line:
pnpm lint . pnpm lint:fix .
If you found this project helpful, consider
buying me a coffee, donate by paypal or just leave a star⭐
Thanks for your support, it is much appreciated!