Add ESLint to node project

npm i [email protected] --save-dev

Go to project dir and run:

./node_modules/.bin/eslint --init

Answer questions, next answers will configure Airbnb styleguide:

Use:

./node_modules/.bin/eslint src/*

#eslint #javascript
menu 0
Feb 11, 2017
by Ivan Borshchov

Best related

Java vs javascript – who won this fight?

Resource sharing: has been blocked by cors policy [Explain like I am 5]

Editor code syntax highlighting in EasyMDE (ex SimpleMDE)

ESlint "window" is not defined, "document" is not defined

ECMAScript6 basic things

Convert to UCS2 and from UCS2 in JavaScript

Detect download is ready on page that start download

fix jsPanel jerky jumping unsmooth scroll

Private fields in pure js (no es6)

File name nextifier

Other by Ivan Borshchov

Simple way to Docker on Windows 10 home with WSL 2

Flask vs django | easy expert comparison

Extend EC2 ext3 filesystem

How to reset mysql root password on ubuntu

Using painterro with Vue.js

Change svg color in vue.js

Fast upload file to AWS S3 from scratch

Simple way to add counts to Django admin filter

Network between 2 instances of OpenVPN

Weighted choice in python