commands.sh

eslint

all

A pluggable linting utility for JavaScript and JSX.

More info →

Options (1)

-c, --configboolean

Lint using the specified configuration file

Example: eslint {{[-c|--config]}} {{path/to/config_file}} {{path/to/file1.js path/to/file2.js ...}}

Examples (4)

Create the ESLint configuration file

eslint --init

Lint one or more files

eslint path/to/file1.js path/to/file2.js ...

Fix lint issues

eslint --fix

Lint using the specified configuration file

eslint [-c|--config] path/to/config_file path/to/file1.js path/to/file2.js ...
made by @shridhargupta | data from tldr-pages