Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This package is no longer necessary. Use the built-in npx command instead.

npm install --save-dev eslint
npx eslint src

eslint-cli

npm version Downloads/month Dependency Status

The local ESLint executor.

⤴️ Motivation

ESLint recommends that we install ESLint into project-local rather than global.

$ npm install --save-dev eslint

In that case, there are many merits, but eslint CLI command is not available.

# This is error:
$ eslint src

# So you have to use:
$ ./node_modules/.bin/eslint src

It's inconvenient a bit. This package gives you eslint CLI command which runs local installed ESLint.

💿 Installation

Use npm to install.

$ npm install -g eslint-cli

Note:

  • The eslint package must not be installed into global.
  • This package must be installed into global.

📖 Usage

First, install the eslint package into project-local.

$ npm install --save-dev eslint

Next, use eslint CLI command.

$ eslint src

The command runs the global-installed eslint-cli, then it finds and runs the local-installed eslint.

That's all. Enjoy!

📰 Change logs

🍻 Contributing

Contributing is welcome!

Please use issues/PRs of GitHub.

About

The local eslint executor.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

60 stars

Watchers

11 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages