Skip to content

Commit 53e43a6

Browse files
committed
Update is, tape, covert, jscs, editorconfig-tools, nsp, eslint, semver
1 parent 3b9c26c commit 53e43a6

File tree

3 files changed

+64
-16
lines changed

3 files changed

+64
-16
lines changed

.eslintrc

+15-5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"block-scoped-var": [0],
1212
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
1313
"camelcase": [2],
14+
"comma-dangle": [2, "never"],
1415
"comma-spacing": [2],
1516
"comma-style": [2, "last"],
1617
"complexity": [0, 11],
@@ -22,7 +23,8 @@
2223
"eol-last": [2],
2324
"eqeqeq": [2],
2425
"func-names": [0],
25-
"func-style": [0, "declaration"],
26+
"func-style": [2, "expression"],
27+
"generator-star-spacing": [2, "after"],
2628
"global-strict": [0, "never"],
2729
"guard-for-in": [0],
2830
"handle-callback-err": [0],
@@ -35,20 +37,23 @@
3537
"max-statements": [0, 10],
3638
"new-parens": [2],
3739
"new-cap": [2],
40+
"newline-after-var": [0],
3841
"no-alert": [2],
3942
"no-array-constructor": [2],
4043
"no-bitwise": [0],
4144
"no-caller": [2],
4245
"no-catch-shadow": [2],
43-
"no-comma-dangle": [2],
4446
"no-cond-assign": [2],
4547
"no-console": [2],
4648
"no-constant-condition": [2],
49+
"no-continue": [2],
4750
"no-control-regex": [2],
4851
"no-debugger": [2],
4952
"no-delete-var": [2],
5053
"no-div-regex": [0],
54+
"no-dupe-args": [2],
5155
"no-dupe-keys": [2],
56+
"no-duplicate-case": [2],
5257
"no-else-return": [0],
5358
"no-empty": [2],
5459
"no-empty-class": [2],
@@ -80,7 +85,7 @@
8085
"no-mixed-spaces-and-tabs": [2, false],
8186
"no-multi-spaces": [2],
8287
"no-multi-str": [2],
83-
"no-multiple-empty-lines": [0, {"max": 2}],
88+
"no-multiple-empty-lines": [2, {"max": 1}],
8489
"no-native-reassign": [2],
8590
"no-negated-in-lhs": [2],
8691
"no-nested-ternary": [0],
@@ -92,6 +97,7 @@
9297
"no-obj-calls": [2],
9398
"no-octal": [2],
9499
"no-octal-escape": [2],
100+
"no-param-reassign": [2],
95101
"no-path-concat": [0],
96102
"no-plusplus": [0],
97103
"no-process-env": [0],
@@ -112,6 +118,7 @@
112118
"no-sparse-arrays": [2],
113119
"no-sync": [0],
114120
"no-ternary": [0],
121+
"no-throw-literal": [2],
115122
"no-trailing-spaces": [2],
116123
"no-undef": [2],
117124
"no-undef-init": [2],
@@ -125,14 +132,18 @@
125132
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
126133
"no-with": [2],
127134
"no-wrap-func": [2],
135+
"object-shorthand": [2, "never"],
128136
"one-var": [0],
129137
"operator-assignment": [0, "always"],
138+
"operator-linebreak": [2, "after"],
130139
"padded-blocks": [0],
131140
"quote-props": [0],
132141
"radix": [0],
133142
"semi": [2],
143+
"semi-spacing": [2, { "before": false, "after": true }],
134144
"sort-vars": [0],
135-
"space-after-keywords": [2, "always", { "checkFunctionKeyword": true }],
145+
"space-after-keywords": [2, "always"],
146+
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
136147
"space-before-blocks": [0, "always"],
137148
"space-in-brackets": [0, "never", {
138149
"singleValue": true,
@@ -145,7 +156,6 @@
145156
"space-in-parens": [2, "never"],
146157
"space-infix-ops": [2],
147158
"space-return-throw-case": [2],
148-
"space-after-function-name": [2, "never"],
149159
"space-unary-ops": [2, { "words": true, "nonwords": false }],
150160
"spaced-line-comment": [0, "always"],
151161
"strict": [0],

.jscs.json

+39-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"additionalRules": [],
33

4+
"requireSemicolons": true,
5+
6+
"disallowMultipleSpaces": true,
7+
8+
"disallowIdentifierNames": [],
9+
10+
"requirePaddingNewLinesBeforeLineComments": true,
11+
412
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
513

614
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
@@ -63,6 +71,36 @@
6371
"validateQuoteMarks": {
6472
"escape": true,
6573
"mark": "'"
66-
}
74+
},
75+
76+
"disallowOperatorBeforeLineBreak": [],
77+
78+
"requireSpaceBeforeKeywords": [
79+
"do",
80+
"for",
81+
"if",
82+
"else",
83+
"switch",
84+
"case",
85+
"try",
86+
"catch",
87+
"finally",
88+
"while",
89+
"with",
90+
"return"
91+
],
92+
93+
"validateAlignedFunctionParameters": {
94+
"lineBreakAfterOpeningBraces": true,
95+
"lineBreakBeforeClosingBraces": true
96+
},
97+
98+
"requirePaddingNewLinesBeforeExport": true,
99+
100+
"validateNewlineAfterArrayElements": {
101+
"maximum": 1
102+
},
103+
104+
"requirePaddingNewLinesAfterUseStrict": true
67105
}
68106

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
],
2929
"dependencies": {},
3030
"devDependencies": {
31-
"foreach": "~2.0.5",
32-
"is": "~2.2.0",
33-
"tape": "~3.4.0",
34-
"indexof": "~0.0.1",
35-
"covert": "1.0.0",
36-
"jscs": "~1.10.0",
37-
"editorconfig-tools": "~0.0.1",
38-
"nsp": "~1.0.0",
39-
"eslint": "~0.12.0",
40-
"semver": "~4.2.0"
31+
"foreach": "^2.0.5",
32+
"is": "^3.0.1",
33+
"tape": "^4.0.0",
34+
"indexof": "^0.0.1",
35+
"covert": "^1.0.1",
36+
"jscs": "^1.13.0",
37+
"editorconfig-tools": "^0.1.1",
38+
"nsp": "^1.0.1",
39+
"eslint": "^0.20.0",
40+
"semver": "^4.3.3"
4141
},
4242
"testling": {
4343
"files": "test.js",

0 commit comments

Comments
 (0)