Skip to content

Instantly share code, notes, and snippets.

@taeber
Last active November 7, 2017 18:48
Show Gist options
  • Save taeber/cd7c651203598e1d2a67e1503df31a03 to your computer and use it in GitHub Desktop.
Save taeber/cd7c651203598e1d2a67e1503df31a03 to your computer and use it in GitHub Desktop.
Airbnb eslint issue: comma-dangle
module.exports = {
"extends": "airbnb-base"
};

Run:

$ npm install
$ eslint index.js

I expected no errors.

I see there is an error about comma-dangle. However, adding a comma results in a SyntaxError.

process.stdout.write(
'Hello, World!\n',
'utf-8'
);
{
"devDependencies": {
"eslint": "^4.10.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.8.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment