Live data from Hacker News

Ask HN: Can someone tell me how to get eslint working properly?

news.ycombinator.com

1–3 of 3 posts

Re: Ask HN: Can someone tell me how to get eslint working properly?

#2
First, install eslint. Then you probably want to add a plugin to your editor that shows it as you're working in your code. All the popular editors have plugins for this, have a look.

Then you need to set a config for your project, typically through a .eslintrc.js file in the root of your project. There you specify the airbnb config.

Keep in mind, if you do not use JSX you will want the airbnb base config.

Re: Ask HN: Can someone tell me how to get eslint working properly?

#3
post #2

First, install eslint. Then you probably want to add a plugin to your editor that shows it as you're working in your code. All the popular editors have plugins for this, have a look. Then you need to set a config for your project, typically through a .eslintrc.js file in the root of your project. There you specify the airbnb config. Keep in mind, if you do not use JSX you will want the airbnb base config.

>Then you need to set a config for your project, typically through a .eslintrc.js file in the root of your project.

This is the part I'm having a hard time with.