Skip to content

Instantly share code, notes, and snippets.

@bgw
Last active August 29, 2015 14:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bgw/c2ace2fd7b82917cb263 to your computer and use it in GitHub Desktop.
eslint-arrow-test-case
---
ecmaFeatures:
arrowFunctions: true
env:
node: true
rules:
indent: 2
bgw@dev /home/bgw/eslint-arrow-testcase
$ ~/eslint/bin/eslint.js test.js
test.js
14:12 error Expected indentation of 12 characters indent
15:8 error Expected indentation of 8 characters indent
✖ 2 problems (2 errors, 0 warnings)
"use strict";
function wrap(d, f) {
f();
}
wrap("foo- this is some long string prohibiting us from doing this on one line",
function() {
console.log("this passes");
});
wrap("bar- this is some long string prohibiting us from doing this on one line",
() => {
console.log("but not this?");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment