eslint 5.0.0-alpha.4 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/README.md +143 -27
- package/conf/eslint-recommended.js +1 -0
- package/lib/code-path-analysis/code-path-analyzer.js +28 -4
- package/lib/config/config-file.js +5 -0
- package/lib/config/config-initializer.js +19 -10
- package/lib/config/config-validator.js +13 -6
- package/lib/config.js +4 -4
- package/lib/formatters/stylish.js +1 -1
- package/lib/ignored-paths.js +11 -7
- package/lib/rules/camelcase.js +33 -5
- package/lib/rules/func-name-matching.js +52 -4
- package/lib/rules/max-lines-per-function.js +218 -0
- package/lib/rules/no-catch-shadow.js +5 -2
- package/lib/rules/no-debugger.js +2 -10
- package/lib/rules/no-shadow-restricted-names.js +11 -37
- package/lib/rules/no-unneeded-ternary.js +1 -1
- package/lib/rules/no-use-before-define.js +4 -39
- package/lib/rules/no-warning-comments.js +19 -2
- package/lib/rules/prefer-const.js +1 -1
- package/lib/rules/prefer-object-spread.js +147 -196
- package/lib/rules/sort-keys.js +1 -1
- package/lib/rules/valid-jsdoc.js +6 -2
- package/lib/rules/wrap-regex.js +8 -4
- package/lib/util/npm-util.js +8 -2
- package/messages/failed-to-read-json.txt +3 -0
- package/package.json +6 -4
@@ -6,21 +6,15 @@
|
|
6
6
|
|
7
7
|
"use strict";
|
8
8
|
|
9
|
-
const
|
9
|
+
const { CALL, ReferenceTracker } = require("eslint-utils");
|
10
|
+
const {
|
11
|
+
isCommaToken,
|
12
|
+
isOpeningParenToken,
|
13
|
+
isClosingParenToken,
|
14
|
+
isParenthesised
|
15
|
+
} = require("../ast-utils");
|
10
16
|
|
11
|
-
|
12
|
-
* Helper that checks if the node is an Object.assign call
|
13
|
-
* @param {ASTNode} node - The node that the rule warns on
|
14
|
-
* @returns {boolean} - Returns true if the node is an Object.assign call
|
15
|
-
*/
|
16
|
-
function isObjectAssign(node) {
|
17
|
-
return (
|
18
|
-
node.callee &&
|
19
|
-
node.callee.type === "MemberExpression" &&
|
20
|
-
node.callee.object.name === "Object" &&
|
21
|
-
node.callee.property.name === "assign"
|
22
|
-
);
|
23
|
-
}
|
17
|
+
const ANY_SPACE = /\s/;
|
24
18
|
|
25
19
|
/**
|
26
20
|
* Helper that checks if the Object.assign call has array spread
|
@@ -35,15 +29,12 @@ function hasArraySpread(node) {
|
|
35
29
|
* Helper that checks if the node needs parentheses to be valid JS.
|
36
30
|
* The default is to wrap the node in parentheses to avoid parsing errors.
|
37
31
|
* @param {ASTNode} node - The node that the rule warns on
|
32
|
+
* @param {Object} sourceCode - in context sourcecode object
|
38
33
|
* @returns {boolean} - Returns true if the node needs parentheses
|
39
34
|
*/
|
40
|
-
function needsParens(node) {
|
35
|
+
function needsParens(node, sourceCode) {
|
41
36
|
const parent = node.parent;
|
42
37
|
|
43
|
-
if (!parent || !node.type) {
|
44
|
-
return true;
|
45
|
-
}
|
46
|
-
|
47
38
|
switch (parent.type) {
|
48
39
|
case "VariableDeclarator":
|
49
40
|
case "ArrayExpression":
|
@@ -51,180 +42,168 @@ function needsParens(node) {
|
|
51
42
|
case "CallExpression":
|
52
43
|
case "Property":
|
53
44
|
return false;
|
45
|
+
case "AssignmentExpression":
|
46
|
+
return parent.left === node && !isParenthesised(sourceCode, node);
|
54
47
|
default:
|
55
|
-
return
|
48
|
+
return !isParenthesised(sourceCode, node);
|
56
49
|
}
|
57
50
|
}
|
58
51
|
|
59
52
|
/**
|
60
53
|
* Determines if an argument needs parentheses. The default is to not add parens.
|
61
54
|
* @param {ASTNode} node - The node to be checked.
|
55
|
+
* @param {Object} sourceCode - in context sourcecode object
|
62
56
|
* @returns {boolean} True if the node needs parentheses
|
63
57
|
*/
|
64
|
-
function argNeedsParens(node) {
|
65
|
-
if (!node.type) {
|
66
|
-
return false;
|
67
|
-
}
|
68
|
-
|
58
|
+
function argNeedsParens(node, sourceCode) {
|
69
59
|
switch (node.type) {
|
70
60
|
case "AssignmentExpression":
|
71
61
|
case "ArrowFunctionExpression":
|
72
62
|
case "ConditionalExpression":
|
73
|
-
return
|
63
|
+
return !isParenthesised(sourceCode, node);
|
74
64
|
default:
|
75
65
|
return false;
|
76
66
|
}
|
77
67
|
}
|
78
68
|
|
79
69
|
/**
|
80
|
-
*
|
81
|
-
*
|
82
|
-
* @param {
|
83
|
-
* @
|
70
|
+
* Get the parenthesis tokens of a given ObjectExpression node.
|
71
|
+
* This incldues the braces of the object literal and enclosing parentheses.
|
72
|
+
* @param {ASTNode} node The node to get.
|
73
|
+
* @param {Token} leftArgumentListParen The opening paren token of the argument list.
|
74
|
+
* @param {SourceCode} sourceCode The source code object to get tokens.
|
75
|
+
* @returns {Token[]} The parenthesis tokens of the node. This is sorted by the location.
|
84
76
|
*/
|
85
|
-
function
|
86
|
-
const
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
const commentEnd = arr[1];
|
103
|
-
|
104
|
-
if (insertIndex < commentStart || insertIndex > commentEnd) {
|
105
|
-
validWhitespaceMatches.push(insertIndex);
|
106
|
-
}
|
107
|
-
});
|
108
|
-
});
|
109
|
-
const insertPos = Math.max(...validWhitespaceMatches);
|
110
|
-
const regex = new RegExp(`^((?:.|[^/s/S]){${insertPos}}) *`);
|
77
|
+
function getParenTokens(node, leftArgumentListParen, sourceCode) {
|
78
|
+
const parens = [sourceCode.getFirstToken(node), sourceCode.getLastToken(node)];
|
79
|
+
let leftNext = sourceCode.getTokenBefore(node);
|
80
|
+
let rightNext = sourceCode.getTokenAfter(node);
|
81
|
+
|
82
|
+
// Note: don't include the parens of the argument list.
|
83
|
+
while (
|
84
|
+
leftNext &&
|
85
|
+
rightNext &&
|
86
|
+
leftNext.range[0] > leftArgumentListParen.range[0] &&
|
87
|
+
isOpeningParenToken(leftNext) &&
|
88
|
+
isClosingParenToken(rightNext)
|
89
|
+
) {
|
90
|
+
parens.push(leftNext, rightNext);
|
91
|
+
leftNext = sourceCode.getTokenBefore(leftNext);
|
92
|
+
rightNext = sourceCode.getTokenAfter(rightNext);
|
93
|
+
}
|
111
94
|
|
112
|
-
return
|
95
|
+
return parens.sort((a, b) => a.range[0] - b.range[0]);
|
113
96
|
}
|
114
97
|
|
115
98
|
/**
|
116
|
-
*
|
117
|
-
* @param {
|
118
|
-
* @param {
|
119
|
-
* @
|
120
|
-
* @param {array} comments - comments inside checked node
|
121
|
-
* @returns {string} - formatted argument
|
99
|
+
* Get the range of a given token and around whitespaces.
|
100
|
+
* @param {Token} token The token to get range.
|
101
|
+
* @param {SourceCode} sourceCode The source code object to get tokens.
|
102
|
+
* @returns {number} The end of the range of the token and around whitespaces.
|
122
103
|
*/
|
123
|
-
function
|
124
|
-
const text = sourceCode.
|
125
|
-
|
126
|
-
const spread = arg.type === "SpreadElement" ? "" : "...";
|
127
|
-
|
128
|
-
if (arg.type === "ObjectExpression" && arg.properties.length === 0) {
|
129
|
-
return "";
|
130
|
-
}
|
104
|
+
function getStartWithSpaces(token, sourceCode) {
|
105
|
+
const text = sourceCode.text;
|
106
|
+
let start = token.range[0];
|
131
107
|
|
132
|
-
|
108
|
+
// If the previous token is a line comment then skip this step to avoid commenting this token out.
|
109
|
+
{
|
110
|
+
const prevToken = sourceCode.getTokenBefore(token, { includeComments: true });
|
133
111
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
* having multiple spaces around the object expression depending on how the object properties are spaced.
|
138
|
-
*/
|
139
|
-
const formattedObjectLiteral = text.replace(/^(.*){ */, "$1").replace(/ *}([^}]*)$/, "$1");
|
140
|
-
|
141
|
-
return isLast ? formattedObjectLiteral : addComma(formattedObjectLiteral, comments);
|
112
|
+
if (prevToken && prevToken.type === "Line") {
|
113
|
+
return start;
|
114
|
+
}
|
142
115
|
}
|
143
116
|
|
144
|
-
|
145
|
-
|
117
|
+
// Detect spaces before the token.
|
118
|
+
while (ANY_SPACE.test(text[start - 1] || "")) {
|
119
|
+
start -= 1;
|
146
120
|
}
|
147
121
|
|
148
|
-
return
|
122
|
+
return start;
|
149
123
|
}
|
150
124
|
|
151
125
|
/**
|
152
|
-
*
|
153
|
-
* @param {
|
154
|
-
* @param {
|
155
|
-
* @returns {
|
126
|
+
* Get the range of a given token and around whitespaces.
|
127
|
+
* @param {Token} token The token to get range.
|
128
|
+
* @param {SourceCode} sourceCode The source code object to get tokens.
|
129
|
+
* @returns {number} The start of the range of the token and around whitespaces.
|
156
130
|
*/
|
157
|
-
function
|
158
|
-
|
159
|
-
|
160
|
-
const firstArg = args[0];
|
161
|
-
const lastArg = args[args.length - 1];
|
162
|
-
const parens = needsParens(node);
|
163
|
-
const comments = sourceCode.getCommentsInside(node);
|
164
|
-
const replaceObjectAssignStart = fixer.replaceTextRange(
|
165
|
-
[node.range[0], firstArg.range[0]],
|
166
|
-
`${parens ? "({" : "{"}`
|
167
|
-
);
|
131
|
+
function getEndWithSpaces(token, sourceCode) {
|
132
|
+
const text = sourceCode.text;
|
133
|
+
let end = token.range[1];
|
168
134
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
const insertBody = fixer.replaceTextRange([firstArg.range[0], lastArg.range[1]], handleArgs.join(""));
|
174
|
-
const replaceObjectAssignEnd = fixer.replaceTextRange([lastArg.range[1], node.range[1]], `${parens ? "})" : "}"}`);
|
135
|
+
// Detect spaces after the token.
|
136
|
+
while (ANY_SPACE.test(text[end] || "")) {
|
137
|
+
end += 1;
|
138
|
+
}
|
175
139
|
|
176
|
-
|
177
|
-
replaceObjectAssignStart,
|
178
|
-
insertBody,
|
179
|
-
replaceObjectAssignEnd
|
180
|
-
];
|
181
|
-
};
|
140
|
+
return end;
|
182
141
|
}
|
183
142
|
|
184
143
|
/**
|
185
|
-
* Autofixes the Object.assign call
|
144
|
+
* Autofixes the Object.assign call to use an object spread instead.
|
186
145
|
* @param {ASTNode|null} node - The node that the rule warns on, i.e. the Object.assign call
|
187
146
|
* @param {string} sourceCode - sourceCode of the Object.assign call
|
188
|
-
* @returns {Function} autofixer - replaces the Object.assign with a object
|
147
|
+
* @returns {Function} autofixer - replaces the Object.assign with a spread object.
|
189
148
|
*/
|
190
|
-
function
|
191
|
-
return fixer
|
192
|
-
const
|
193
|
-
const
|
149
|
+
function defineFixer(node, sourceCode) {
|
150
|
+
return function *(fixer) {
|
151
|
+
const leftParen = sourceCode.getTokenAfter(node.callee, isOpeningParenToken);
|
152
|
+
const rightParen = sourceCode.getLastToken(node);
|
153
|
+
|
154
|
+
// Remove the callee `Object.assign`
|
155
|
+
yield fixer.remove(node.callee);
|
156
|
+
|
157
|
+
// Replace the parens of argument list to braces.
|
158
|
+
if (needsParens(node, sourceCode)) {
|
159
|
+
yield fixer.replaceText(leftParen, "({");
|
160
|
+
yield fixer.replaceText(rightParen, "})");
|
161
|
+
} else {
|
162
|
+
yield fixer.replaceText(leftParen, "{");
|
163
|
+
yield fixer.replaceText(rightParen, "}");
|
164
|
+
}
|
194
165
|
|
195
|
-
|
196
|
-
|
197
|
-
|
166
|
+
// Process arguments.
|
167
|
+
for (const argNode of node.arguments) {
|
168
|
+
const innerParens = getParenTokens(argNode, leftParen, sourceCode);
|
169
|
+
const left = innerParens.shift();
|
170
|
+
const right = innerParens.pop();
|
198
171
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
* @returns {boolean} - true if node is an assignment, variable declaration, or import statement
|
203
|
-
*/
|
204
|
-
function isModifier(node) {
|
205
|
-
if (!node.type) {
|
206
|
-
return false;
|
207
|
-
}
|
172
|
+
if (argNode.type === "ObjectExpression") {
|
173
|
+
const maybeTrailingComma = sourceCode.getLastToken(argNode, 1);
|
174
|
+
const maybeArgumentComma = sourceCode.getTokenAfter(right);
|
208
175
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
176
|
+
/*
|
177
|
+
* Make bare this object literal.
|
178
|
+
* And remove spaces inside of the braces for better formatting.
|
179
|
+
*/
|
180
|
+
for (const innerParen of innerParens) {
|
181
|
+
yield fixer.remove(innerParen);
|
182
|
+
}
|
183
|
+
yield fixer.removeRange([left.range[0], getEndWithSpaces(left, sourceCode)]);
|
184
|
+
yield fixer.removeRange([getStartWithSpaces(right, sourceCode), right.range[1]]);
|
213
185
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
186
|
+
// Remove the comma of this argument if it's duplication.
|
187
|
+
if (
|
188
|
+
(argNode.properties.length === 0 || isCommaToken(maybeTrailingComma)) &&
|
189
|
+
isCommaToken(maybeArgumentComma)
|
190
|
+
) {
|
191
|
+
yield fixer.remove(maybeArgumentComma);
|
192
|
+
}
|
193
|
+
} else {
|
194
|
+
|
195
|
+
// Make spread.
|
196
|
+
if (argNeedsParens(argNode, sourceCode)) {
|
197
|
+
yield fixer.insertTextBefore(left, "...(");
|
198
|
+
yield fixer.insertTextAfter(right, ")");
|
199
|
+
} else {
|
200
|
+
yield fixer.insertTextBefore(left, "...");
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
};
|
225
205
|
}
|
226
206
|
|
227
|
-
|
228
207
|
module.exports = {
|
229
208
|
meta: {
|
230
209
|
docs: {
|
@@ -242,61 +221,33 @@ module.exports = {
|
|
242
221
|
}
|
243
222
|
},
|
244
223
|
|
245
|
-
create
|
224
|
+
create(context) {
|
246
225
|
const sourceCode = context.getSourceCode();
|
247
|
-
const scope = context.getScope();
|
248
|
-
const objectVariable = scope.variables.filter(variable => variable.name === "Object");
|
249
|
-
const moduleReferences = scope.childScopes.filter(childScope => {
|
250
|
-
const varNamedObject = childScope.variables.filter(variable => variable.name === "Object");
|
251
|
-
|
252
|
-
return childScope.type === "module" && varNamedObject.length;
|
253
|
-
});
|
254
|
-
const references = [].concat(...objectVariable.map(variable => variable.references || []));
|
255
226
|
|
256
227
|
return {
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
node,
|
279
|
-
|
280
|
-
fix: autofixObjectLiteral(node, sourceCode)
|
281
|
-
});
|
282
|
-
}
|
283
|
-
|
284
|
-
/*
|
285
|
-
* The condition below warns on `Object.assign` calls that that have
|
286
|
-
* an object literal as the first argument and have a second argument
|
287
|
-
* that can be spread. e.g `Object.assign({ foo: bar }, baz)`
|
288
|
-
*/
|
289
|
-
if (
|
290
|
-
node.arguments.length > 1 &&
|
291
|
-
node.arguments[0].type === "ObjectExpression" &&
|
292
|
-
isObjectAssign(node) &&
|
293
|
-
!hasArraySpread(node)
|
294
|
-
) {
|
295
|
-
context.report({
|
296
|
-
node,
|
297
|
-
messageId: "useSpreadMessage",
|
298
|
-
fix: autofixSpread(node, sourceCode)
|
299
|
-
});
|
228
|
+
Program() {
|
229
|
+
const scope = context.getScope();
|
230
|
+
const tracker = new ReferenceTracker(scope);
|
231
|
+
const trackMap = {
|
232
|
+
Object: {
|
233
|
+
assign: { [CALL]: true }
|
234
|
+
}
|
235
|
+
};
|
236
|
+
|
237
|
+
// Iterate all calls of `Object.assign` (only of the global variable `Object`).
|
238
|
+
for (const { node } of tracker.iterateGlobalReferences(trackMap)) {
|
239
|
+
if (
|
240
|
+
node.arguments.length >= 1 &&
|
241
|
+
node.arguments[0].type === "ObjectExpression" &&
|
242
|
+
!hasArraySpread(node)
|
243
|
+
) {
|
244
|
+
const messageId = node.arguments.length === 1
|
245
|
+
? "useLiteralMessage"
|
246
|
+
: "useSpreadMessage";
|
247
|
+
const fix = defineFixer(node, sourceCode);
|
248
|
+
|
249
|
+
context.report({ node, messageId, fix });
|
250
|
+
}
|
300
251
|
}
|
301
252
|
}
|
302
253
|
};
|
package/lib/rules/sort-keys.js
CHANGED
package/lib/rules/valid-jsdoc.js
CHANGED
@@ -53,6 +53,9 @@ module.exports = {
|
|
53
53
|
},
|
54
54
|
requireReturnType: {
|
55
55
|
type: "boolean"
|
56
|
+
},
|
57
|
+
requireParamType: {
|
58
|
+
type: "boolean"
|
56
59
|
}
|
57
60
|
},
|
58
61
|
additionalProperties: false
|
@@ -73,6 +76,7 @@ module.exports = {
|
|
73
76
|
requireParamDescription = options.requireParamDescription !== false,
|
74
77
|
requireReturnDescription = options.requireReturnDescription !== false,
|
75
78
|
requireReturnType = options.requireReturnType !== false,
|
79
|
+
requireParamType = options.requireParamType !== false,
|
76
80
|
preferType = options.preferType || {},
|
77
81
|
checkPreferType = Object.keys(preferType).length !== 0;
|
78
82
|
|
@@ -351,7 +355,7 @@ module.exports = {
|
|
351
355
|
});
|
352
356
|
|
353
357
|
paramTags.forEach(param => {
|
354
|
-
if (!param.type) {
|
358
|
+
if (requireParamType && !param.type) {
|
355
359
|
context.report({
|
356
360
|
node: jsdocNode,
|
357
361
|
message: "Missing JSDoc parameter type for '{{name}}'.",
|
@@ -404,7 +408,7 @@ module.exports = {
|
|
404
408
|
if (!isOverride && !hasReturns && !hasConstructor && !isInterface &&
|
405
409
|
node.parent.kind !== "get" && node.parent.kind !== "constructor" &&
|
406
410
|
node.parent.kind !== "set" && !isTypeClass(node)) {
|
407
|
-
if (requireReturn || functionData.returnPresent) {
|
411
|
+
if (requireReturn || (functionData.returnPresent && !node.async)) {
|
408
412
|
context.report({
|
409
413
|
node: jsdocNode,
|
410
414
|
message: "Missing JSDoc @{{returns}} for function.",
|
package/lib/rules/wrap-regex.js
CHANGED
@@ -20,7 +20,10 @@ module.exports = {
|
|
20
20
|
|
21
21
|
schema: [],
|
22
22
|
|
23
|
-
fixable: "code"
|
23
|
+
fixable: "code",
|
24
|
+
messages: {
|
25
|
+
requireParens: "Wrap the regexp literal in parens to disambiguate the slash."
|
26
|
+
}
|
24
27
|
},
|
25
28
|
|
26
29
|
create(context) {
|
@@ -33,15 +36,16 @@ module.exports = {
|
|
33
36
|
nodeType = token.type;
|
34
37
|
|
35
38
|
if (nodeType === "RegularExpression") {
|
36
|
-
const
|
39
|
+
const beforeToken = sourceCode.getTokenBefore(node);
|
40
|
+
const afterToken = sourceCode.getTokenAfter(node);
|
37
41
|
const ancestors = context.getAncestors();
|
38
42
|
const grandparent = ancestors[ancestors.length - 1];
|
39
43
|
|
40
44
|
if (grandparent.type === "MemberExpression" && grandparent.object === node &&
|
41
|
-
(
|
45
|
+
!(beforeToken && beforeToken.value === "(" && afterToken && afterToken.value === ")")) {
|
42
46
|
context.report({
|
43
47
|
node,
|
44
|
-
|
48
|
+
messageId: "requireParens",
|
45
49
|
fix: fixer => fixer.replaceText(node, `(${sourceCode.getText(node)})`)
|
46
50
|
});
|
47
51
|
}
|
package/lib/util/npm-util.js
CHANGED
@@ -109,8 +109,14 @@ function check(packages, opt) {
|
|
109
109
|
try {
|
110
110
|
fileJson = JSON.parse(fs.readFileSync(pkgJson, "utf8"));
|
111
111
|
} catch (e) {
|
112
|
-
|
113
|
-
|
112
|
+
const error = new Error(e);
|
113
|
+
|
114
|
+
error.messageTemplate = "failed-to-read-json";
|
115
|
+
error.messageData = {
|
116
|
+
path: pkgJson,
|
117
|
+
message: e.message
|
118
|
+
};
|
119
|
+
throw error;
|
114
120
|
}
|
115
121
|
|
116
122
|
if (opt.devDependencies && typeof fileJson.devDependencies === "object") {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.1.0",
|
4
4
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
5
5
|
"description": "An AST-based pattern checker for JavaScript.",
|
6
6
|
"bin": {
|
@@ -15,6 +15,7 @@
|
|
15
15
|
"ci-release": "node Makefile.js ciRelease",
|
16
16
|
"alpharelease": "node Makefile.js prerelease -- alpha",
|
17
17
|
"betarelease": "node Makefile.js prerelease -- beta",
|
18
|
+
"rcrelease": "node Makefile.js prerelease -- rc",
|
18
19
|
"docs": "node Makefile.js docs",
|
19
20
|
"gensite": "node Makefile.js gensite",
|
20
21
|
"browserify": "node Makefile.js browserify",
|
@@ -40,15 +41,16 @@
|
|
40
41
|
"cross-spawn": "^6.0.5",
|
41
42
|
"debug": "^3.1.0",
|
42
43
|
"doctrine": "^2.1.0",
|
43
|
-
"eslint-scope": "^4.0.0
|
44
|
+
"eslint-scope": "^4.0.0",
|
45
|
+
"eslint-utils": "^1.3.1",
|
44
46
|
"eslint-visitor-keys": "^1.0.0",
|
45
|
-
"espree": "^4.0.0
|
47
|
+
"espree": "^4.0.0",
|
46
48
|
"esquery": "^1.0.1",
|
47
49
|
"esutils": "^2.0.2",
|
48
50
|
"file-entry-cache": "^2.0.0",
|
49
51
|
"functional-red-black-tree": "^1.0.1",
|
50
52
|
"glob": "^7.1.2",
|
51
|
-
"globals": "^11.
|
53
|
+
"globals": "^11.7.0",
|
52
54
|
"ignore": "^3.3.3",
|
53
55
|
"imurmurhash": "^0.1.4",
|
54
56
|
"inquirer": "^5.2.0",
|