简体   繁体   中英

How to add ESLint check to WebStorm and count lines

  1. How can I add to WebStorm ESLint with some default configuration for Node.js project?
  2. In addition, how can I count my project lines without the nodeModules folder?

I using WebStorm version 10.0.4

You need to install ESLint via npm either locally in your project or globally, then go to WebStorm Preferences - Languages & Frameworks - JavaScript - Code quality tools - ESLint and Enable it. You would also need to add an ESLint config file (eg .eslintrc) to your project. WebStorm doesn't provide any built-in functionality to count the lines in your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM