Closed mimetic closed 6 years ago
@mimetic Eslint does not depend webstorm (and vise versa). It's an command line tool (yes, you can use it with webstorm but that makes no sense because we all develop on different IDE's).
Kent wants a working setup that we can recommend to new developers, and I thought this could part of that recommendation. Of course, they can do what they wish.
Feature / Issue
Acceptance criteria
Global Install
Use global install because otherwise, you have to reinstall if you reinstall the project.
Global Installation and Usage
If you want to make ESLint available to tools that run across all of your projects, we recommend installing ESLint globally. You can do so using npm:
$ npm install -g eslint You should then setup a configuration file:
$ eslint --init After that, you can run ESLint on any file or directory like this:
$ eslint yourfile.js Any plugins or shareable configs that you use must also be installed globally to work with a globally-installed ESLint.
Note: eslint --init is intended for setting up and configuring ESLint on a per-project basis and will perform a local installation of ESLint and its plugins in the directory in which it is run. If you prefer using a global installation of ESLint, any plugins used in your configuration must also be installed globally.
Additional information
Keep ... in mind