mhy
  • Introduction
  • Basics
    • Installation
    • Usage
    • UI
    • Ecosystem
    • How does it work?
  • Tools
    • Built-ins
      • boot
      • config
      • dep
      • options
      • ui
    • Processes
      • eslint
      • jest
      • node
      • nodemon
      • prettier
      • standard-version
      • storybook-start
      • storybook-build
      • tsc
      • webpack
      • webpack-bundle-analyzer
      • webpack-dev-server
    • Configs
      • eslint
      • gitignore
      • jest
      • manifest
      • mhy
      • npmignore
      • prettier
      • storybook
      • typescript
      • webpack
  • IDE setup
    • WebStorm & PHPStorm
    • VSCode
  • Recipes and Examples
    • package.json overrides
    • Add your own
  • Others
    • FAQ
    • Help
    • Development of mhy
    • Suggest a library
Powered by GitBook
On this page
  • Default command
  • CLI Options
  • Examples
  • Default CLI
  • Only lint one file
  • Fix fixable errors

Was this helpful?

  1. Tools
  2. Processes

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
PreviousProcessesNextjest

Last updated 3 years ago

Was this helpful?