Skip to content

Commit b7b38bd

Browse files
TrottMylesBorins
authored andcommittedSep 5, 2017
test: adjust indentation for stricter linting
ESLint 4.x has stricter linting than previous versions. We are currently using the legacy indentation rules in the test directory. This commit changes the indentation of files to comply with the stricter 4.x linting and enable stricter linting in the test directory. Backport-PR-URL: #14835 PR-URL: #14431 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 963ea0e commit b7b38bd

File tree

76 files changed

+580
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+580
-560
lines changed
 

‎test/.eslintrc.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
## Test-specific linter rules
22

33
rules:
4+
# Stylistic Issues
5+
# http://eslint.org/docs/rules/#stylistic-issues
6+
indent: [error, 2, {ArrayExpression: first,
7+
CallExpression: {arguments: first},
8+
FunctionDeclaration: {parameters: first},
9+
FunctionExpression: {parameters: first},
10+
MemberExpression: off,
11+
ObjectExpression: first,
12+
SwitchCase: 1}]
13+
indent-legacy: off
414
# ECMAScript 6
515
# http://eslint.org/docs/rules/#ecmascript-6
616
no-var: 2

‎test/debugger/test-debugger-client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ function doTest(cb, done) {
181181
c.end();
182182
c.on('end', function() {
183183
console.error(
184-
'>>> killing node process %d\n\n',
185-
nodeProcess.pid);
184+
'>>> killing node process %d\n\n',
185+
nodeProcess.pid);
186186
nodeProcess.kill();
187187
done();
188188
});

0 commit comments

Comments
 (0)
Please sign in to comment.