Using eslint & airbnb syle guide for js syntax

I have been utilizing the airbnb javascript writing guide. Part of this has been following the guide and part utilizing the airbnb eslint configuration. It seems to be a reasonable standard to follow.

Installing eslint with the airbnb config: After adding in eslint and the eslint-config-airbnb npm I settled on the following current eslintrc.js config:


module.exports = {
"extends": "airbnb",
"rules": {
'max-len': [2, 250, 2,
{
'ignoreUrls': true,
'ignoreComments': false
}
],
}
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s