Using eslint & airbnb syle guide for js syntax

September 22, 2016

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
}
],
}
}