eslint / eslint-cli

The local eslint executor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement `eslint --init`

mysticatea opened this issue · comments

People can set up ESLint for their project with eslint --init command. The command installs eslint and necessary plugins into the project local.

However, eslint-cli requires local-installed ESLint to use eslint --init. This is inconvenient.

$ eslint --init
Cannot find local ESLint!
Please install ESLint by `npm install eslint --save-dev`.

🤔 though I ran eslint --init to install ESLint locally....

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