Skip to content

Commit 0e4c0c7

Browse files
silverwindandrewdeandrade
authored andcommittedJun 3, 2015
test: enable linting for tests
Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: nodejs/node#1721 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 227f07f commit 0e4c0c7

File tree

985 files changed

+2276
-1123
lines changed

Some content is hidden

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

985 files changed

+2276
-1123
lines changed
 

‎.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
lib/punycode.js
2+
test/fixtures
3+
test/**/node_modules
4+
test/parallel/test-fs-non-number-arguments-throw.js

‎.eslintrc

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ecmaFeatures:
88
octalLiterals: true
99
binaryLiterals: true
1010
generators: true
11+
forOf: true
1112

1213
rules:
1314
# Possible Errors
@@ -54,6 +55,10 @@ rules:
5455
space-infix-ops: 2
5556
## require spaces return, throw, case
5657
space-return-throw-case: 2
58+
## no space before function, eg. 'function()'
59+
space-before-function-paren: [2, "never"]
60+
## require space before blocks, eg 'function() {'
61+
space-before-blocks: [2, "always"]
5762
## require parens for Constructor
5863
new-parens: 2
5964
## max 80 length

0 commit comments

Comments
 (0)
Please sign in to comment.