eslint

Linting is done by Webpack also in production mode. You only need this process to manually run linting, or run it's fix command for example.

Default command

eslint ./src/**/*.{js,jsx,ts,tsx}

CLI Options

https://eslint.org/docs/user-guide/command-line-interface

Examples

Default CLI

mhy eslint

Only lint one file

mhy eslint src/file.js

Fix fixable errors

mhy eslint --fix

Last updated