tools: re-enable comma-spacing linter rule
The rule was disabled because of an eslint bug which is now resolved. All code in lib was already conforming and only test code needed a few changes to make the linter happy with this rule enabled. Ref: https://github.com/eslint/eslint/issues/2408 PR-URL: https://github.com/nodejs/io.js/pull/2072 Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com> Reviewed-by: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Alex Kocharin <alex@kocharin.ru>
This commit is contained in:
parent
d91e10b3bd
commit
e3f9335c40
@ -43,8 +43,7 @@ rules:
|
||||
## 2 space indentation
|
||||
indent: [2, 2]
|
||||
## add space after comma
|
||||
## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
|
||||
comma-spacing: 1
|
||||
comma-spacing: 2
|
||||
## put semi-colon
|
||||
semi: 2
|
||||
## require spaces operator like var sum = 1 + 1;
|
||||
|
@ -36,7 +36,7 @@ common.refreshTmpDir();
|
||||
|
||||
unlink(pathname);
|
||||
|
||||
fs.mkdir(pathname, 511 /*=0777*/, function(err) {
|
||||
fs.mkdir(pathname, 0o777, function(err) {
|
||||
assert.equal(err, null);
|
||||
assert.equal(common.fileExists(pathname), true);
|
||||
ncalls++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user