eslint-arrow-test-case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
ecmaFeatures: | |
arrowFunctions: true | |
env: | |
node: true | |
rules: | |
indent: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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