mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
tools: update eslint to 8.10.0
PR-URL: https://github.com/nodejs/node/pull/42143 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
c9ea6a9261
commit
28f636422e
57 files changed
+2034
-1415
No files matched your search
+2
-2
@@ -616,8 +616,8 @@ class CLIEngine {
|
||||
useEslintrc: options.useEslintrc,
|
||||
builtInRules,
|
||||
loadRules,
|
||||
eslintRecommendedPath: path.resolve(__dirname, "../../conf/eslint-recommended.js"),
|
||||
eslintAllPath: path.resolve(__dirname, "../../conf/eslint-all.js")
|
||||
getEslintRecommendedConfig: () => require("../../conf/eslint-recommended.js"),
|
||||
getEslintAllConfig: () => require("../../conf/eslint-all.js")
|
||||
});
|
||||
const fileEnumerator = new FileEnumerator({
|
||||
configArrayFactory,
|
||||
|
||||
+2
-2
@@ -215,8 +215,8 @@ class FileEnumerator {
|
||||
cwd = process.cwd(),
|
||||
configArrayFactory = new CascadingConfigArrayFactory({
|
||||
cwd,
|
||||
eslintRecommendedPath: path.resolve(__dirname, "../../conf/eslint-recommended.js"),
|
||||
eslintAllPath: path.resolve(__dirname, "../../conf/eslint-all.js")
|
||||
getEslintRecommendedConfig: () => require("../../conf/eslint-recommended.js"),
|
||||
getEslintAllConfig: () => require("../../conf/eslint-all.js")
|
||||
}),
|
||||
extensions = null,
|
||||
globInputPaths = true,
|
||||
|
||||
+7
-2
@@ -14,7 +14,6 @@ const { flatConfigSchema } = require("./flat-config-schema");
|
||||
const { RuleValidator } = require("./rule-validator");
|
||||
const { defaultConfig } = require("./default-config");
|
||||
const recommendedConfig = require("../../conf/eslint-recommended");
|
||||
const allConfig = require("../../conf/eslint-all");
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Helpers
|
||||
@@ -79,7 +78,13 @@ class FlatConfigArray extends ConfigArray {
|
||||
}
|
||||
|
||||
if (config === "eslint:all") {
|
||||
return allConfig;
|
||||
|
||||
/*
|
||||
* Load `eslint-all.js` here instead of at the top level to avoid loading all rule modules
|
||||
* when it isn't necessary. `eslint-all.js` reads `meta` of rule objects to filter out deprecated ones,
|
||||
* so requiring `eslint-all.js` module loads all rule modules as a consequence.
|
||||
*/
|
||||
return require("../../conf/eslint-all");
|
||||
}
|
||||
|
||||
return config;
|
||||
|
||||
+7
@@ -800,14 +800,21 @@ function parse(text, languageOptions, filePath) {
|
||||
* problem that ESLint identified just like any other.
|
||||
*/
|
||||
try {
|
||||
debug("Parsing:", filePath);
|
||||
const parseResult = (typeof parser.parseForESLint === "function")
|
||||
? parser.parseForESLint(textToParse, parserOptions)
|
||||
: { ast: parser.parse(textToParse, parserOptions) };
|
||||
|
||||
debug("Parsing successful:", filePath);
|
||||
const ast = parseResult.ast;
|
||||
const parserServices = parseResult.services || {};
|
||||
const visitorKeys = parseResult.visitorKeys || evk.KEYS;
|
||||
|
||||
debug("Scope analysis:", filePath);
|
||||
const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys);
|
||||
|
||||
debug("Scope analysis successful:", filePath);
|
||||
|
||||
return {
|
||||
success: true,
|
||||
|
||||
|
||||
+2
-2
@@ -146,7 +146,7 @@ module.exports = {
|
||||
|
||||
/**
|
||||
* Checks if a given binding identifier uses the original name as-is.
|
||||
* - If it's in object destructuring, the original name is its property name.
|
||||
* - If it's in object destructuring or object expression, the original name is its property name.
|
||||
* - If it's in import declaration, the original name is its exported name.
|
||||
* @param {ASTNode} node The `Identifier` node to check.
|
||||
* @returns {boolean} `true` if the identifier uses the original name as-is.
|
||||
@@ -161,7 +161,7 @@ module.exports = {
|
||||
switch (parent.type) {
|
||||
case "Property":
|
||||
return (
|
||||
parent.parent.type === "ObjectPattern" &&
|
||||
(parent.parent.type === "ObjectPattern" || parent.parent.type === "ObjectExpression") &&
|
||||
parent.value === valueNode &&
|
||||
!parent.computed &&
|
||||
parent.key.type === "Identifier" &&
|
||||
|
||||
+6
-2
@@ -41,7 +41,8 @@ module.exports = {
|
||||
schema: [{
|
||||
type: "object",
|
||||
properties: {
|
||||
allowParens: { type: "boolean", default: true }
|
||||
allowParens: { type: "boolean", default: true },
|
||||
onlyOneSimpleParam: { type: "boolean", default: false }
|
||||
},
|
||||
additionalProperties: false
|
||||
}],
|
||||
@@ -54,6 +55,7 @@ module.exports = {
|
||||
create(context) {
|
||||
const config = context.options[0] || {};
|
||||
const allowParens = config.allowParens || (config.allowParens === void 0);
|
||||
const onlyOneSimpleParam = config.onlyOneSimpleParam;
|
||||
const sourceCode = context.getSourceCode();
|
||||
|
||||
|
||||
@@ -65,7 +67,9 @@ module.exports = {
|
||||
function checkArrowFunc(node) {
|
||||
const body = node.body;
|
||||
|
||||
if (isConditional(body) && !(allowParens && astUtils.isParenthesised(sourceCode, body))) {
|
||||
if (isConditional(body) &&
|
||||
!(allowParens && astUtils.isParenthesised(sourceCode, body)) &&
|
||||
!(onlyOneSimpleParam && !(node.params.length === 1 && node.params[0].type === "Identifier"))) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "confusing",
|
||||
|
||||
+127
-16
@@ -11,6 +11,15 @@
|
||||
|
||||
const astUtils = require("./utils/ast-utils");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const FUNC_EXPR_NODE_TYPES = ["ArrowFunctionExpression", "FunctionExpression"];
|
||||
const CALL_EXPR_NODE_TYPE = ["CallExpression"];
|
||||
const FOR_IN_OF_TYPE = /^For(?:In|Of)Statement$/u;
|
||||
const SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -37,7 +46,8 @@ module.exports = {
|
||||
items: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
ignoreOnInitialization: { type: "boolean", default: false }
|
||||
},
|
||||
additionalProperties: false
|
||||
}
|
||||
@@ -54,9 +64,109 @@ module.exports = {
|
||||
const options = {
|
||||
builtinGlobals: context.options[0] && context.options[0].builtinGlobals,
|
||||
hoist: (context.options[0] && context.options[0].hoist) || "functions",
|
||||
allow: (context.options[0] && context.options[0].allow) || []
|
||||
allow: (context.options[0] && context.options[0].allow) || [],
|
||||
ignoreOnInitialization: context.options[0] && context.options[0].ignoreOnInitialization
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks whether or not a given location is inside of the range of a given node.
|
||||
* @param {ASTNode} node An node to check.
|
||||
* @param {number} location A location to check.
|
||||
* @returns {boolean} `true` if the location is inside of the range of the node.
|
||||
*/
|
||||
function isInRange(node, location) {
|
||||
return node && node.range[0] <= location && location <= node.range[1];
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches from the current node through its ancestry to find a matching node.
|
||||
* @param {ASTNode} node a node to get.
|
||||
* @param {(node: ASTNode) => boolean} match a callback that checks whether or not the node verifies its condition or not.
|
||||
* @returns {ASTNode|null} the matching node.
|
||||
*/
|
||||
function findSelfOrAncestor(node, match) {
|
||||
let currentNode = node;
|
||||
|
||||
while (currentNode && !match(currentNode)) {
|
||||
currentNode = currentNode.parent;
|
||||
}
|
||||
return currentNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds function's outer scope.
|
||||
* @param {Scope} scope Function's own scope.
|
||||
* @returns {Scope} Function's outer scope.
|
||||
*/
|
||||
function getOuterScope(scope) {
|
||||
const upper = scope.upper;
|
||||
|
||||
if (upper.type === "function-expression-name") {
|
||||
return upper.upper;
|
||||
}
|
||||
return upper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable and a shadowedVariable have the same init pattern ancestor.
|
||||
* @param {Object} variable a variable to check.
|
||||
* @param {Object} shadowedVariable a shadowedVariable to check.
|
||||
* @returns {boolean} Whether or not the variable and the shadowedVariable have the same init pattern ancestor.
|
||||
*/
|
||||
function isInitPatternNode(variable, shadowedVariable) {
|
||||
const outerDef = shadowedVariable.defs[0];
|
||||
|
||||
if (!outerDef) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const { variableScope } = variable.scope;
|
||||
|
||||
|
||||
if (!(FUNC_EXPR_NODE_TYPES.includes(variableScope.block.type) && getOuterScope(variableScope) === shadowedVariable.scope)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const fun = variableScope.block;
|
||||
const { parent } = fun;
|
||||
|
||||
const callExpression = findSelfOrAncestor(
|
||||
parent,
|
||||
node => CALL_EXPR_NODE_TYPE.includes(node.type)
|
||||
);
|
||||
|
||||
if (!callExpression) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let node = outerDef.name;
|
||||
const location = callExpression.range[1];
|
||||
|
||||
while (node) {
|
||||
if (node.type === "VariableDeclarator") {
|
||||
if (isInRange(node.init, location)) {
|
||||
return true;
|
||||
}
|
||||
if (FOR_IN_OF_TYPE.test(node.parent.parent.type) &&
|
||||
isInRange(node.parent.parent.right, location)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
} else if (node.type === "AssignmentPattern") {
|
||||
if (isInRange(node.right, location)) {
|
||||
return true;
|
||||
}
|
||||
} else if (SENTINEL_TYPE.test(node.type)) {
|
||||
break;
|
||||
}
|
||||
|
||||
node = node.parent;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if variable name is allowed.
|
||||
* @param {ASTNode} variable The variable to check.
|
||||
@@ -99,11 +209,11 @@ module.exports = {
|
||||
|
||||
return (
|
||||
outer &&
|
||||
inner &&
|
||||
outer[0] < inner[0] &&
|
||||
inner[1] < outer[1] &&
|
||||
((innerDef.type === "FunctionName" && innerDef.node.type === "FunctionExpression") || innerDef.node.type === "ClassExpression") &&
|
||||
outerScope === innerScope.upper
|
||||
inner &&
|
||||
outer[0] < inner[0] &&
|
||||
inner[1] < outer[1] &&
|
||||
((innerDef.type === "FunctionName" && innerDef.node.type === "FunctionExpression") || innerDef.node.type === "ClassExpression") &&
|
||||
outerScope === innerScope.upper
|
||||
);
|
||||
}
|
||||
|
||||
@@ -154,11 +264,11 @@ module.exports = {
|
||||
|
||||
return (
|
||||
inner &&
|
||||
outer &&
|
||||
inner[1] < outer[0] &&
|
||||
outer &&
|
||||
inner[1] < outer[0] &&
|
||||
|
||||
// Excepts FunctionDeclaration if is {"hoist":"function"}.
|
||||
(options.hoist !== "functions" || !outerDef || outerDef.node.type !== "FunctionDeclaration")
|
||||
// Excepts FunctionDeclaration if is {"hoist":"function"}.
|
||||
(options.hoist !== "functions" || !outerDef || outerDef.node.type !== "FunctionDeclaration")
|
||||
);
|
||||
}
|
||||
|
||||
@@ -175,8 +285,8 @@ module.exports = {
|
||||
|
||||
// Skips "arguments" or variables of a class name in the class scope of ClassDeclaration.
|
||||
if (variable.identifiers.length === 0 ||
|
||||
isDuplicatedClassNameVariable(variable) ||
|
||||
isAllowed(variable)
|
||||
isDuplicatedClassNameVariable(variable) ||
|
||||
isAllowed(variable)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
@@ -185,9 +295,10 @@ module.exports = {
|
||||
const shadowed = astUtils.getVariableByName(scope.upper, variable.name);
|
||||
|
||||
if (shadowed &&
|
||||
(shadowed.identifiers.length > 0 || (options.builtinGlobals && "writeable" in shadowed)) &&
|
||||
!isOnInitializer(variable, shadowed) &&
|
||||
!(options.hoist !== "all" && isInTdz(variable, shadowed))
|
||||
(shadowed.identifiers.length > 0 || (options.builtinGlobals && "writeable" in shadowed)) &&
|
||||
!isOnInitializer(variable, shadowed) &&
|
||||
!(options.ignoreOnInitialization && isInitPatternNode(variable, shadowed)) &&
|
||||
!(options.hoist !== "all" && isInTdz(variable, shadowed))
|
||||
) {
|
||||
const location = getDeclaredLocation(shadowed);
|
||||
const messageId = location.global ? "noShadowGlobal" : "noShadow";
|
||||
|
||||
+5
-3
@@ -191,14 +191,15 @@ function buildSourceMapTree(input, loader) {
|
||||
'Did you specify these with the most recent transformation maps first?');
|
||||
}
|
||||
}
|
||||
let tree = build(map, '', loader);
|
||||
let tree = build(map, loader, '', 0);
|
||||
for (let i = maps.length - 1; i >= 0; i--) {
|
||||
tree = new SourceMapTree(maps[i], [tree]);
|
||||
}
|
||||
return tree;
|
||||
}
|
||||
function build(map, importer, loader) {
|
||||
function build(map, loader, importer, importerDepth) {
|
||||
const { resolvedSources, sourcesContent } = map;
|
||||
const depth = importerDepth + 1;
|
||||
const children = resolvedSources.map((sourceFile, i) => {
|
||||
// The loading context gives the loader more information about why this file is being loaded
|
||||
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||
@@ -206,6 +207,7 @@ function build(map, importer, loader) {
|
||||
// an unmodified source file.
|
||||
const ctx = {
|
||||
importer,
|
||||
depth,
|
||||
source: sourceFile || '',
|
||||
content: undefined,
|
||||
};
|
||||
@@ -223,7 +225,7 @@ function build(map, importer, loader) {
|
||||
}
|
||||
// Else, it's a real sourcemap, and we need to recurse into it to load its
|
||||
// source files.
|
||||
return build(new TraceMap(sourceMap, source), source, loader);
|
||||
return build(new TraceMap(sourceMap, source), loader, source, depth);
|
||||
});
|
||||
return new SourceMapTree(map, children);
|
||||
}
|
||||
|
||||
Generated
Vendored
+5
-3
@@ -195,14 +195,15 @@
|
||||
'Did you specify these with the most recent transformation maps first?');
|
||||
}
|
||||
}
|
||||
let tree = build(map, '', loader);
|
||||
let tree = build(map, loader, '', 0);
|
||||
for (let i = maps.length - 1; i >= 0; i--) {
|
||||
tree = new SourceMapTree(maps[i], [tree]);
|
||||
}
|
||||
return tree;
|
||||
}
|
||||
function build(map, importer, loader) {
|
||||
function build(map, loader, importer, importerDepth) {
|
||||
const { resolvedSources, sourcesContent } = map;
|
||||
const depth = importerDepth + 1;
|
||||
const children = resolvedSources.map((sourceFile, i) => {
|
||||
// The loading context gives the loader more information about why this file is being loaded
|
||||
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||
@@ -210,6 +211,7 @@
|
||||
// an unmodified source file.
|
||||
const ctx = {
|
||||
importer,
|
||||
depth,
|
||||
source: sourceFile || '',
|
||||
content: undefined,
|
||||
};
|
||||
@@ -227,7 +229,7 @@
|
||||
}
|
||||
// Else, it's a real sourcemap, and we need to recurse into it to load its
|
||||
// source files.
|
||||
return build(new traceMapping.TraceMap(sourceMap, source), source, loader);
|
||||
return build(new traceMapping.TraceMap(sourceMap, source), loader, source, depth);
|
||||
});
|
||||
return new SourceMapTree(map, children);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ampproject/remapping",
|
||||
"version": "2.1.1",
|
||||
"version": "2.1.2",
|
||||
"description": "Remap sequential sourcemaps through transformations to point at the original source code",
|
||||
"keywords": [
|
||||
"source",
|
||||
|
||||
+1
-1
@@ -247,7 +247,7 @@ var _transformAst = require("./transform-ast");
|
||||
|
||||
var _parse = require("./parse");
|
||||
|
||||
const version = "7.17.2";
|
||||
const version = "7.17.5";
|
||||
exports.version = version;
|
||||
const DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
||||
exports.DEFAULT_EXTENSIONS = DEFAULT_EXTENSIONS;
|
||||
|
||||
Generated
Vendored
+12
-44
@@ -15,57 +15,25 @@ function _remapping() {
|
||||
return data;
|
||||
}
|
||||
|
||||
function mergeSourceMap(inputMap, map, source) {
|
||||
const outputSources = map.sources;
|
||||
let result;
|
||||
function mergeSourceMap(inputMap, map, sourceFileName) {
|
||||
const source = sourceFileName.replace(/\\/g, "/");
|
||||
let found = false;
|
||||
|
||||
if (outputSources.length > 1) {
|
||||
const index = outputSources.indexOf(source);
|
||||
|
||||
if (index === -1) {
|
||||
result = emptyMap(inputMap);
|
||||
} else {
|
||||
result = mergeMultiSource(inputMap, map, index);
|
||||
const result = _remapping()(rootless(map), (s, ctx) => {
|
||||
if (s === source && !found) {
|
||||
found = true;
|
||||
ctx.source = "";
|
||||
return rootless(inputMap);
|
||||
}
|
||||
} else {
|
||||
result = mergeSingleSource(inputMap, map);
|
||||
}
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
if (typeof inputMap.sourceRoot === "string") {
|
||||
result.sourceRoot = inputMap.sourceRoot;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function mergeSingleSource(inputMap, map) {
|
||||
return _remapping()([rootless(map), rootless(inputMap)], () => null);
|
||||
}
|
||||
|
||||
function mergeMultiSource(inputMap, map, index) {
|
||||
map.sources[index] = "";
|
||||
let count = 0;
|
||||
return _remapping()(rootless(map), () => {
|
||||
if (count++ === index) return rootless(inputMap);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
function emptyMap(inputMap) {
|
||||
var _inputMap$sourcesCont;
|
||||
|
||||
const inputSources = inputMap.sources;
|
||||
const sources = [];
|
||||
const sourcesContent = (_inputMap$sourcesCont = inputMap.sourcesContent) == null ? void 0 : _inputMap$sourcesCont.filter((content, i) => {
|
||||
if (typeof content !== "string") return false;
|
||||
sources.push(inputSources[i]);
|
||||
return true;
|
||||
});
|
||||
return Object.assign({}, inputMap, {
|
||||
sources,
|
||||
sourcesContent,
|
||||
mappings: ""
|
||||
});
|
||||
return Object.assign({}, result);
|
||||
}
|
||||
|
||||
function rootless(map) {
|
||||
|
||||
+8
-9
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/core",
|
||||
"version": "7.17.2",
|
||||
"version": "7.17.5",
|
||||
"description": "Babel compiler core.",
|
||||
"main": "./lib/index.js",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
@@ -48,15 +48,15 @@
|
||||
"./src/transformation/util/clone-deep.ts": "./src/transformation/util/clone-deep-browser.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ampproject/remapping": "^2.0.0",
|
||||
"@ampproject/remapping": "^2.1.0",
|
||||
"@babel/code-frame": "^7.16.7",
|
||||
"@babel/generator": "^7.17.0",
|
||||
"@babel/generator": "^7.17.3",
|
||||
"@babel/helper-compilation-targets": "^7.16.7",
|
||||
"@babel/helper-module-transforms": "^7.16.7",
|
||||
"@babel/helpers": "^7.17.2",
|
||||
"@babel/parser": "^7.17.0",
|
||||
"@babel/parser": "^7.17.3",
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/traverse": "^7.17.0",
|
||||
"@babel/traverse": "^7.17.3",
|
||||
"@babel/types": "^7.17.0",
|
||||
"convert-source-map": "^1.7.0",
|
||||
"debug": "^4.1.0",
|
||||
@@ -65,13 +65,12 @@
|
||||
"semver": "^6.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helper-transform-fixture-test-runner": "^7.16.7",
|
||||
"@babel/helper-transform-fixture-test-runner": "^7.17.3",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
|
||||
"@jridgewell/trace-mapping": "^0.3.4",
|
||||
"@types/convert-source-map": "^1.5.1",
|
||||
"@types/debug": "^4.1.0",
|
||||
"@types/resolve": "^1.3.2",
|
||||
"@types/semver": "^5.4.0",
|
||||
"@types/source-map": "^0.5.0",
|
||||
"source-map": "0.6.1"
|
||||
"@types/semver": "^5.4.0"
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/generator",
|
||||
"version": "7.17.0",
|
||||
"version": "7.17.3",
|
||||
"description": "Turns an AST into code.",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"license": "MIT",
|
||||
@@ -25,7 +25,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helper-fixtures": "^7.17.0",
|
||||
"@babel/parser": "^7.17.0",
|
||||
"@babel/parser": "^7.17.3",
|
||||
"@jridgewell/trace-mapping": "^0.3.4",
|
||||
"@types/jsesc": "^2.5.0",
|
||||
"@types/source-map": "^0.5.0",
|
||||
"charcodes": "^0.2.0"
|
||||
|
||||
Generated
Vendored
+5
-1
@@ -355,7 +355,11 @@ function buildExportInitializationStatements(programPath, metadata, constantReex
|
||||
}
|
||||
}
|
||||
|
||||
initStatements.sort((a, b) => a[0] > b[0] ? 1 : -1);
|
||||
initStatements.sort(([a], [b]) => {
|
||||
if (a < b) return -1;
|
||||
if (b < a) return 1;
|
||||
return 0;
|
||||
});
|
||||
const results = [];
|
||||
|
||||
if (noIncompleteNsImportDetection) {
|
||||
|
||||
Generated
Vendored
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/helper-module-transforms",
|
||||
"version": "7.16.7",
|
||||
"version": "7.17.6",
|
||||
"description": "Babel helper functions for implementing ES6 module transformations",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-transforms",
|
||||
@@ -21,8 +21,8 @@
|
||||
"@babel/helper-split-export-declaration": "^7.16.7",
|
||||
"@babel/helper-validator-identifier": "^7.16.7",
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/traverse": "^7.16.7",
|
||||
"@babel/types": "^7.16.7"
|
||||
"@babel/traverse": "^7.17.3",
|
||||
"@babel/types": "^7.17.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/parser",
|
||||
"version": "7.17.0",
|
||||
"version": "7.17.3",
|
||||
"description": "A JavaScript parser",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-parser",
|
||||
|
||||
+47
-10
@@ -30,7 +30,13 @@ const {
|
||||
callExpression,
|
||||
cloneNode,
|
||||
expressionStatement,
|
||||
isExpression
|
||||
isAssignmentExpression,
|
||||
isCallExpression,
|
||||
isExpression,
|
||||
isIdentifier,
|
||||
isSequenceExpression,
|
||||
isSuper,
|
||||
thisExpression
|
||||
} = _t;
|
||||
|
||||
function insertBefore(nodes_) {
|
||||
@@ -96,9 +102,28 @@ function _containerInsertAfter(nodes) {
|
||||
return this._containerInsert(this.key + 1, nodes);
|
||||
}
|
||||
|
||||
const last = arr => arr[arr.length - 1];
|
||||
|
||||
function isHiddenInSequenceExpression(path) {
|
||||
return isSequenceExpression(path.parent) && (last(path.parent.expressions) !== path.node || isHiddenInSequenceExpression(path.parentPath));
|
||||
}
|
||||
|
||||
function isAlmostConstantAssignment(node, scope) {
|
||||
if (!isAssignmentExpression(node) || !isIdentifier(node.left)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const blockScope = scope.getBlockParent();
|
||||
return blockScope.hasOwnBinding(node.left.name) && blockScope.getOwnBinding(node.left.name).constantViolations.length <= 1;
|
||||
}
|
||||
|
||||
function insertAfter(nodes_) {
|
||||
this._assertUnremoved();
|
||||
|
||||
if (this.isSequenceExpression()) {
|
||||
return last(this.get("expressions")).insertAfter(nodes_);
|
||||
}
|
||||
|
||||
const nodes = this._verifyNodeList(nodes_);
|
||||
|
||||
const {
|
||||
@@ -123,16 +148,28 @@ function insertAfter(nodes_) {
|
||||
return [this];
|
||||
}
|
||||
|
||||
if (parentPath.isMethod({
|
||||
computed: true,
|
||||
key: node
|
||||
})) {
|
||||
scope = scope.parent;
|
||||
}
|
||||
if (isHiddenInSequenceExpression(this)) {
|
||||
nodes.unshift(node);
|
||||
} else if (isCallExpression(node) && isSuper(node.callee)) {
|
||||
nodes.unshift(node);
|
||||
nodes.push(thisExpression());
|
||||
} else if (isAlmostConstantAssignment(node, scope)) {
|
||||
nodes.unshift(node);
|
||||
nodes.push(cloneNode(node.left));
|
||||
} else if (scope.isPure(node, true)) {
|
||||
nodes.push(node);
|
||||
} else {
|
||||
if (parentPath.isMethod({
|
||||
computed: true,
|
||||
key: node
|
||||
})) {
|
||||
scope = scope.parent;
|
||||
}
|
||||
|
||||
const temp = scope.generateDeclaredUidIdentifier();
|
||||
nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node)));
|
||||
nodes.push(expressionStatement(cloneNode(temp)));
|
||||
const temp = scope.generateDeclaredUidIdentifier();
|
||||
nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node)));
|
||||
nodes.push(expressionStatement(cloneNode(temp)));
|
||||
}
|
||||
}
|
||||
|
||||
return this.replaceExpressionWithStatements(nodes);
|
||||
|
||||
+2
-2
@@ -848,8 +848,8 @@ class Scope {
|
||||
}
|
||||
|
||||
const declarator = variableDeclarator(opts.id, opts.init);
|
||||
declarPath.node.declarations.push(declarator);
|
||||
this.registerBinding(kind, declarPath.get("declarations").pop());
|
||||
const len = declarPath.node.declarations.push(declarator);
|
||||
path.scope.registerBinding(kind, declarPath.get("declarations")[len - 1]);
|
||||
}
|
||||
|
||||
getProgramParent() {
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/traverse",
|
||||
"version": "7.17.0",
|
||||
"version": "7.17.3",
|
||||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-traverse",
|
||||
@@ -17,12 +17,12 @@
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.16.7",
|
||||
"@babel/generator": "^7.17.0",
|
||||
"@babel/generator": "^7.17.3",
|
||||
"@babel/helper-environment-visitor": "^7.16.7",
|
||||
"@babel/helper-function-name": "^7.16.7",
|
||||
"@babel/helper-hoist-variables": "^7.16.7",
|
||||
"@babel/helper-split-export-declaration": "^7.16.7",
|
||||
"@babel/parser": "^7.17.0",
|
||||
"@babel/parser": "^7.17.3",
|
||||
"@babel/types": "^7.17.0",
|
||||
"debug": "^4.1.0",
|
||||
"globals": "^11.1.0"
|
||||
|
||||
+132
-7
@@ -50,7 +50,7 @@ const cleanUpLastTag = (lastTag, mode) => {
|
||||
|
||||
try {
|
||||
parsedType = jsdocTypePrattParser.parse(lastTag.rawType, mode);
|
||||
} catch {// Ignore
|
||||
} catch (err) {// Ignore
|
||||
}
|
||||
|
||||
lastTag.parsedType = parsedType;
|
||||
@@ -134,13 +134,14 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
description: descriptionRoot
|
||||
}
|
||||
} = source[0];
|
||||
const endLine = source.length - 1;
|
||||
const ast = {
|
||||
delimiter: delimiterRoot,
|
||||
description: descriptionRoot,
|
||||
descriptionLines: [],
|
||||
// `end` will be overwritten if there are other entries
|
||||
end: endRoot,
|
||||
endLine: source.length - 1,
|
||||
endLine,
|
||||
postDelimiter: postDelimiterRoot,
|
||||
lineEnd: lineEndRoot,
|
||||
type: 'JsdocBlock'
|
||||
@@ -182,9 +183,35 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
|
||||
const {
|
||||
end: ed,
|
||||
delimiter: de,
|
||||
postDelimiter: pd,
|
||||
...tkns
|
||||
} = tokens;
|
||||
|
||||
if (!tokens.name) {
|
||||
let i = 0;
|
||||
|
||||
while (source[idx + i]) {
|
||||
const {
|
||||
tokens: {
|
||||
name,
|
||||
postName
|
||||
}
|
||||
} = source[idx + i];
|
||||
|
||||
if (name) {
|
||||
tkns.name = name;
|
||||
tkns.postName = postName;
|
||||
break;
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
const tagObj = { ...tkns,
|
||||
postDelimiter: lastDescriptionLine ? pd : '',
|
||||
delimiter: lastDescriptionLine ? de : '',
|
||||
descriptionLines: [],
|
||||
rawType: '',
|
||||
type: 'JsdocTag',
|
||||
@@ -197,24 +224,36 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
|
||||
if (rawType) {
|
||||
// Will strip rawType brackets after this tag
|
||||
lastTag.typeLines.push({
|
||||
lastTag.typeLines.push(lastTag.typeLines.length ? {
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
rawType,
|
||||
start,
|
||||
type: 'JsdocTypeLine'
|
||||
} : {
|
||||
delimiter: '',
|
||||
postDelimiter: '',
|
||||
rawType,
|
||||
start: '',
|
||||
type: 'JsdocTypeLine'
|
||||
});
|
||||
lastTag.rawType += rawType;
|
||||
lastTag.rawType += lastTag.rawType ? '\n' + rawType : rawType;
|
||||
}
|
||||
|
||||
if (description) {
|
||||
const holder = lastTag || ast;
|
||||
holder.descriptionLines.push({
|
||||
holder.descriptionLines.push(holder.descriptionLines.length ? {
|
||||
delimiter,
|
||||
description,
|
||||
postDelimiter,
|
||||
start,
|
||||
type: 'JsdocDescriptionLine'
|
||||
} : {
|
||||
delimiter: '',
|
||||
description,
|
||||
postDelimiter: '',
|
||||
start: '',
|
||||
type: 'JsdocDescriptionLine'
|
||||
});
|
||||
holder.description += holder.description ? '\n' + description : description;
|
||||
} // Clean-up where last line itself has tag content
|
||||
@@ -231,10 +270,10 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
};
|
||||
|
||||
const jsdocVisitorKeys = {
|
||||
JsdocBlock: ['tags', 'descriptionLines'],
|
||||
JsdocBlock: ['descriptionLines', 'tags'],
|
||||
JsdocDescriptionLine: [],
|
||||
JsdocTypeLine: [],
|
||||
JsdocTag: ['descriptionLines', 'typeLines', 'parsedType']
|
||||
JsdocTag: ['parsedType', 'typeLines', 'descriptionLines']
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -626,6 +665,91 @@ const getJSDocComment = function (sourceCode, node, settings) {
|
||||
return findJSDocComment(reducedNode, sourceCode, settings);
|
||||
};
|
||||
|
||||
const stringifiers = {
|
||||
JsdocBlock({
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
lineEnd,
|
||||
end,
|
||||
endLine
|
||||
}, descriptionLines, tags) {
|
||||
return `${delimiter}${postDelimiter}${endLine ? `
|
||||
` : ''}${// Could use `node.description` (and `node.lineEnd`), but lines may have
|
||||
// been modified
|
||||
descriptionLines.length ? descriptionLines.join('') + lineEnd : ''}${tags.length ? tags.join('\n') + lineEnd : ''}${endLine ? `
|
||||
` : ''}${end}`;
|
||||
},
|
||||
|
||||
JsdocDescriptionLine({
|
||||
start,
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
description
|
||||
}) {
|
||||
return `${start}${delimiter}${postDelimiter}${description}`;
|
||||
},
|
||||
|
||||
JsdocTypeLine({
|
||||
start,
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
rawType
|
||||
}) {
|
||||
return `${delimiter}${postDelimiter}{${rawType}}`;
|
||||
},
|
||||
|
||||
JsdocTag(node, parsedType, typeLines, descriptionLines) {
|
||||
const {
|
||||
description,
|
||||
name,
|
||||
postName,
|
||||
postTag,
|
||||
postType,
|
||||
start,
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
tag // , rawType
|
||||
|
||||
} = node;
|
||||
return `${start}${delimiter}${postDelimiter}@${tag}${postTag}${// Could do `rawType` but may have been changed; could also do
|
||||
// `typeLines` but not as likely to be changed
|
||||
// parsedType
|
||||
// Comment this out later in favor of `parsedType`
|
||||
// We can't use raw `typeLines` as first argument has delimiter on it
|
||||
typeLines}${postType}${name ? `${name}${postName || (description ? '\n' : '')}` : ''}${descriptionLines.join('\n')}`;
|
||||
}
|
||||
|
||||
};
|
||||
const visitorKeys = { ...jsdocVisitorKeys,
|
||||
...jsdocTypePrattParser.visitorKeys
|
||||
};
|
||||
/**
|
||||
* @todo convert for use by escodegen (until may be patched to support
|
||||
* custom entries?).
|
||||
* @param {Node} node
|
||||
* @throws {Error}
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
function estreeToString(node) {
|
||||
if (Object.prototype.hasOwnProperty.call(stringifiers, node.type)) {
|
||||
const childNodeOrArray = visitorKeys[node.type];
|
||||
const args = childNodeOrArray.map(key => {
|
||||
return Array.isArray(node[key]) ? node[key].map(item => {
|
||||
return estreeToString(item);
|
||||
}) : node[key] === undefined || node[key] === null ? [] : [estreeToString(node[key])];
|
||||
});
|
||||
return stringifiers[node.type](node, ...args);
|
||||
} // We use raw type instead but it is a key as other apps may wish to traverse
|
||||
|
||||
|
||||
if (node.type.startsWith('JsdocType')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
throw new Error(`Unhandled node type: ${node.type}`);
|
||||
}
|
||||
|
||||
Object.defineProperty(exports, 'jsdocTypeVisitorKeys', {
|
||||
enumerable: true,
|
||||
get: function () { return jsdocTypePrattParser.visitorKeys; }
|
||||
@@ -634,6 +758,7 @@ exports.commentHandler = commentHandler;
|
||||
exports.commentParserToESTree = commentParserToESTree;
|
||||
exports.defaultNoNames = defaultNoNames;
|
||||
exports.defaultNoTypes = defaultNoTypes;
|
||||
exports.estreeToString = estreeToString;
|
||||
exports.findJSDocComment = findJSDocComment;
|
||||
exports.getDecorator = getDecorator;
|
||||
exports.getJSDocComment = getJSDocComment;
|
||||
|
||||
+12
-12
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@es-joy/jsdoccomment",
|
||||
"version": "0.19.0",
|
||||
"version": "0.20.1",
|
||||
"author": "Brett Zamir <brettz9@yahoo.com>",
|
||||
"contributors": [],
|
||||
"description": "Maintained replacement for ESLint's deprecated SourceCode#getJSDocComment along with other jsdoc utilities",
|
||||
@@ -43,45 +43,45 @@
|
||||
"dependencies": {
|
||||
"comment-parser": "1.3.0",
|
||||
"esquery": "^1.4.0",
|
||||
"jsdoc-type-pratt-parser": "~2.2.2"
|
||||
"jsdoc-type-pratt-parser": "~2.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.17.2",
|
||||
"@babel/core": "^7.17.5",
|
||||
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
||||
"@babel/preset-env": "^7.16.11",
|
||||
"@brettz9/eslint-plugin": "^1.0.4",
|
||||
"@rollup/plugin-babel": "^5.3.0",
|
||||
"c8": "^7.11.0",
|
||||
"chai": "^4.3.6",
|
||||
"eslint": "^8.8.0",
|
||||
"eslint-config-ash-nazg": "32.3.0",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint-config-ash-nazg": "32.4.0",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint-plugin-array-func": "^3.1.7",
|
||||
"eslint-plugin-compat": "^4.0.2",
|
||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||
"eslint-plugin-html": "^6.2.0",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jsdoc": "^37.8.2",
|
||||
"eslint-plugin-jsdoc": "^37.9.2",
|
||||
"eslint-plugin-markdown": "^2.2.1",
|
||||
"eslint-plugin-no-unsanitized": "^4.0.1",
|
||||
"eslint-plugin-no-use-extend-native": "^0.5.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
"eslint-plugin-sonarjs": "^0.11.0",
|
||||
"eslint-plugin-unicorn": "^40.1.0",
|
||||
"espree": "^9.3.0",
|
||||
"eslint-plugin-unicorn": "^41.0.0",
|
||||
"espree": "^9.3.1",
|
||||
"estraverse": "^5.3.0",
|
||||
"mocha": "^9.2.0",
|
||||
"rollup": "^2.67.1"
|
||||
"rollup": "^2.67.2"
|
||||
},
|
||||
"scripts": {
|
||||
"open": "open ./coverage/lcov-report/index.html",
|
||||
"rollup": "rollup -c",
|
||||
"eslint": "eslint --ext=js,cjs,md,html .",
|
||||
"lint": "npm run eslint",
|
||||
"mocha": "mocha --parallel --require chai/register-expect.js",
|
||||
"lint": "npm run eslint --",
|
||||
"mocha": "mocha --require chai/register-expect.js",
|
||||
"c8": "c8 npm run mocha",
|
||||
"test": "npm run lint && npm run rollup && npm run c8"
|
||||
},
|
||||
"readme": "# @es-joy/jsdoccomment\n\n[](https://github.com/brettz9/getJSDocComment/actions)\n\nThis project aims to preserve and expand upon the\n`SourceCode#getJSDocComment` functionality of the deprecated ESLint method.\n\nIt also exports a number of functions currently for working with JSDoc:\n\n## API\n\n### `parseComment`\n\nFor parsing `comment-parser` in a JSDoc-specific manner.\nMight wish to have tags with or without tags, etc. derived from a split off\nJSON file.\n\n### `commentParserToESTree`\n\nConverts [comment-parser](https://github.com/syavorsky/comment-parser)\nAST to ESTree/ESLint/Babel friendly AST. See the \"ESLint AST...\" section below.\n\n### `jsdocVisitorKeys`\n\nThe [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\nfor `JsdocBlock`, `JsdocDescriptionLine`, and `JsdocTag`. More likely to be\nsubject to change or dropped in favor of another type parser.\n\n### `jsdocTypeVisitorKeys`\n\nJust a re-export of [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\nfrom [`jsdoc-type-pratt-parser`](https://github.com/simonseyock/jsdoc-type-pratt-parser/).\n\n### `getDefaultTagStructureForMode`\n\nProvides info on JSDoc tags:\n\n- `nameContents` ('namepath-referencing'|'namepath-defining'|\n 'dual-namepath-referencing'|false) - Whether and how a name is allowed\n following any type. Tags without a proper name (value `false`) may still\n have a description (which can appear like a name); `descriptionAllowed`\n in such cases would be `true`.\n The presence of a truthy `nameContents` value is therefore only intended\n to signify whether separate parsing should occur for a name vs. a\n description, and what its nature should be.\n- `nameRequired` (boolean) - Whether a name must be present following any type.\n- `descriptionAllowed` (boolean) - Whether a description (following any name)\n is allowed.\n- `typeAllowed` (boolean) - Whether the tag accepts a curly bracketed portion.\n Even without a type, a tag may still have a name and/or description.\n- `typeRequired` (boolean) - Whether a curly bracketed type must be present.\n- `typeOrNameRequired` (boolean) - Whether either a curly bracketed type is\n required or a name, but not necessarily both.\n\n### Miscellaneous\n\nAlso currently exports these utilities, though they might be removed in the\nfuture:\n\n- `getTokenizers` - Used with `parseComment` (its main core)\n- `toCamelCase` - Convert to CamelCase.\n- `hasSeeWithLink` - A utility to detect if a tag is `@see` and has a `@link`\n- `commentHandler` - Used by `eslint-plugin-jsdoc`. Might be removed in future.\n- `commentParserToESTree`- Converts [comment-parser](https://github.com/syavorsky/comment-parser)\n AST to ESTree/ESLint/Babel friendly AST\n- `jsdocVisitorKeys` - The [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\n for `JSDocBlock`, `JSDocDescriptionLine`, and `JSDocTag`. Might change.\n- `jsdocTypeVisitorKeys` - [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\n for `jsdoc-type-pratt-parser`.\n- `getTokenizers` - A utility. Might be removed in future.\n- `toCamelCase` - A utility. Might be removed in future.\n- `hasSeeWithLink` - A utility to detect if a tag is `@see` and has a `@link`\n- `defaultNoTypes` = The tags which allow no types by default:\n `default`, `defaultvalue`, `see`;\n- `defaultNoNames` - The tags which allow no names by default:\n `access`, `author`, `default`, `defaultvalue`, `description`, `example`,\n `exception`, `license`, `return`, `returns`, `since`, `summary`, `throws`,\n `version`, `variation`\n\n## ESLint AST produced for `comment-parser` nodes (`JsdocBlock`, `JsdocTag`, and `JsdocDescriptionLine`)\n\nNote: Although not added in this package, `@es-joy/jsdoc-eslint-parser` adds\na `jsdoc` property to other ES nodes (using this project's `getJSDocComment`\nto determine the specific comment-block that will be attached as AST).\n\n### `JsdocBlock`\n\nHas two visitable properties:\n\n1. `tags` (an array of `JsdocTag`; see below)\n2. `descriptionLines` (an array of `JsdocDescriptionLine` for multiline\n descriptions).\n\nHas the following custom non-visitable property:\n\n1. `lastDescriptionLine` - A number\n2. `endLine` - A number representing the line number with `end`\n\nMay also have the following non-visitable properties from `comment-parser`:\n\n1. `description` - Same as `descriptionLines` but as a string with newlines.\n2. `delimiter`\n3. `postDelimiter`\n4. `lineEnd`\n5. `end`\n\n### `JsdocTag`\n\nHas three visitable properties:\n\n1. `parsedType` (the `jsdoc-type-pratt-parser` AST representation of the tag's\n type (see the `jsdoc-type-pratt-parser` section below)).\n2. `descriptionLines` (an array of `JsdocDescriptionLine` for multiline\n descriptions)\n3. `typeLines` (an array of `JsdocTypeLine` for multiline type strings)\n\nMay also have the followLine truncated
|
||||
"readme": "# @es-joy/jsdoccomment\n\n[](https://github.com/brettz9/getJSDocComment/actions)\n\nThis project aims to preserve and expand upon the\n`SourceCode#getJSDocComment` functionality of the deprecated ESLint method.\n\nIt also exports a number of functions currently for working with JSDoc:\n\n## API\n\n### `parseComment`\n\nFor parsing `comment-parser` in a JSDoc-specific manner.\nMight wish to have tags with or without tags, etc. derived from a split off\nJSON file.\n\n### `commentParserToESTree`\n\nConverts [comment-parser](https://github.com/syavorsky/comment-parser)\nAST to ESTree/ESLint/Babel friendly AST. See the \"ESLint AST...\" section below.\n\n### `jsdocVisitorKeys`\n\nThe [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\nfor `JsdocBlock`, `JsdocDescriptionLine`, and `JsdocTag`. More likely to be\nsubject to change or dropped in favor of another type parser.\n\n### `jsdocTypeVisitorKeys`\n\nJust a re-export of [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\nfrom [`jsdoc-type-pratt-parser`](https://github.com/simonseyock/jsdoc-type-pratt-parser/).\n\n### `getDefaultTagStructureForMode`\n\nProvides info on JSDoc tags:\n\n- `nameContents` ('namepath-referencing'|'namepath-defining'|\n 'dual-namepath-referencing'|false) - Whether and how a name is allowed\n following any type. Tags without a proper name (value `false`) may still\n have a description (which can appear like a name); `descriptionAllowed`\n in such cases would be `true`.\n The presence of a truthy `nameContents` value is therefore only intended\n to signify whether separate parsing should occur for a name vs. a\n description, and what its nature should be.\n- `nameRequired` (boolean) - Whether a name must be present following any type.\n- `descriptionAllowed` (boolean) - Whether a description (following any name)\n is allowed.\n- `typeAllowed` (boolean) - Whether the tag accepts a curly bracketed portion.\n Even without a type, a tag may still have a name and/or description.\n- `typeRequired` (boolean) - Whether a curly bracketed type must be present.\n- `typeOrNameRequired` (boolean) - Whether either a curly bracketed type is\n required or a name, but not necessarily both.\n\n### Miscellaneous\n\nAlso currently exports these utilities, though they might be removed in the\nfuture:\n\n- `getTokenizers` - Used with `parseComment` (its main core)\n- `toCamelCase` - Convert to CamelCase.\n- `hasSeeWithLink` - A utility to detect if a tag is `@see` and has a `@link`\n- `commentHandler` - Used by `eslint-plugin-jsdoc`. Might be removed in future.\n- `commentParserToESTree`- Converts [comment-parser](https://github.com/syavorsky/comment-parser)\n AST to ESTree/ESLint/Babel friendly AST\n- `jsdocVisitorKeys` - The [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\n for `JSDocBlock`, `JSDocDescriptionLine`, and `JSDocTag`. Might change.\n- `jsdocTypeVisitorKeys` - [VisitorKeys](https://github.com/eslint/eslint-visitor-keys)\n for `jsdoc-type-pratt-parser`.\n- `getTokenizers` - A utility. Might be removed in future.\n- `toCamelCase` - A utility. Might be removed in future.\n- `hasSeeWithLink` - A utility to detect if a tag is `@see` and has a `@link`\n- `defaultNoTypes` = The tags which allow no types by default:\n `default`, `defaultvalue`, `see`;\n- `defaultNoNames` - The tags which allow no names by default:\n `access`, `author`, `default`, `defaultvalue`, `description`, `example`,\n `exception`, `kind`, `license`, `return`, `returns`, `since`, `summary`,\n `throws`, `version`, `variation`\n\n## ESLint AST produced for `comment-parser` nodes (`JsdocBlock`, `JsdocTag`, and `JsdocDescriptionLine`)\n\nNote: Although not added in this package, `@es-joy/jsdoc-eslint-parser` adds\na `jsdoc` property to other ES nodes (using this project's `getJSDocComment`\nto determine the specific comment-block that will be attached as AST).\n\n### `JsdocBlock`\n\nHas two visitable properties:\n\n1. `tags` (an array of `JsdocTag`; see below)\n2. `descriptionLines` (an array of `JsdocDescriptionLine` for multiline\n descriptions).\n\nHas the following custom non-visitable property:\n\n1. `lastDescriptionLine` - A number\n2. `endLine` - A number representing the line number with `end`\n\nMay also have the following non-visitable properties from `comment-parser`:\n\n1. `description` - Same as `descriptionLines` but as a string with newlines.\n2. `delimiter`\n3. `postDelimiter`\n4. `lineEnd`\n5. `end`\n\n### `JsdocTag`\n\nHas three visitable properties:\n\n1. `parsedType` (the `jsdoc-type-pratt-parser` AST representation of the tag's\n type (see the `jsdoc-type-pratt-parser` section below)).\n2. `descriptionLines` (an array of `JsdocDescriptionLine` for multiline\n descriptions)\n3. `typeLines` (an array of `JsdocTypeLine` for multiline type strings)\n\nMay also have thLine truncated
|
||||
}
|
||||
Generated
Vendored
+59
-19
@@ -39,9 +39,10 @@ const cleanUpLastTag = (lastTag, mode) => {
|
||||
|
||||
// With even a multiline type now in full, add parsing
|
||||
let parsedType = null;
|
||||
|
||||
try {
|
||||
parsedType = jsdocTypePrattParse(lastTag.rawType, mode);
|
||||
} catch {
|
||||
} catch (err) {
|
||||
// Ignore
|
||||
}
|
||||
|
||||
@@ -123,6 +124,7 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
description: descriptionRoot
|
||||
}} = source[0];
|
||||
|
||||
const endLine = source.length - 1;
|
||||
const ast = {
|
||||
delimiter: delimiterRoot,
|
||||
description: descriptionRoot,
|
||||
@@ -131,7 +133,7 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
|
||||
// `end` will be overwritten if there are other entries
|
||||
end: endRoot,
|
||||
endLine: source.length - 1,
|
||||
endLine,
|
||||
postDelimiter: postDelimiterRoot,
|
||||
lineEnd: lineEndRoot,
|
||||
|
||||
@@ -175,11 +177,31 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
|
||||
const {
|
||||
end: ed,
|
||||
delimiter: de,
|
||||
postDelimiter: pd,
|
||||
...tkns
|
||||
} = tokens;
|
||||
|
||||
if (!tokens.name) {
|
||||
let i = 0;
|
||||
while (source[idx + i]) {
|
||||
const {tokens: {
|
||||
name,
|
||||
postName
|
||||
}} = source[idx + i];
|
||||
if (name) {
|
||||
tkns.name = name;
|
||||
tkns.postName = postName;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
const tagObj = {
|
||||
...tkns,
|
||||
postDelimiter: lastDescriptionLine ? pd : '',
|
||||
delimiter: lastDescriptionLine ? de : '',
|
||||
descriptionLines: [],
|
||||
rawType: '',
|
||||
type: 'JsdocTag',
|
||||
@@ -195,26 +217,44 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
if (rawType) {
|
||||
// Will strip rawType brackets after this tag
|
||||
lastTag.typeLines.push(
|
||||
{
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
rawType,
|
||||
start,
|
||||
type: 'JsdocTypeLine'
|
||||
}
|
||||
lastTag.typeLines.length
|
||||
? {
|
||||
delimiter,
|
||||
postDelimiter,
|
||||
rawType,
|
||||
start,
|
||||
type: 'JsdocTypeLine'
|
||||
}
|
||||
: {
|
||||
delimiter: '',
|
||||
postDelimiter: '',
|
||||
rawType,
|
||||
start: '',
|
||||
type: 'JsdocTypeLine'
|
||||
}
|
||||
);
|
||||
lastTag.rawType += rawType;
|
||||
lastTag.rawType += lastTag.rawType ? '\n' + rawType : rawType;
|
||||
}
|
||||
|
||||
if (description) {
|
||||
const holder = lastTag || ast;
|
||||
holder.descriptionLines.push({
|
||||
delimiter,
|
||||
description,
|
||||
postDelimiter,
|
||||
start,
|
||||
type: 'JsdocDescriptionLine'
|
||||
});
|
||||
holder.descriptionLines.push(
|
||||
holder.descriptionLines.length
|
||||
? {
|
||||
delimiter,
|
||||
description,
|
||||
postDelimiter,
|
||||
start,
|
||||
type: 'JsdocDescriptionLine'
|
||||
}
|
||||
: {
|
||||
delimiter: '',
|
||||
description,
|
||||
postDelimiter: '',
|
||||
start: '',
|
||||
type: 'JsdocDescriptionLine'
|
||||
}
|
||||
);
|
||||
holder.description += holder.description
|
||||
? '\n' + description
|
||||
: description;
|
||||
@@ -235,10 +275,10 @@ const commentParserToESTree = (jsdoc, mode) => {
|
||||
};
|
||||
|
||||
const jsdocVisitorKeys = {
|
||||
JsdocBlock: ['tags', 'descriptionLines'],
|
||||
JsdocBlock: ['descriptionLines', 'tags'],
|
||||
JsdocDescriptionLine: [],
|
||||
JsdocTypeLine: [],
|
||||
JsdocTag: ['descriptionLines', 'typeLines', 'parsedType']
|
||||
JsdocTag: ['parsedType', 'typeLines', 'descriptionLines']
|
||||
};
|
||||
|
||||
export {commentParserToESTree, jsdocVisitorKeys};
|
||||
Generated
Vendored
+90
@@ -0,0 +1,90 @@
|
||||
import {
|
||||
visitorKeys as jsdocTypePrattParserVisitorKeys
|
||||
} from 'jsdoc-type-pratt-parser';
|
||||
|
||||
import {jsdocVisitorKeys} from './commentParserToESTree.js';
|
||||
|
||||
const stringifiers = {
|
||||
JsdocBlock ({
|
||||
delimiter, postDelimiter, lineEnd, end, endLine
|
||||
}, descriptionLines, tags) {
|
||||
return `${delimiter}${postDelimiter}${endLine
|
||||
? `
|
||||
`
|
||||
: ''}${
|
||||
// Could use `node.description` (and `node.lineEnd`), but lines may have
|
||||
// been modified
|
||||
descriptionLines.length ? descriptionLines.join('') + lineEnd : ''
|
||||
}${
|
||||
tags.length ? tags.join('\n') + lineEnd : ''
|
||||
}${endLine
|
||||
? `
|
||||
`
|
||||
: ''}${end}`;
|
||||
},
|
||||
JsdocDescriptionLine ({
|
||||
start, delimiter, postDelimiter, description
|
||||
}) {
|
||||
return `${start}${delimiter}${postDelimiter}${description}`;
|
||||
},
|
||||
JsdocTypeLine ({
|
||||
start, delimiter, postDelimiter, rawType
|
||||
}) {
|
||||
return `${delimiter}${postDelimiter}{${rawType}}`;
|
||||
},
|
||||
JsdocTag (node, parsedType, typeLines, descriptionLines) {
|
||||
const {
|
||||
description,
|
||||
name, postName, postTag, postType,
|
||||
start, delimiter, postDelimiter, tag
|
||||
// , rawType
|
||||
} = node;
|
||||
|
||||
return `${start}${delimiter}${postDelimiter}@${tag}${postTag}${
|
||||
// Could do `rawType` but may have been changed; could also do
|
||||
// `typeLines` but not as likely to be changed
|
||||
// parsedType
|
||||
// Comment this out later in favor of `parsedType`
|
||||
// We can't use raw `typeLines` as first argument has delimiter on it
|
||||
typeLines
|
||||
}${postType}${
|
||||
name ? `${name}${postName || (description ? '\n' : '')}` : ''
|
||||
}${descriptionLines.join('\n')}`;
|
||||
}
|
||||
};
|
||||
|
||||
const visitorKeys = {...jsdocVisitorKeys, ...jsdocTypePrattParserVisitorKeys};
|
||||
|
||||
/**
|
||||
* @todo convert for use by escodegen (until may be patched to support
|
||||
* custom entries?).
|
||||
* @param {Node} node
|
||||
* @throws {Error}
|
||||
* @returns {string}
|
||||
*/
|
||||
function estreeToString (node) {
|
||||
if (Object.prototype.hasOwnProperty.call(stringifiers, node.type)) {
|
||||
const childNodeOrArray = visitorKeys[node.type];
|
||||
|
||||
const args = childNodeOrArray.map((key) => {
|
||||
return Array.isArray(node[key])
|
||||
? node[key].map((item) => {
|
||||
return estreeToString(item);
|
||||
})
|
||||
: (node[key] === undefined || node[key] === null
|
||||
? []
|
||||
: [estreeToString(node[key])]);
|
||||
});
|
||||
|
||||
return stringifiers[node.type](node, ...args);
|
||||
}
|
||||
|
||||
// We use raw type instead but it is a key as other apps may wish to traverse
|
||||
if (node.type.startsWith('JsdocType')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
throw new Error(`Unhandled node type: ${node.type}`);
|
||||
}
|
||||
|
||||
export default estreeToString;
|
||||
+2
@@ -11,3 +11,5 @@ export * from './parseComment.js';
|
||||
export * from './commentParserToESTree.js';
|
||||
|
||||
export * from './jsdoccomment.js';
|
||||
|
||||
export {default as estreeToString} from './estreeToString.js';
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @fileoverview Stub eslint:all config
|
||||
* @author Nicholas C. Zakas
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
settings: {
|
||||
"eslint:all": true
|
||||
}
|
||||
};
|
||||
Generated
Vendored
-12
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @fileoverview Stub eslint:recommended config
|
||||
* @author Nicholas C. Zakas
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
settings: {
|
||||
"eslint:recommended": true
|
||||
}
|
||||
};
|
||||
+1159
-1124
File diff suppressed because it is too large.
Load diff
Generated
Vendored
+18
-5
@@ -22,13 +22,18 @@
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
import debugOrig from "debug";
|
||||
import os from "os";
|
||||
import path from "path";
|
||||
|
||||
import { ConfigArrayFactory } from "./config-array-factory.js";
|
||||
import {
|
||||
ConfigArray,
|
||||
ConfigDependency,
|
||||
IgnorePattern
|
||||
} from "./config-array/index.js";
|
||||
import ConfigValidator from "./shared/config-validator.js";
|
||||
import { emitDeprecationWarning } from "./shared/deprecation-warnings.js";
|
||||
import { ConfigArrayFactory } from "./config-array-factory.js";
|
||||
import { ConfigArray, ConfigDependency, IgnorePattern } from "./config-array/index.js";
|
||||
import debugOrig from "debug";
|
||||
|
||||
const debug = debugOrig("eslintrc:cascading-config-array-factory");
|
||||
|
||||
@@ -57,7 +62,9 @@ const debug = debugOrig("eslintrc:cascading-config-array-factory");
|
||||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint.
|
||||
* @property {Object} [resolver=ModuleResolver] The module resolver object.
|
||||
* @property {string} eslintAllPath The path to the definitions for eslint:all.
|
||||
* @property {Function} getEslintAllConfig Returns the config data for eslint:all.
|
||||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.
|
||||
* @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -78,7 +85,9 @@ const debug = debugOrig("eslintrc:cascading-config-array-factory");
|
||||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint.
|
||||
* @property {Object} [resolver=ModuleResolver] The module resolver object.
|
||||
* @property {string} eslintAllPath The path to the definitions for eslint:all.
|
||||
* @property {Function} getEslintAllConfig Returns the config data for eslint:all.
|
||||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.
|
||||
* @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.
|
||||
*/
|
||||
|
||||
/** @type {WeakMap<CascadingConfigArrayFactory, CascadingConfigArrayFactoryInternalSlots>} */
|
||||
@@ -219,7 +228,9 @@ class CascadingConfigArrayFactory {
|
||||
loadRules,
|
||||
resolver,
|
||||
eslintRecommendedPath,
|
||||
eslintAllPath
|
||||
getEslintRecommendedConfig,
|
||||
eslintAllPath,
|
||||
getEslintAllConfig
|
||||
} = {}) {
|
||||
const configArrayFactory = new ConfigArrayFactory({
|
||||
additionalPluginPool,
|
||||
@@ -228,7 +239,9 @@ class CascadingConfigArrayFactory {
|
||||
builtInRules,
|
||||
resolver,
|
||||
eslintRecommendedPath,
|
||||
eslintAllPath
|
||||
getEslintRecommendedConfig,
|
||||
eslintAllPath,
|
||||
getEslintAllConfig
|
||||
});
|
||||
|
||||
internalSlotsMap.set(this, {
|
||||
|
||||
Generated
Vendored
+43
-13
@@ -38,22 +38,23 @@
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
import debugOrig from "debug";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import importFresh from "import-fresh";
|
||||
import { createRequire } from "module";
|
||||
import path from "path";
|
||||
import stripComments from "strip-json-comments";
|
||||
import ConfigValidator from "./shared/config-validator.js";
|
||||
import * as naming from "./shared/naming.js";
|
||||
import * as ModuleResolver from "./shared/relative-module-resolver.js";
|
||||
|
||||
import {
|
||||
ConfigArray,
|
||||
ConfigDependency,
|
||||
IgnorePattern,
|
||||
OverrideTester
|
||||
} from "./config-array/index.js";
|
||||
import debugOrig from "debug";
|
||||
import ConfigValidator from "./shared/config-validator.js";
|
||||
import * as naming from "./shared/naming.js";
|
||||
import * as ModuleResolver from "./shared/relative-module-resolver.js";
|
||||
|
||||
import { createRequire } from "module";
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
const debug = debugOrig("eslintrc:config-array-factory");
|
||||
@@ -90,7 +91,9 @@ const configFilenames = [
|
||||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint.
|
||||
* @property {Object} [resolver=ModuleResolver] The module resolver object.
|
||||
* @property {string} eslintAllPath The path to the definitions for eslint:all.
|
||||
* @property {Function} getEslintAllConfig Returns the config data for eslint:all.
|
||||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.
|
||||
* @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -101,7 +104,9 @@ const configFilenames = [
|
||||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint.
|
||||
* @property {Object} [resolver=ModuleResolver] The module resolver object.
|
||||
* @property {string} eslintAllPath The path to the definitions for eslint:all.
|
||||
* @property {Function} getEslintAllConfig Returns the config data for eslint:all.
|
||||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.
|
||||
* @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -428,7 +433,9 @@ class ConfigArrayFactory {
|
||||
builtInRules,
|
||||
resolver = ModuleResolver,
|
||||
eslintAllPath,
|
||||
eslintRecommendedPath
|
||||
getEslintAllConfig,
|
||||
eslintRecommendedPath,
|
||||
getEslintRecommendedConfig
|
||||
} = {}) {
|
||||
internalSlotsMap.set(this, {
|
||||
additionalPluginPool,
|
||||
@@ -439,7 +446,9 @@ class ConfigArrayFactory {
|
||||
builtInRules,
|
||||
resolver,
|
||||
eslintAllPath,
|
||||
eslintRecommendedPath
|
||||
getEslintAllConfig,
|
||||
eslintRecommendedPath,
|
||||
getEslintRecommendedConfig
|
||||
});
|
||||
}
|
||||
|
||||
@@ -797,20 +806,41 @@ class ConfigArrayFactory {
|
||||
* @private
|
||||
*/
|
||||
_loadExtendedBuiltInConfig(extendName, ctx) {
|
||||
const { eslintAllPath, eslintRecommendedPath } = internalSlotsMap.get(this);
|
||||
const {
|
||||
eslintAllPath,
|
||||
getEslintAllConfig,
|
||||
eslintRecommendedPath,
|
||||
getEslintRecommendedConfig
|
||||
} = internalSlotsMap.get(this);
|
||||
|
||||
if (extendName === "eslint:recommended") {
|
||||
const name = `${ctx.name} » ${extendName}`;
|
||||
|
||||
if (getEslintRecommendedConfig) {
|
||||
if (typeof getEslintRecommendedConfig !== "function") {
|
||||
throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`);
|
||||
}
|
||||
return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: "" });
|
||||
}
|
||||
return this._loadConfigData({
|
||||
...ctx,
|
||||
filePath: eslintRecommendedPath,
|
||||
name: `${ctx.name} » ${extendName}`
|
||||
name,
|
||||
filePath: eslintRecommendedPath
|
||||
});
|
||||
}
|
||||
if (extendName === "eslint:all") {
|
||||
const name = `${ctx.name} » ${extendName}`;
|
||||
|
||||
if (getEslintAllConfig) {
|
||||
if (typeof getEslintAllConfig !== "function") {
|
||||
throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`);
|
||||
}
|
||||
return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: "" });
|
||||
}
|
||||
return this._loadConfigData({
|
||||
...ctx,
|
||||
filePath: eslintAllPath,
|
||||
name: `${ctx.name} » ${extendName}`
|
||||
name,
|
||||
filePath: eslintAllPath
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+4
-7
@@ -7,14 +7,11 @@
|
||||
// Requirements
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import createDebug from "debug";
|
||||
import path from "path";
|
||||
|
||||
import { ConfigArrayFactory } from "./config-array-factory.js";
|
||||
import environments from "../conf/environments.js";
|
||||
|
||||
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
import { ConfigArrayFactory } from "./config-array-factory.js";
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Helpers
|
||||
@@ -225,8 +222,8 @@ class FlatCompat {
|
||||
this[cafactory] = new ConfigArrayFactory({
|
||||
cwd: baseDirectory,
|
||||
resolvePluginsRelativeTo,
|
||||
eslintAllPath: path.resolve(dirname, "../conf/eslint-all.cjs"),
|
||||
eslintRecommendedPath: path.resolve(dirname, "../conf/eslint-recommended.cjs")
|
||||
getEslintAllConfig: () => ({ settings: { "eslint:all": true } }),
|
||||
getEslintRecommendedConfig: () => ({ settings: { "eslint:recommended": true } })
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@eslint/eslintrc",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "The legacy ESLintRC config file format for ESLint",
|
||||
"type": "module",
|
||||
"main": "./dist/eslintrc.cjs",
|
||||
|
||||
+4
-7
@@ -106,7 +106,8 @@ const baseSchema = Object.freeze({
|
||||
const debug = createDebug('@hwc/config-array');
|
||||
|
||||
const MINIMATCH_OPTIONS = {
|
||||
matchBase: true
|
||||
matchBase: true,
|
||||
dot: true
|
||||
};
|
||||
|
||||
const CONFIG_TYPES = new Set(['array', 'function']);
|
||||
@@ -315,10 +316,6 @@ function pathMatches(filePath, basePath, config) {
|
||||
throw new TypeError(`Unexpected matcher type ${pattern}.`);
|
||||
};
|
||||
|
||||
const isFilePathIgnored = matcher => {
|
||||
return shouldIgnoreFilePath([matcher], filePath, relativeFilePath);
|
||||
};
|
||||
|
||||
// check for all matches to config.files
|
||||
let filePathMatchesPattern = config.files.some(pattern => {
|
||||
if (Array.isArray(pattern)) {
|
||||
@@ -333,7 +330,7 @@ function pathMatches(filePath, basePath, config) {
|
||||
* if there are any files to ignore.
|
||||
*/
|
||||
if (filePathMatchesPattern && config.ignores) {
|
||||
filePathMatchesPattern = !config.ignores.some(isFilePathIgnored);
|
||||
filePathMatchesPattern = !shouldIgnoreFilePath(config.ignores, filePath, relativeFilePath);
|
||||
}
|
||||
|
||||
return filePathMatchesPattern;
|
||||
@@ -570,7 +567,7 @@ async normalize(context = {}) {
|
||||
if (!this.isNormalized()) {
|
||||
const normalizedConfigs = await normalize(this, context, this.extraConfigTypes);
|
||||
this.length = 0;
|
||||
this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig]));
|
||||
this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this)));
|
||||
this[ConfigArraySymbol.isNormalized] = true;
|
||||
|
||||
// prevent further changes
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@humanwhocodes/config-array",
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.5",
|
||||
"description": "Glob-based configuration matching.",
|
||||
"author": "Nicholas C. Zakas",
|
||||
"main": "api.js",
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ var USAGE =
|
||||
' npx browserslist --env="environment name defined in config"\n' +
|
||||
' npx browserslist --stats="path/to/browserlist/stats/file"\n' +
|
||||
' npx browserslist --mobile-to-desktop\n' +
|
||||
' npx browserslist --ignore-unknown-versions' +
|
||||
' npx browserslist --ignore-unknown-versions\n' +
|
||||
' npx browserslist --update-db'
|
||||
|
||||
function isArg(arg) {
|
||||
|
||||
+1
-1
@@ -1054,7 +1054,7 @@ var QUERIES = [
|
||||
{
|
||||
regexp: /^(firefox|ff|fx)\s+esr$/i,
|
||||
select: function () {
|
||||
return ['firefox 78', 'firefox 91']
|
||||
return ['firefox 91']
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+4
-5
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "browserslist",
|
||||
"version": "4.19.1",
|
||||
"version": "4.19.3",
|
||||
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
||||
"keywords": [
|
||||
"caniuse",
|
||||
@@ -15,16 +15,15 @@
|
||||
"license": "MIT",
|
||||
"repository": "browserslist/browserslist",
|
||||
"dependencies": {
|
||||
"caniuse-lite": "^1.0.30001286",
|
||||
"electron-to-chromium": "^1.4.17",
|
||||
"caniuse-lite": "^1.0.30001312",
|
||||
"electron-to-chromium": "^1.4.71",
|
||||
"escalade": "^3.1.1",
|
||||
"node-releases": "^2.0.1",
|
||||
"node-releases": "^2.0.2",
|
||||
"picocolors": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
||||
},
|
||||
"packageManager": "pnpm@6.23.6",
|
||||
"bin": {
|
||||
"browserslist": "cli.js"
|
||||
},
|
||||
|
||||
+2
-53
@@ -170,64 +170,11 @@ function updateYarnLockfile(lock, latest) {
|
||||
return { content: content, versions: versions }
|
||||
}
|
||||
|
||||
function updatePnpmLockfile(lock, latest) {
|
||||
var versions = {}
|
||||
var lines = lock.content.split('\n')
|
||||
var i
|
||||
var j
|
||||
var lineParts
|
||||
|
||||
for (i = 0; i < lines.length; i++) {
|
||||
if (lines[i].indexOf('caniuse-lite:') >= 0) {
|
||||
lineParts = lines[i].split(/:\s?/, 2)
|
||||
if (lineParts[1].indexOf('/') >= 0) {
|
||||
/* c8 ignore start */
|
||||
var sublineParts = lineParts[1].split(/([/:])/)
|
||||
for (j = 0; j < sublineParts.length; j++) {
|
||||
if (sublineParts[j].indexOf('caniuse-lite') >= 0) {
|
||||
versions[sublineParts[j + 2]] = true
|
||||
sublineParts[j + 2] = latest.version
|
||||
break
|
||||
}
|
||||
}
|
||||
lineParts[1] = sublineParts.join('')
|
||||
/* c8 ignore stop */
|
||||
} else {
|
||||
versions[lineParts[1]] = true
|
||||
}
|
||||
lines[i] = lineParts[0] + ': ' + latest.version
|
||||
} else if (lines[i].indexOf('/caniuse-lite') >= 0) {
|
||||
lineParts = lines[i].split(/([/:])/)
|
||||
for (j = 0; j < lineParts.length; j++) {
|
||||
if (lineParts[j].indexOf('caniuse-lite') >= 0) {
|
||||
versions[lineParts[j + 2]] = true
|
||||
lineParts[j + 2] = latest.version
|
||||
break
|
||||
}
|
||||
}
|
||||
lines[i] = lineParts.join('')
|
||||
for (i = i + 1; i < lines.length; i++) {
|
||||
if (lines[i].indexOf('integrity: ') !== -1) {
|
||||
lines[i] = lines[i].replace(
|
||||
/integrity: .+/,
|
||||
'integrity: ' + latest.dist.integrity
|
||||
)
|
||||
} else if (lines[i].indexOf(' /') !== -1) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return { content: lines.join('\n'), versions: versions }
|
||||
}
|
||||
|
||||
function updateLockfile(lock, latest) {
|
||||
if (!lock.content) lock.content = fs.readFileSync(lock.file).toString()
|
||||
|
||||
if (lock.mode === 'yarn') {
|
||||
return updateYarnLockfile(lock, latest)
|
||||
} else if (lock.mode === 'pnpm') {
|
||||
return updatePnpmLockfile(lock, latest)
|
||||
} else {
|
||||
return updateNpmLockfile(lock, latest)
|
||||
}
|
||||
@@ -328,6 +275,8 @@ module.exports = function updateDB(print) {
|
||||
|
||||
if (lock.mode === 'yarn' && lock.version !== 1) {
|
||||
updateWith(print, 'yarn up -R caniuse-lite')
|
||||
} else if (lock.mode === 'pnpm') {
|
||||
updateWith(print, 'pnpm up caniuse-lite')
|
||||
} else {
|
||||
updatePackageManually(print, lock, latest)
|
||||
}
|
||||
|
||||
Generated
Vendored
+15
-2
@@ -1498,7 +1498,8 @@ module.exports = {
|
||||
"14.2.2",
|
||||
"14.2.3",
|
||||
"14.2.4",
|
||||
"14.2.5"
|
||||
"14.2.5",
|
||||
"14.2.6"
|
||||
],
|
||||
"94.0.4584.0": [
|
||||
"15.0.0-alpha.3",
|
||||
@@ -1585,7 +1586,8 @@ module.exports = {
|
||||
"15.3.3",
|
||||
"15.3.4",
|
||||
"15.3.5",
|
||||
"15.3.6"
|
||||
"15.3.6",
|
||||
"15.3.7"
|
||||
],
|
||||
"95.0.4629.0": [
|
||||
"16.0.0-alpha.1",
|
||||
@@ -1675,6 +1677,10 @@ module.exports = {
|
||||
"16.0.7",
|
||||
"16.0.8"
|
||||
],
|
||||
"96.0.4664.174": [
|
||||
"16.0.9",
|
||||
"16.0.10"
|
||||
],
|
||||
"96.0.4664.4": [
|
||||
"17.0.0-alpha.1",
|
||||
"17.0.0-alpha.2",
|
||||
@@ -1755,10 +1761,17 @@ module.exports = {
|
||||
"98.0.4758.74": [
|
||||
"17.0.0"
|
||||
],
|
||||
"98.0.4758.82": [
|
||||
"17.0.1"
|
||||
],
|
||||
"98.0.4758.102": [
|
||||
"17.1.0"
|
||||
],
|
||||
"99.0.4767.0": [
|
||||
"18.0.0-alpha.1",
|
||||
"18.0.0-alpha.2",
|
||||
"18.0.0-alpha.3",
|
||||
"18.0.0-alpha.4",
|
||||
"18.0.0-nightly.20220111",
|
||||
"18.0.0-nightly.20220112",
|
||||
"18.0.0-nightly.20220113",
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"39.0.2171.65":["0.20.0","0.20.1","0.20.2","0.20.3","0.20.4","0.20.5","0.20.6","0.20.7","0.20.8"],"40.0.2214.91":["0.21.0","0.21.1","0.21.2"],"41.0.2272.76":["0.21.3","0.22.1","0.22.2","0.22.3","0.23.0","0.24.0"],"42.0.2311.107":["0.25.0","0.25.1","0.25.2","0.25.3","0.26.0","0.26.1","0.27.0","0.27.1"],"43.0.2357.65":["0.27.2","0.27.3","0.28.0","0.28.1","0.28.2","0.28.3","0.29.1","0.29.2"],"44.0.2403.125":["0.30.4","0.31.0"],"45.0.2454.85":["0.31.2","0.32.2","0.32.3","0.33.0","0.33.1","0.33.2","0.33.3","0.33.4","0.33.6","0.33.7","0.33.8","0.33.9","0.34.0","0.34.1","0.34.2","0.34.3","0.34.4","0.35.1","0.35.2","0.35.3","0.35.4","0.35.5"],"47.0.2526.73":["0.36.0","0.36.2","0.36.3","0.36.4"],"47.0.2526.110":["0.36.5","0.36.6","0.36.7","0.36.8","0.36.9","0.36.10","0.36.11","0.36.12"],"49.0.2623.75":["0.37.0","0.37.1","0.37.3","0.37.4","0.37.5","0.37.6","0.37.7","0.37.8","1.0.0","1.0.1","1.0.2"],"50.0.2661.102":["1.1.0","1.1.1","1.1.2","1.1.3"],"51.0.2704.63":["1.2.0","1.2.1"],"51.0.2704.84":["1.2.2","1.2.3"],"51.0.2704.103":["1.2.4","1.2.5"],"51.0.2704.106":["1.2.6","1.2.7","1.2.8"],"52.0.2743.82":["1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.9","1.3.10","1.3.13","1.3.14","1.3.15"],"53.0.2785.113":["1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5"],"53.0.2785.143":["1.4.6","1.4.7","1.4.8","1.4.10","1.4.11","1.4.13","1.4.14","1.4.15","1.4.16"],"54.0.2840.51":["1.4.12"],"54.0.2840.101":["1.5.0","1.5.1"],"56.0.2924.87":["1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.6.6","1.6.7","1.6.8","1.6.9","1.6.10","1.6.11","1.6.12","1.6.13","1.6.14","1.6.15","1.6.16","1.6.17","1.6.18"],"58.0.3029.110":["1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9","1.7.10","1.7.11","1.7.12","1.7.13","1.7.14","1.7.15","1.7.16"],"59.0.3071.115":["1.8.0","1.8.1","1.8.2-beta.1","1.8.2-beta.2","1.8.2-beta.3","1.8.2-beta.4","1.8.2-beta.5","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","1.8.8"],"61.0.3163.100":["2.0.0-beta.1","2.0.0-beta.2","2.0.0-beta.3","2.0.0-beta.4","2.0.0-beta.5","2.0.0-beta.6","2.0.0-beta.7","2.0.0-beta.8","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8-nightly.20180819","2.0.8-nightly.20180820","2.0.8","2.0.9","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.1.0-unsupported.20180809"],"66.0.3359.181":["3.0.0-beta.1","3.0.0-beta.2","3.0.0-beta.3","3.0.0-beta.4","3.0.0-beta.5","3.0.0-beta.6","3.0.0-beta.7","3.0.0-beta.8","3.0.0-beta.9","3.0.0-beta.10","3.0.0-beta.11","3.0.0-beta.12","3.0.0-beta.13","3.0.0-nightly.20180818","3.0.0-nightly.20180821","3.0.0-nightly.20180823","3.0.0-nightly.20180904","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.1.0-beta.1","3.1.0-beta.2","3.1.0-beta.3","3.1.0-beta.4","3.1.0-beta.5","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1.9","3.1.10","3.1.11","3.1.12","3.1.13","4.0.0-nightly.20180817","4.0.0-nightly.20180819","4.0.0-nightly.20180821"],"69.0.3497.106":["4.0.0-beta.1","4.0.0-beta.2","4.0.0-beta.3","4.0.0-beta.4","4.0.0-beta.5","4.0.0-beta.6","4.0.0-beta.7","4.0.0-beta.8","4.0.0-beta.9","4.0.0-beta.10","4.0.0-beta.11","4.0.0-nightly.20181010","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6"],"67.0.3396.99":["4.0.0-nightly.20180929"],"68.0.3440.128":["4.0.0-nightly.20181006"],"69.0.3497.128":["4.0.7","4.0.8","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.2.0","4.2.1","4.2.2","4.2.3","4.2.4","4.2.5","4.2.6","4.2.7","4.2.8","4.2.9","4.2.10","4.2.11","4.2.12"],"72.0.3626.52":["5.0.0-beta.1","5.0.0-beta.2"],"73.0.3683.27":["5.0.0-beta.3"],"73.0.3683.54":["5.0.0-beta.4"],"73.0.3683.61":["5.0.0-beta.5"],"73.0.3683.84":["5.0.0-beta.6"],"73.0.3683.94":["5.0.0-beta.7"],"73.0.3683.104":["5.0.0-beta.8"],"73.0.3683.117":["5.0.0-beta.9"],"70.0.3538.110":["5.0.0-nightly.20190107"],"71.0.3578.98":["5.0.0-nightly.20190121","5.0.0-nightly.20190122"],"73.0.3683.119":["5.0.0"],"73.0.3683.121":["5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.0.9","5.0.10","5.0.11","5.0.12","5.0.13"],"76.0.3774.1":["6.0.0-beta.1"],"76.0.3783.1":["6.0.0-beta.2","6.0.0-beta.3","6.0.0-beta.4"],"76.0.3805.4":["6.0.0-beta.5"],"76.0.3809.3":["6.0.0-beta.6"],"76.0.3809.22":["6.0.0-beta.7"],"76.0.3809.26":["6.0.0-beta.8","6.0.0-beta.9"],"76.0.3809.37":["6.0.0-beta.10"],"76.0.3809.42":["6.0.0-beta.11"],"76.0.3809.54":["6.0.0-beta.12"],"76.0.3809.60":["6.0.0-beta.13"],"76.0.3809.68":["6.0.0-beta.14"],"76.0.3809.74":["6.0.0-beta.15"],"72.0.3626.107":["6.0.0-nightly.20190212"],"72.0.3626.110":["6.0.0-nightly.20190213"],"74.0.3724.8":["6.0.0-nightly.20190311"],"76.0.3809.88":["6.0.0"],"76.0.3809.102":["6.0.1"],"76.0.3809.110":["6.0.2"],"76.0.3809.126":["6.0.3"],"76.0.3809.131":["6.0.4"],"76.0.3809.136":["6.0.5"],"76.0.3809.138":["6.0.6"],"76.0.3809.139":["6.0.7"],"76.0.3809.146":["6.0.8","6.0.9","6.0.10","6.0.11","6.0.12","6.1.0","6.1.1","6.1.2","6.1.3","6.1.4","6.1.5","Line truncated
|
||||
{"39.0.2171.65":["0.20.0","0.20.1","0.20.2","0.20.3","0.20.4","0.20.5","0.20.6","0.20.7","0.20.8"],"40.0.2214.91":["0.21.0","0.21.1","0.21.2"],"41.0.2272.76":["0.21.3","0.22.1","0.22.2","0.22.3","0.23.0","0.24.0"],"42.0.2311.107":["0.25.0","0.25.1","0.25.2","0.25.3","0.26.0","0.26.1","0.27.0","0.27.1"],"43.0.2357.65":["0.27.2","0.27.3","0.28.0","0.28.1","0.28.2","0.28.3","0.29.1","0.29.2"],"44.0.2403.125":["0.30.4","0.31.0"],"45.0.2454.85":["0.31.2","0.32.2","0.32.3","0.33.0","0.33.1","0.33.2","0.33.3","0.33.4","0.33.6","0.33.7","0.33.8","0.33.9","0.34.0","0.34.1","0.34.2","0.34.3","0.34.4","0.35.1","0.35.2","0.35.3","0.35.4","0.35.5"],"47.0.2526.73":["0.36.0","0.36.2","0.36.3","0.36.4"],"47.0.2526.110":["0.36.5","0.36.6","0.36.7","0.36.8","0.36.9","0.36.10","0.36.11","0.36.12"],"49.0.2623.75":["0.37.0","0.37.1","0.37.3","0.37.4","0.37.5","0.37.6","0.37.7","0.37.8","1.0.0","1.0.1","1.0.2"],"50.0.2661.102":["1.1.0","1.1.1","1.1.2","1.1.3"],"51.0.2704.63":["1.2.0","1.2.1"],"51.0.2704.84":["1.2.2","1.2.3"],"51.0.2704.103":["1.2.4","1.2.5"],"51.0.2704.106":["1.2.6","1.2.7","1.2.8"],"52.0.2743.82":["1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.9","1.3.10","1.3.13","1.3.14","1.3.15"],"53.0.2785.113":["1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5"],"53.0.2785.143":["1.4.6","1.4.7","1.4.8","1.4.10","1.4.11","1.4.13","1.4.14","1.4.15","1.4.16"],"54.0.2840.51":["1.4.12"],"54.0.2840.101":["1.5.0","1.5.1"],"56.0.2924.87":["1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.6.6","1.6.7","1.6.8","1.6.9","1.6.10","1.6.11","1.6.12","1.6.13","1.6.14","1.6.15","1.6.16","1.6.17","1.6.18"],"58.0.3029.110":["1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9","1.7.10","1.7.11","1.7.12","1.7.13","1.7.14","1.7.15","1.7.16"],"59.0.3071.115":["1.8.0","1.8.1","1.8.2-beta.1","1.8.2-beta.2","1.8.2-beta.3","1.8.2-beta.4","1.8.2-beta.5","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","1.8.8"],"61.0.3163.100":["2.0.0-beta.1","2.0.0-beta.2","2.0.0-beta.3","2.0.0-beta.4","2.0.0-beta.5","2.0.0-beta.6","2.0.0-beta.7","2.0.0-beta.8","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8-nightly.20180819","2.0.8-nightly.20180820","2.0.8","2.0.9","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.1.0-unsupported.20180809"],"66.0.3359.181":["3.0.0-beta.1","3.0.0-beta.2","3.0.0-beta.3","3.0.0-beta.4","3.0.0-beta.5","3.0.0-beta.6","3.0.0-beta.7","3.0.0-beta.8","3.0.0-beta.9","3.0.0-beta.10","3.0.0-beta.11","3.0.0-beta.12","3.0.0-beta.13","3.0.0-nightly.20180818","3.0.0-nightly.20180821","3.0.0-nightly.20180823","3.0.0-nightly.20180904","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.1.0-beta.1","3.1.0-beta.2","3.1.0-beta.3","3.1.0-beta.4","3.1.0-beta.5","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1.9","3.1.10","3.1.11","3.1.12","3.1.13","4.0.0-nightly.20180817","4.0.0-nightly.20180819","4.0.0-nightly.20180821"],"69.0.3497.106":["4.0.0-beta.1","4.0.0-beta.2","4.0.0-beta.3","4.0.0-beta.4","4.0.0-beta.5","4.0.0-beta.6","4.0.0-beta.7","4.0.0-beta.8","4.0.0-beta.9","4.0.0-beta.10","4.0.0-beta.11","4.0.0-nightly.20181010","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6"],"67.0.3396.99":["4.0.0-nightly.20180929"],"68.0.3440.128":["4.0.0-nightly.20181006"],"69.0.3497.128":["4.0.7","4.0.8","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.2.0","4.2.1","4.2.2","4.2.3","4.2.4","4.2.5","4.2.6","4.2.7","4.2.8","4.2.9","4.2.10","4.2.11","4.2.12"],"72.0.3626.52":["5.0.0-beta.1","5.0.0-beta.2"],"73.0.3683.27":["5.0.0-beta.3"],"73.0.3683.54":["5.0.0-beta.4"],"73.0.3683.61":["5.0.0-beta.5"],"73.0.3683.84":["5.0.0-beta.6"],"73.0.3683.94":["5.0.0-beta.7"],"73.0.3683.104":["5.0.0-beta.8"],"73.0.3683.117":["5.0.0-beta.9"],"70.0.3538.110":["5.0.0-nightly.20190107"],"71.0.3578.98":["5.0.0-nightly.20190121","5.0.0-nightly.20190122"],"73.0.3683.119":["5.0.0"],"73.0.3683.121":["5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.0.9","5.0.10","5.0.11","5.0.12","5.0.13"],"76.0.3774.1":["6.0.0-beta.1"],"76.0.3783.1":["6.0.0-beta.2","6.0.0-beta.3","6.0.0-beta.4"],"76.0.3805.4":["6.0.0-beta.5"],"76.0.3809.3":["6.0.0-beta.6"],"76.0.3809.22":["6.0.0-beta.7"],"76.0.3809.26":["6.0.0-beta.8","6.0.0-beta.9"],"76.0.3809.37":["6.0.0-beta.10"],"76.0.3809.42":["6.0.0-beta.11"],"76.0.3809.54":["6.0.0-beta.12"],"76.0.3809.60":["6.0.0-beta.13"],"76.0.3809.68":["6.0.0-beta.14"],"76.0.3809.74":["6.0.0-beta.15"],"72.0.3626.107":["6.0.0-nightly.20190212"],"72.0.3626.110":["6.0.0-nightly.20190213"],"74.0.3724.8":["6.0.0-nightly.20190311"],"76.0.3809.88":["6.0.0"],"76.0.3809.102":["6.0.1"],"76.0.3809.110":["6.0.2"],"76.0.3809.126":["6.0.3"],"76.0.3809.131":["6.0.4"],"76.0.3809.136":["6.0.5"],"76.0.3809.138":["6.0.6"],"76.0.3809.139":["6.0.7"],"76.0.3809.146":["6.0.8","6.0.9","6.0.10","6.0.11","6.0.12","6.1.0","6.1.1","6.1.2","6.1.3","6.1.4","6.1.5","Line truncated
|
||||
+7
@@ -1052,6 +1052,7 @@ module.exports = {
|
||||
"14.2.3": "93.0.4577.82",
|
||||
"14.2.4": "93.0.4577.82",
|
||||
"14.2.5": "93.0.4577.82",
|
||||
"14.2.6": "93.0.4577.82",
|
||||
"15.0.0-alpha.1": "93.0.4566.0",
|
||||
"15.0.0-alpha.2": "93.0.4566.0",
|
||||
"15.0.0-alpha.3": "94.0.4584.0",
|
||||
@@ -1120,6 +1121,7 @@ module.exports = {
|
||||
"15.3.4": "94.0.4606.81",
|
||||
"15.3.5": "94.0.4606.81",
|
||||
"15.3.6": "94.0.4606.81",
|
||||
"15.3.7": "94.0.4606.81",
|
||||
"16.0.0-alpha.1": "95.0.4629.0",
|
||||
"16.0.0-alpha.2": "95.0.4629.0",
|
||||
"16.0.0-alpha.3": "95.0.4629.0",
|
||||
@@ -1192,6 +1194,8 @@ module.exports = {
|
||||
"16.0.6": "96.0.4664.110",
|
||||
"16.0.7": "96.0.4664.110",
|
||||
"16.0.8": "96.0.4664.110",
|
||||
"16.0.9": "96.0.4664.174",
|
||||
"16.0.10": "96.0.4664.174",
|
||||
"17.0.0-alpha.1": "96.0.4664.4",
|
||||
"17.0.0-alpha.2": "96.0.4664.4",
|
||||
"17.0.0-alpha.3": "96.0.4664.4",
|
||||
@@ -1248,9 +1252,12 @@ module.exports = {
|
||||
"17.0.0-nightly.20211116": "96.0.4664.4",
|
||||
"17.0.0-nightly.20211117": "96.0.4664.4",
|
||||
"17.0.0": "98.0.4758.74",
|
||||
"17.0.1": "98.0.4758.82",
|
||||
"17.1.0": "98.0.4758.102",
|
||||
"18.0.0-alpha.1": "99.0.4767.0",
|
||||
"18.0.0-alpha.2": "99.0.4767.0",
|
||||
"18.0.0-alpha.3": "99.0.4767.0",
|
||||
"18.0.0-alpha.4": "99.0.4767.0",
|
||||
"18.0.0-nightly.20211118": "96.0.4664.4",
|
||||
"18.0.0-nightly.20211119": "96.0.4664.4",
|
||||
"18.0.0-nightly.20211122": "96.0.4664.4",
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"0.20.0":"39.0.2171.65","0.20.1":"39.0.2171.65","0.20.2":"39.0.2171.65","0.20.3":"39.0.2171.65","0.20.4":"39.0.2171.65","0.20.5":"39.0.2171.65","0.20.6":"39.0.2171.65","0.20.7":"39.0.2171.65","0.20.8":"39.0.2171.65","0.21.0":"40.0.2214.91","0.21.1":"40.0.2214.91","0.21.2":"40.0.2214.91","0.21.3":"41.0.2272.76","0.22.1":"41.0.2272.76","0.22.2":"41.0.2272.76","0.22.3":"41.0.2272.76","0.23.0":"41.0.2272.76","0.24.0":"41.0.2272.76","0.25.0":"42.0.2311.107","0.25.1":"42.0.2311.107","0.25.2":"42.0.2311.107","0.25.3":"42.0.2311.107","0.26.0":"42.0.2311.107","0.26.1":"42.0.2311.107","0.27.0":"42.0.2311.107","0.27.1":"42.0.2311.107","0.27.2":"43.0.2357.65","0.27.3":"43.0.2357.65","0.28.0":"43.0.2357.65","0.28.1":"43.0.2357.65","0.28.2":"43.0.2357.65","0.28.3":"43.0.2357.65","0.29.1":"43.0.2357.65","0.29.2":"43.0.2357.65","0.30.4":"44.0.2403.125","0.31.0":"44.0.2403.125","0.31.2":"45.0.2454.85","0.32.2":"45.0.2454.85","0.32.3":"45.0.2454.85","0.33.0":"45.0.2454.85","0.33.1":"45.0.2454.85","0.33.2":"45.0.2454.85","0.33.3":"45.0.2454.85","0.33.4":"45.0.2454.85","0.33.6":"45.0.2454.85","0.33.7":"45.0.2454.85","0.33.8":"45.0.2454.85","0.33.9":"45.0.2454.85","0.34.0":"45.0.2454.85","0.34.1":"45.0.2454.85","0.34.2":"45.0.2454.85","0.34.3":"45.0.2454.85","0.34.4":"45.0.2454.85","0.35.1":"45.0.2454.85","0.35.2":"45.0.2454.85","0.35.3":"45.0.2454.85","0.35.4":"45.0.2454.85","0.35.5":"45.0.2454.85","0.36.0":"47.0.2526.73","0.36.2":"47.0.2526.73","0.36.3":"47.0.2526.73","0.36.4":"47.0.2526.73","0.36.5":"47.0.2526.110","0.36.6":"47.0.2526.110","0.36.7":"47.0.2526.110","0.36.8":"47.0.2526.110","0.36.9":"47.0.2526.110","0.36.10":"47.0.2526.110","0.36.11":"47.0.2526.110","0.36.12":"47.0.2526.110","0.37.0":"49.0.2623.75","0.37.1":"49.0.2623.75","0.37.3":"49.0.2623.75","0.37.4":"49.0.2623.75","0.37.5":"49.0.2623.75","0.37.6":"49.0.2623.75","0.37.7":"49.0.2623.75","0.37.8":"49.0.2623.75","1.0.0":"49.0.2623.75","1.0.1":"49.0.2623.75","1.0.2":"49.0.2623.75","1.1.0":"50.0.2661.102","1.1.1":"50.0.2661.102","1.1.2":"50.0.2661.102","1.1.3":"50.0.2661.102","1.2.0":"51.0.2704.63","1.2.1":"51.0.2704.63","1.2.2":"51.0.2704.84","1.2.3":"51.0.2704.84","1.2.4":"51.0.2704.103","1.2.5":"51.0.2704.103","1.2.6":"51.0.2704.106","1.2.7":"51.0.2704.106","1.2.8":"51.0.2704.106","1.3.0":"52.0.2743.82","1.3.1":"52.0.2743.82","1.3.2":"52.0.2743.82","1.3.3":"52.0.2743.82","1.3.4":"52.0.2743.82","1.3.5":"52.0.2743.82","1.3.6":"52.0.2743.82","1.3.7":"52.0.2743.82","1.3.9":"52.0.2743.82","1.3.10":"52.0.2743.82","1.3.13":"52.0.2743.82","1.3.14":"52.0.2743.82","1.3.15":"52.0.2743.82","1.4.0":"53.0.2785.113","1.4.1":"53.0.2785.113","1.4.2":"53.0.2785.113","1.4.3":"53.0.2785.113","1.4.4":"53.0.2785.113","1.4.5":"53.0.2785.113","1.4.6":"53.0.2785.143","1.4.7":"53.0.2785.143","1.4.8":"53.0.2785.143","1.4.10":"53.0.2785.143","1.4.11":"53.0.2785.143","1.4.12":"54.0.2840.51","1.4.13":"53.0.2785.143","1.4.14":"53.0.2785.143","1.4.15":"53.0.2785.143","1.4.16":"53.0.2785.143","1.5.0":"54.0.2840.101","1.5.1":"54.0.2840.101","1.6.0":"56.0.2924.87","1.6.1":"56.0.2924.87","1.6.2":"56.0.2924.87","1.6.3":"56.0.2924.87","1.6.4":"56.0.2924.87","1.6.5":"56.0.2924.87","1.6.6":"56.0.2924.87","1.6.7":"56.0.2924.87","1.6.8":"56.0.2924.87","1.6.9":"56.0.2924.87","1.6.10":"56.0.2924.87","1.6.11":"56.0.2924.87","1.6.12":"56.0.2924.87","1.6.13":"56.0.2924.87","1.6.14":"56.0.2924.87","1.6.15":"56.0.2924.87","1.6.16":"56.0.2924.87","1.6.17":"56.0.2924.87","1.6.18":"56.0.2924.87","1.7.0":"58.0.3029.110","1.7.1":"58.0.3029.110","1.7.2":"58.0.3029.110","1.7.3":"58.0.3029.110","1.7.4":"58.0.3029.110","1.7.5":"58.0.3029.110","1.7.6":"58.0.3029.110","1.7.7":"58.0.3029.110","1.7.8":"58.0.3029.110","1.7.9":"58.0.3029.110","1.7.10":"58.0.3029.110","1.7.11":"58.0.3029.110","1.7.12":"58.0.3029.110","1.7.13":"58.0.3029.110","1.7.14":"58.0.3029.110","1.7.15":"58.0.3029.110","1.7.16":"58.0.3029.110","1.8.0":"59.0.3071.115","1.8.1":"59.0.3071.115","1.8.2-beta.1":"59.0.3071.115","1.8.2-beta.2":"59.0.3071.115","1.8.2-beta.3":"59.0.3071.115","1.8.2-beta.4":"59.0.3071.115","1.8.2-beta.5":"59.0.3071.115","1.8.2":"59.0.3071.115","1.8.3":"59.0.3071.115","1.8.4":"59.0.3071.115","1.8.5":"59.0.3071.115","1.8.6":"59.0.3071.115","1.8.7":"59.0.3071.115","1.8.8":"59.0.3071.115","2.0.0-beta.1":"61.0.3163.100","2.0.0-beta.2":"61.0.3163.100","2.0.0-beta.3":"61.0.3163.100","2.0.0-beta.4":"61.0.3163.100","2.0.0-beta.5":"61.0.3163.100","2.0.0-beta.6":"61.0.3163.100","2.0.0-beta.7":"61.0.3163.100","2.0.0-beta.8":"61.0.3163.100","2.0.0":"61.0.3163.100","2.0.1":"61.0.3163.100","2.0.2":"61.0.3163.100","2.0.3":"61.0.3163.100","2.0.4":"61.0.3163.100","2.0.5":"61.0.3163.100","2.0.6":"61.0.3163.100","2.0.7":"61.0.3163.100","2.0.8-nightly.20180819":"61.0.3163.100","2.0.8-nightly.20180820":"61.0.3163.100","2.0.8":"61.0.3163.100","2.0.9":"61.0.3163.100","2.0.10":"61.0.3163.100","2.0.11":"61.0.3163.100","2.0.12":"61.0.3163.100","2.0.13":"61.0.3163.100","2.0.14":"61.0.3163.100","2.0.15":"61.0.3163.100","2.0.16":"61.0.3163.100","2.0.17":"Line truncated
|
||||
{"0.20.0":"39.0.2171.65","0.20.1":"39.0.2171.65","0.20.2":"39.0.2171.65","0.20.3":"39.0.2171.65","0.20.4":"39.0.2171.65","0.20.5":"39.0.2171.65","0.20.6":"39.0.2171.65","0.20.7":"39.0.2171.65","0.20.8":"39.0.2171.65","0.21.0":"40.0.2214.91","0.21.1":"40.0.2214.91","0.21.2":"40.0.2214.91","0.21.3":"41.0.2272.76","0.22.1":"41.0.2272.76","0.22.2":"41.0.2272.76","0.22.3":"41.0.2272.76","0.23.0":"41.0.2272.76","0.24.0":"41.0.2272.76","0.25.0":"42.0.2311.107","0.25.1":"42.0.2311.107","0.25.2":"42.0.2311.107","0.25.3":"42.0.2311.107","0.26.0":"42.0.2311.107","0.26.1":"42.0.2311.107","0.27.0":"42.0.2311.107","0.27.1":"42.0.2311.107","0.27.2":"43.0.2357.65","0.27.3":"43.0.2357.65","0.28.0":"43.0.2357.65","0.28.1":"43.0.2357.65","0.28.2":"43.0.2357.65","0.28.3":"43.0.2357.65","0.29.1":"43.0.2357.65","0.29.2":"43.0.2357.65","0.30.4":"44.0.2403.125","0.31.0":"44.0.2403.125","0.31.2":"45.0.2454.85","0.32.2":"45.0.2454.85","0.32.3":"45.0.2454.85","0.33.0":"45.0.2454.85","0.33.1":"45.0.2454.85","0.33.2":"45.0.2454.85","0.33.3":"45.0.2454.85","0.33.4":"45.0.2454.85","0.33.6":"45.0.2454.85","0.33.7":"45.0.2454.85","0.33.8":"45.0.2454.85","0.33.9":"45.0.2454.85","0.34.0":"45.0.2454.85","0.34.1":"45.0.2454.85","0.34.2":"45.0.2454.85","0.34.3":"45.0.2454.85","0.34.4":"45.0.2454.85","0.35.1":"45.0.2454.85","0.35.2":"45.0.2454.85","0.35.3":"45.0.2454.85","0.35.4":"45.0.2454.85","0.35.5":"45.0.2454.85","0.36.0":"47.0.2526.73","0.36.2":"47.0.2526.73","0.36.3":"47.0.2526.73","0.36.4":"47.0.2526.73","0.36.5":"47.0.2526.110","0.36.6":"47.0.2526.110","0.36.7":"47.0.2526.110","0.36.8":"47.0.2526.110","0.36.9":"47.0.2526.110","0.36.10":"47.0.2526.110","0.36.11":"47.0.2526.110","0.36.12":"47.0.2526.110","0.37.0":"49.0.2623.75","0.37.1":"49.0.2623.75","0.37.3":"49.0.2623.75","0.37.4":"49.0.2623.75","0.37.5":"49.0.2623.75","0.37.6":"49.0.2623.75","0.37.7":"49.0.2623.75","0.37.8":"49.0.2623.75","1.0.0":"49.0.2623.75","1.0.1":"49.0.2623.75","1.0.2":"49.0.2623.75","1.1.0":"50.0.2661.102","1.1.1":"50.0.2661.102","1.1.2":"50.0.2661.102","1.1.3":"50.0.2661.102","1.2.0":"51.0.2704.63","1.2.1":"51.0.2704.63","1.2.2":"51.0.2704.84","1.2.3":"51.0.2704.84","1.2.4":"51.0.2704.103","1.2.5":"51.0.2704.103","1.2.6":"51.0.2704.106","1.2.7":"51.0.2704.106","1.2.8":"51.0.2704.106","1.3.0":"52.0.2743.82","1.3.1":"52.0.2743.82","1.3.2":"52.0.2743.82","1.3.3":"52.0.2743.82","1.3.4":"52.0.2743.82","1.3.5":"52.0.2743.82","1.3.6":"52.0.2743.82","1.3.7":"52.0.2743.82","1.3.9":"52.0.2743.82","1.3.10":"52.0.2743.82","1.3.13":"52.0.2743.82","1.3.14":"52.0.2743.82","1.3.15":"52.0.2743.82","1.4.0":"53.0.2785.113","1.4.1":"53.0.2785.113","1.4.2":"53.0.2785.113","1.4.3":"53.0.2785.113","1.4.4":"53.0.2785.113","1.4.5":"53.0.2785.113","1.4.6":"53.0.2785.143","1.4.7":"53.0.2785.143","1.4.8":"53.0.2785.143","1.4.10":"53.0.2785.143","1.4.11":"53.0.2785.143","1.4.12":"54.0.2840.51","1.4.13":"53.0.2785.143","1.4.14":"53.0.2785.143","1.4.15":"53.0.2785.143","1.4.16":"53.0.2785.143","1.5.0":"54.0.2840.101","1.5.1":"54.0.2840.101","1.6.0":"56.0.2924.87","1.6.1":"56.0.2924.87","1.6.2":"56.0.2924.87","1.6.3":"56.0.2924.87","1.6.4":"56.0.2924.87","1.6.5":"56.0.2924.87","1.6.6":"56.0.2924.87","1.6.7":"56.0.2924.87","1.6.8":"56.0.2924.87","1.6.9":"56.0.2924.87","1.6.10":"56.0.2924.87","1.6.11":"56.0.2924.87","1.6.12":"56.0.2924.87","1.6.13":"56.0.2924.87","1.6.14":"56.0.2924.87","1.6.15":"56.0.2924.87","1.6.16":"56.0.2924.87","1.6.17":"56.0.2924.87","1.6.18":"56.0.2924.87","1.7.0":"58.0.3029.110","1.7.1":"58.0.3029.110","1.7.2":"58.0.3029.110","1.7.3":"58.0.3029.110","1.7.4":"58.0.3029.110","1.7.5":"58.0.3029.110","1.7.6":"58.0.3029.110","1.7.7":"58.0.3029.110","1.7.8":"58.0.3029.110","1.7.9":"58.0.3029.110","1.7.10":"58.0.3029.110","1.7.11":"58.0.3029.110","1.7.12":"58.0.3029.110","1.7.13":"58.0.3029.110","1.7.14":"58.0.3029.110","1.7.15":"58.0.3029.110","1.7.16":"58.0.3029.110","1.8.0":"59.0.3071.115","1.8.1":"59.0.3071.115","1.8.2-beta.1":"59.0.3071.115","1.8.2-beta.2":"59.0.3071.115","1.8.2-beta.3":"59.0.3071.115","1.8.2-beta.4":"59.0.3071.115","1.8.2-beta.5":"59.0.3071.115","1.8.2":"59.0.3071.115","1.8.3":"59.0.3071.115","1.8.4":"59.0.3071.115","1.8.5":"59.0.3071.115","1.8.6":"59.0.3071.115","1.8.7":"59.0.3071.115","1.8.8":"59.0.3071.115","2.0.0-beta.1":"61.0.3163.100","2.0.0-beta.2":"61.0.3163.100","2.0.0-beta.3":"61.0.3163.100","2.0.0-beta.4":"61.0.3163.100","2.0.0-beta.5":"61.0.3163.100","2.0.0-beta.6":"61.0.3163.100","2.0.0-beta.7":"61.0.3163.100","2.0.0-beta.8":"61.0.3163.100","2.0.0":"61.0.3163.100","2.0.1":"61.0.3163.100","2.0.2":"61.0.3163.100","2.0.3":"61.0.3163.100","2.0.4":"61.0.3163.100","2.0.5":"61.0.3163.100","2.0.6":"61.0.3163.100","2.0.7":"61.0.3163.100","2.0.8-nightly.20180819":"61.0.3163.100","2.0.8-nightly.20180820":"61.0.3163.100","2.0.8":"61.0.3163.100","2.0.9":"61.0.3163.100","2.0.10":"61.0.3163.100","2.0.11":"61.0.3163.100","2.0.12":"61.0.3163.100","2.0.13":"61.0.3163.100","2.0.14":"61.0.3163.100","2.0.15":"61.0.3163.100","2.0.16":"61.0.3163.100","2.0.17":"Line truncated
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "electron-to-chromium",
|
||||
"version": "1.4.69",
|
||||
"version": "1.4.73",
|
||||
"description": "Provides a list of electron-to-chromium version mappings",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
@@ -34,7 +34,7 @@
|
||||
"devDependencies": {
|
||||
"ava": "^4.0.1",
|
||||
"codecov": "^3.8.0",
|
||||
"electron-releases": "^3.947.0",
|
||||
"electron-releases": "^3.951.0",
|
||||
"nyc": "^15.1.0",
|
||||
"request": "^2.65.0",
|
||||
"shelljs": "^0.8.4"
|
||||
|
||||
+1
@@ -81,5 +81,6 @@ module.exports = {
|
||||
"15.3": "94",
|
||||
"16.0": "96",
|
||||
"17.0": "98",
|
||||
"17.1": "98",
|
||||
"18.0": "99"
|
||||
};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"0.20":"39","0.21":"41","0.22":"41","0.23":"41","0.24":"41","0.25":"42","0.26":"42","0.27":"43","0.28":"43","0.29":"43","0.30":"44","0.31":"45","0.32":"45","0.33":"45","0.34":"45","0.35":"45","0.36":"47","0.37":"49","1.0":"49","1.1":"50","1.2":"51","1.3":"52","1.4":"53","1.5":"54","1.6":"56","1.7":"58","1.8":"59","2.0":"61","2.1":"61","3.0":"66","3.1":"66","4.0":"69","4.1":"69","4.2":"69","5.0":"73","6.0":"76","6.1":"76","7.0":"78","7.1":"78","7.2":"78","7.3":"78","8.0":"80","8.1":"80","8.2":"80","8.3":"80","8.4":"80","8.5":"80","9.0":"83","9.1":"83","9.2":"83","9.3":"83","9.4":"83","10.0":"85","10.1":"85","10.2":"85","10.3":"85","10.4":"85","11.0":"87","11.1":"87","11.2":"87","11.3":"87","11.4":"87","11.5":"87","12.0":"89","12.1":"89","12.2":"89","13.0":"91","13.1":"91","13.2":"91","13.3":"91","13.4":"91","13.5":"91","13.6":"91","14.0":"93","14.1":"93","14.2":"93","15.0":"94","15.1":"94","15.2":"94","15.3":"94","16.0":"96","17.0":"98","18.0":"99"}
|
||||
{"0.20":"39","0.21":"41","0.22":"41","0.23":"41","0.24":"41","0.25":"42","0.26":"42","0.27":"43","0.28":"43","0.29":"43","0.30":"44","0.31":"45","0.32":"45","0.33":"45","0.34":"45","0.35":"45","0.36":"47","0.37":"49","1.0":"49","1.1":"50","1.2":"51","1.3":"52","1.4":"53","1.5":"54","1.6":"56","1.7":"58","1.8":"59","2.0":"61","2.1":"61","3.0":"66","3.1":"66","4.0":"69","4.1":"69","4.2":"69","5.0":"73","6.0":"76","6.1":"76","7.0":"78","7.1":"78","7.2":"78","7.3":"78","8.0":"80","8.1":"80","8.2":"80","8.3":"80","8.4":"80","8.5":"80","9.0":"83","9.1":"83","9.2":"83","9.3":"83","9.4":"83","10.0":"85","10.1":"85","10.2":"85","10.3":"85","10.4":"85","11.0":"87","11.1":"87","11.2":"87","11.3":"87","11.4":"87","11.5":"87","12.0":"89","12.1":"89","12.2":"89","13.0":"91","13.1":"91","13.2":"91","13.3":"91","13.4":"91","13.5":"91","13.6":"91","14.0":"93","14.1":"93","14.2":"93","15.0":"94","15.1":"94","15.2":"94","15.3":"94","16.0":"96","17.0":"98","17.1":"98","18.0":"99"}
|
||||
+3
-3
@@ -489,11 +489,11 @@ const getExportAncestor = function (nde) {
|
||||
return false;
|
||||
};
|
||||
|
||||
const canExportedByAncestorType = new Set(['TSPropertySignature', 'TSMethodSignature', 'ClassProperty', 'Method']);
|
||||
const canExportChildrenType = new Set(['TSInterfaceBody', 'TSInterfaceDeclaration', 'ClassDefinition', 'ClassExpression', 'Program']);
|
||||
const canBeExportedByAncestorType = new Set(['TSPropertySignature', 'TSMethodSignature', 'ClassProperty', 'PropertyDefinition', 'Method']);
|
||||
const canExportChildrenType = new Set(['TSInterfaceBody', 'TSInterfaceDeclaration', 'ClassDeclaration', 'ClassBody', 'ClassDefinition', 'ClassExpression', 'Program']);
|
||||
|
||||
const isExportByAncestor = function (nde) {
|
||||
if (!canExportedByAncestorType.has(nde.type)) {
|
||||
if (!canBeExportedByAncestorType.has(nde.type)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -141,7 +141,7 @@ const getDefaultTagStructureForMode = mode => {
|
||||
// "typeExpression"
|
||||
['typeAllowed', isClosureOrPermissive]])], ['public', new Map([// Does not show a signature nor show curly brackets in the example
|
||||
['typeAllowed', isClosureOrPermissive]])], ['requires', new Map([// <someModuleName>
|
||||
['nameRequired', true], ['typeAllowed', false]])], ['returns', new Map([// Shows curly brackets in the signature and in the examples
|
||||
['nameContents', 'namepath-referencing'], ['nameRequired', true], ['typeAllowed', false]])], ['returns', new Map([// Shows curly brackets in the signature and in the examples
|
||||
['typeAllowed', true]])], ['return', new Map([// Shows curly brackets in the signature and in the examples
|
||||
['typeAllowed', true]])], ['see', new Map([// Signature allows for "namepath" or text, so user must configure to
|
||||
// 'namepath-referencing' to enforce checks
|
||||
|
||||
+4
@@ -779,6 +779,8 @@ const makeReport = (context, commentNode) => {
|
||||
|
||||
return report;
|
||||
};
|
||||
/* eslint-disable jsdoc/no-undefined-types -- Need to build this in; see https://www.typescriptlang.org/docs/handbook/utility-types.html */
|
||||
|
||||
/**
|
||||
* @typedef {ReturnType<typeof getUtils>} Utils
|
||||
* @typedef {ReturnType<typeof getSettings>} Settings
|
||||
@@ -797,6 +799,8 @@ const makeReport = (context, commentNode) => {
|
||||
* ) => any } JsdocVisitor
|
||||
*/
|
||||
|
||||
/* eslint-enable jsdoc/no-undefined-types -- Need to build this in */
|
||||
|
||||
|
||||
const iterate = (info, indent, jsdoc, ruleConfig, context, lines, jsdocNode, node, settings, sourceCode, iterator, state, iteratingAll) => {
|
||||
const report = makeReport(context, jsdocNode);
|
||||
|
||||
+143
@@ -14,6 +14,10 @@ var _tagNames = require("./tagNames");
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/* eslint-disable jsdoc/no-undefined-types */
|
||||
|
||||
/**
|
||||
* @typedef {"jsdoc"|"typescript"|"closure"} ParserMode
|
||||
*/
|
||||
let tagStructure;
|
||||
|
||||
const setTagStructure = mode => {
|
||||
@@ -86,6 +90,11 @@ const flattenRoots = (params, root = '') => {
|
||||
rests
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @param {object} propSignature
|
||||
* @returns {undefined|Array|string}
|
||||
*/
|
||||
|
||||
|
||||
const getPropertiesFromPropertySignature = propSignature => {
|
||||
if (propSignature.type === 'TSIndexSignature' || propSignature.type === 'TSConstructSignatureDeclaration' || propSignature.type === 'TSCallSignatureDeclaration') {
|
||||
@@ -100,6 +109,12 @@ const getPropertiesFromPropertySignature = propSignature => {
|
||||
|
||||
return propSignature.key.name;
|
||||
};
|
||||
/**
|
||||
* @param {object} functionNode
|
||||
* @param {boolean} checkDefaultObjects
|
||||
* @returns {Array}
|
||||
*/
|
||||
|
||||
|
||||
const getFunctionParameterNames = (functionNode, checkDefaultObjects) => {
|
||||
// eslint-disable-next-line complexity
|
||||
@@ -243,6 +258,11 @@ const getFunctionParameterNames = (functionNode, checkDefaultObjects) => {
|
||||
return getParamName(param);
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @param {Node} functionNode
|
||||
* @returns {Integer}
|
||||
*/
|
||||
|
||||
|
||||
const hasParams = functionNode => {
|
||||
// Should also check `functionNode.value.params` if supporting `MethodDefinition`
|
||||
@@ -251,6 +271,10 @@ const hasParams = functionNode => {
|
||||
/**
|
||||
* Gets all names of the target type, including those that refer to a path, e.g.
|
||||
* "@param foo; @param foo.bar".
|
||||
*
|
||||
* @param {object} jsdoc
|
||||
* @param {string} targetTagName
|
||||
* @returns {Array<object>}
|
||||
*/
|
||||
|
||||
|
||||
@@ -277,6 +301,10 @@ const getJsdocTagsDeep = (jsdoc, targetTagName) => {
|
||||
};
|
||||
|
||||
const modeWarnSettings = (0, _WarnSettings.default)();
|
||||
/**
|
||||
* @param {string} mode
|
||||
* @param context
|
||||
*/
|
||||
|
||||
const getTagNamesForMode = (mode, context) => {
|
||||
switch (mode) {
|
||||
@@ -308,6 +336,14 @@ const getTagNamesForMode = (mode, context) => {
|
||||
return _tagNames.jsdocTags;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @param context
|
||||
* @param {ParserMode} mode
|
||||
* @param {string} name
|
||||
* @param {object} tagPreference
|
||||
* @returns {string|object}
|
||||
*/
|
||||
|
||||
|
||||
const getPreferredTagName = (context, mode, name, tagPreference = {}) => {
|
||||
var _Object$entries$find;
|
||||
@@ -344,6 +380,14 @@ const getPreferredTagName = (context, mode, name, tagPreference = {}) => {
|
||||
|
||||
return name;
|
||||
};
|
||||
/**
|
||||
* @param context
|
||||
* @param {ParserMode} mode
|
||||
* @param {string} name
|
||||
* @param {Array} definedTags
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const isValidTag = (context, mode, name, definedTags) => {
|
||||
const tagNames = getTagNamesForMode(mode, context);
|
||||
@@ -352,6 +396,12 @@ const isValidTag = (context, mode, name, definedTags) => {
|
||||
const allTags = validTagNames.concat(additionalTags);
|
||||
return allTags.includes(name);
|
||||
};
|
||||
/**
|
||||
* @param {object} jsdoc
|
||||
* @param {string} targetTagName
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const hasTag = (jsdoc, targetTagName) => {
|
||||
const targetTagLower = targetTagName.toLowerCase();
|
||||
@@ -359,6 +409,12 @@ const hasTag = (jsdoc, targetTagName) => {
|
||||
return doc.tag.toLowerCase() === targetTagLower;
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @param {object} jsdoc
|
||||
* @param {Array} targetTagNames
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const hasATag = (jsdoc, targetTagNames) => {
|
||||
return targetTagNames.some(targetTagName => {
|
||||
@@ -391,6 +447,12 @@ const hasDefinedTypeTag = tag => {
|
||||
|
||||
return true;
|
||||
};
|
||||
/**
|
||||
* @param map
|
||||
* @param tag
|
||||
* @returns {Map}
|
||||
*/
|
||||
|
||||
|
||||
const ensureMap = (map, tag) => {
|
||||
if (!map.has(tag)) {
|
||||
@@ -399,6 +461,11 @@ const ensureMap = (map, tag) => {
|
||||
|
||||
return map.get(tag);
|
||||
};
|
||||
/**
|
||||
* @param structuredTags
|
||||
* @param tagMap
|
||||
*/
|
||||
|
||||
|
||||
const overrideTagStructure = (structuredTags, tagMap = tagStructure) => {
|
||||
for (const [tag, {
|
||||
@@ -436,6 +503,12 @@ const overrideTagStructure = (structuredTags, tagMap = tagStructure) => {
|
||||
tagStruct.set('typeOrNameRequired', typeOrNameRequired);
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @param mode
|
||||
* @param structuredTags
|
||||
* @returns {Map}
|
||||
*/
|
||||
|
||||
|
||||
const getTagStructureForMode = (mode, structuredTags) => {
|
||||
const tagStruct = (0, _getDefaultTagStructureForMode.default)(mode);
|
||||
@@ -447,16 +520,34 @@ const getTagStructureForMode = (mode, structuredTags) => {
|
||||
|
||||
return tagStruct;
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const isNamepathDefiningTag = (tag, tagMap = tagStructure) => {
|
||||
const tagStruct = ensureMap(tagMap, tag);
|
||||
return tagStruct.get('nameContents') === 'namepath-defining';
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMustHaveTypePosition = (tag, tagMap = tagStructure) => {
|
||||
const tagStruct = ensureMap(tagMap, tag);
|
||||
return tagStruct.get('typeRequired');
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMightHaveTypePosition = (tag, tagMap = tagStructure) => {
|
||||
if (tagMustHaveTypePosition(tag, tagMap)) {
|
||||
@@ -469,31 +560,66 @@ const tagMightHaveTypePosition = (tag, tagMap = tagStructure) => {
|
||||
};
|
||||
|
||||
const namepathTypes = new Set(['namepath-defining', 'namepath-referencing']);
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
const tagMightHaveNamePosition = (tag, tagMap = tagStructure) => {
|
||||
const tagStruct = ensureMap(tagMap, tag);
|
||||
const ret = tagStruct.get('nameContents');
|
||||
return ret === undefined ? true : Boolean(ret);
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMightHaveNamepath = (tag, tagMap = tagStructure) => {
|
||||
const tagStruct = ensureMap(tagMap, tag);
|
||||
return namepathTypes.has(tagStruct.get('nameContents'));
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMustHaveNamePosition = (tag, tagMap = tagStructure) => {
|
||||
const tagStruct = ensureMap(tagMap, tag);
|
||||
return tagStruct.get('nameRequired');
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMightHaveEitherTypeOrNamePosition = (tag, tagMap) => {
|
||||
return tagMightHaveTypePosition(tag, tagMap) || tagMightHaveNamepath(tag, tagMap);
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMustHaveEitherTypeOrNamePosition = (tag, tagMap) => {
|
||||
const tagStruct = ensureMap(tagMap, tag);
|
||||
return tagStruct.get('typeOrNameRequired');
|
||||
};
|
||||
/**
|
||||
* @param tag
|
||||
* @param {Map} tagMap
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const tagMissingRequiredTypeOrNamepath = (tag, tagMap = tagStructure) => {
|
||||
const mustHaveTypePosition = tagMustHaveTypePosition(tag.tag, tagMap);
|
||||
@@ -1293,16 +1419,33 @@ const exemptSpeciaMethods = (jsdoc, node, context, schema) => {
|
||||
const dropPathSegmentQuotes = str => {
|
||||
return str.replace(/\.(['"])(.*)\1/gu, '.$2');
|
||||
};
|
||||
/**
|
||||
* @param {string} name
|
||||
* @returns {(otherPathName: string) => void}
|
||||
*/
|
||||
|
||||
|
||||
const comparePaths = name => {
|
||||
return otherPathName => {
|
||||
return otherPathName === name || dropPathSegmentQuotes(otherPathName) === dropPathSegmentQuotes(name);
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} otherPathName
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const pathDoesNotBeginWith = (name, otherPathName) => {
|
||||
return !name.startsWith(otherPathName) && !dropPathSegmentQuotes(name).startsWith(dropPathSegmentQuotes(otherPathName));
|
||||
};
|
||||
/**
|
||||
* @param {string} regexString
|
||||
* @param {string} requiredFlags
|
||||
* @returns {RegExp}
|
||||
*/
|
||||
|
||||
|
||||
const getRegexFromString = (regexString, requiredFlags) => {
|
||||
const match = regexString.match(/^\/(.*)\/([gimyus]*)$/us);
|
||||
|
||||
Generated
Vendored
+24
@@ -9,6 +9,21 @@ var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/**
|
||||
* @param {string} targetTagName
|
||||
* @param {boolean} allowExtraTrailingParamDocs
|
||||
* @param {boolean} checkDestructured
|
||||
* @param {boolean} checkRestProperty
|
||||
* @param {RegExp} checkTypesRegex
|
||||
* @param {boolean} disableExtraPropertyReporting
|
||||
* @param {boolean} enableFixer
|
||||
* @param {Array<string>} functionParameterNames
|
||||
* @param jsdoc
|
||||
* @param _jsdocNode
|
||||
* @param utils
|
||||
* @param report
|
||||
* @returns {boolean}
|
||||
*/
|
||||
const validateParameterNames = (targetTagName, allowExtraTrailingParamDocs, checkDestructured, checkRestProperty, checkTypesRegex, disableExtraPropertyReporting, enableFixer, functionParameterNames, jsdoc, _jsdocNode, utils, report) => {
|
||||
const paramTags = Object.entries(jsdoc.tags).filter(([, tag]) => {
|
||||
return tag.tag === targetTagName;
|
||||
@@ -186,6 +201,15 @@ const validateParameterNames = (targetTagName, allowExtraTrailingParamDocs, chec
|
||||
return false;
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @param {string} targetTagName
|
||||
* @param {boolean} _allowExtraTrailingParamDocs
|
||||
* @param {Array<string>} jsdocParameterNames
|
||||
* @param jsdoc
|
||||
* @param {Function} report
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
|
||||
const validateParameterNamesDeep = (targetTagName, _allowExtraTrailingParamDocs, jsdocParameterNames, jsdoc, report) => {
|
||||
let lastRealParameter;
|
||||
|
||||
Generated
Vendored
+15
@@ -9,6 +9,14 @@ var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/**
|
||||
* @param {string} targetTagName
|
||||
* @param {boolean} enableFixer
|
||||
* @param jsdoc
|
||||
* @param jsdocNode
|
||||
* @param utils
|
||||
* @returns {boolean}
|
||||
*/
|
||||
const validatePropertyNames = (targetTagName, enableFixer, jsdoc, jsdocNode, utils) => {
|
||||
const propertyTags = Object.entries(jsdoc.tags).filter(([, tag]) => {
|
||||
return tag.tag === targetTagName;
|
||||
@@ -30,6 +38,13 @@ const validatePropertyNames = (targetTagName, enableFixer, jsdoc, jsdocNode, uti
|
||||
return false;
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @param {string} targetTagName
|
||||
* @param {string[]} jsdocPropertyNames
|
||||
* @param jsdoc
|
||||
* @param {Function} report
|
||||
*/
|
||||
|
||||
|
||||
const validatePropertyNamesDeep = (targetTagName, jsdocPropertyNames, jsdoc, report) => {
|
||||
let lastRealProperty;
|
||||
|
||||
Generated
Vendored
+6
@@ -9,6 +9,12 @@ var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @param {string[]} desiredRoots
|
||||
* @param {number} currentIndex
|
||||
* @returns {[string, boolean, () => T]}
|
||||
*/
|
||||
const rootNamer = (desiredRoots, currentIndex) => {
|
||||
let name;
|
||||
let idx = currentIndex;
|
||||
|
||||
Generated
Vendored
+1
@@ -53,6 +53,7 @@ var _default = (0, _iterateJsdoc.default)(({
|
||||
if (tagName) {
|
||||
// eslint-disable-next-line default-case
|
||||
switch (tagName) {
|
||||
case 'requires':
|
||||
case 'module':
|
||||
{
|
||||
if (!namepath.startsWith('module:')) {
|
||||
|
||||
+21
-12
@@ -5,7 +5,7 @@
|
||||
"url": "http://gajus.com"
|
||||
},
|
||||
"dependencies": {
|
||||
"@es-joy/jsdoccomment": "~0.19.0",
|
||||
"@es-joy/jsdoccomment": "~0.20.1",
|
||||
"comment-parser": "1.3.0",
|
||||
"debug": "^4.3.3",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
@@ -16,8 +16,8 @@
|
||||
},
|
||||
"description": "JSDoc linting rules for ESLint.",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.17.0",
|
||||
"@babel/core": "^7.17.2",
|
||||
"@babel/cli": "^7.17.3",
|
||||
"@babel/core": "^7.17.5",
|
||||
"@babel/eslint-parser": "^7.17.0",
|
||||
"@babel/node": "^7.16.8",
|
||||
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
||||
@@ -25,19 +25,19 @@
|
||||
"@babel/preset-env": "^7.16.11",
|
||||
"@babel/register": "^7.17.0",
|
||||
"@hkdobrev/run-if-changed": "^0.3.1",
|
||||
"@typescript-eslint/parser": "^5.11.0",
|
||||
"@typescript-eslint/parser": "^5.12.0",
|
||||
"babel-plugin-add-module-exports": "^1.0.4",
|
||||
"babel-plugin-istanbul": "^6.1.1",
|
||||
"camelcase": "^6.3.0",
|
||||
"chai": "^4.3.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"decamelize": "^5.0.1",
|
||||
"eslint": "^8.8.0",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint-config-canonical": "^33.0.1",
|
||||
"gitdown": "^3.1.4",
|
||||
"glob": "^7.2.0",
|
||||
"husky": "^7.0.4",
|
||||
"lint-staged": "^12.3.3",
|
||||
"lint-staged": "^12.3.4",
|
||||
"lodash.defaultsdeep": "^4.6.1",
|
||||
"mocha": "^9.2.0",
|
||||
"nyc": "^15.1.0",
|
||||
@@ -64,9 +64,17 @@
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"name": "eslint-plugin-jsdoc",
|
||||
"mocha": {
|
||||
"require": [
|
||||
"@babel/register"
|
||||
],
|
||||
"reporter": "dot",
|
||||
"recursive": true,
|
||||
"timeout": 12000
|
||||
},
|
||||
"nyc": {
|
||||
"branches": 100,
|
||||
"check-coverage": false,
|
||||
"check-coverage": true,
|
||||
"exclude": [
|
||||
"src/rules/checkExamples.js"
|
||||
],
|
||||
@@ -76,6 +84,7 @@
|
||||
],
|
||||
"instrument": false,
|
||||
"lines": 100,
|
||||
"reporter": "text-summary",
|
||||
"require": [
|
||||
"@babel/register"
|
||||
],
|
||||
@@ -102,10 +111,10 @@
|
||||
"lint-arg": "eslint --report-unused-disable-directives",
|
||||
"lint-fix": "npm run lint-arg -- --fix .",
|
||||
"prepare": "husky install",
|
||||
"test": "cross-env BABEL_ENV=test nyc --reporter text-summary mocha --reporter dot --recursive --require @babel/register --timeout 12000",
|
||||
"test-cov": "cross-env BABEL_ENV=test TIMING=1 nyc mocha --reporter dot --recursive --require @babel/register --timeout 12000",
|
||||
"test-index": "cross-env BABEL_ENV=test mocha --recursive --require @babel/register --reporter progress --timeout 12000 test/rules/index.js",
|
||||
"test-no-cov": "cross-env BABEL_ENV=test mocha --reporter dot --recursive --require @babel/register --timeout 12000"
|
||||
"test-no-cov": "cross-env BABEL_ENV=test mocha",
|
||||
"test": "nyc npm run test-no-cov",
|
||||
"test-cov": "cross-env TIMING=1 nyc --reporter text npm run test-no-cov",
|
||||
"test-index": "npm run test-no-cov -- test/rules/index.js"
|
||||
},
|
||||
"version": "37.9.1"
|
||||
"version": "37.9.4"
|
||||
}
|
||||
+2
@@ -134,6 +134,8 @@ function Minimatch (pattern, options) {
|
||||
|
||||
if (!options) options = {}
|
||||
|
||||
pattern = pattern.trim()
|
||||
|
||||
// windows support: need to use /, not \
|
||||
if (!options.allowWindowsEscape && path.sep !== '/') {
|
||||
pattern = pattern.split(path.sep).join('/')
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
|
||||
"name": "minimatch",
|
||||
"description": "a glob matcher in javascript",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"publishConfig": {
|
||||
"tag": "v3-legacy"
|
||||
},
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint",
|
||||
"version": "8.9.0",
|
||||
"version": "8.10.0",
|
||||
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
||||
"description": "An AST-based pattern checker for JavaScript.",
|
||||
"bin": {
|
||||
@@ -47,7 +47,7 @@
|
||||
"homepage": "https://eslint.org",
|
||||
"bugs": "https://github.com/eslint/eslint/issues/",
|
||||
"dependencies": {
|
||||
"@eslint/eslintrc": "^1.1.0",
|
||||
"@eslint/eslintrc": "^1.2.0",
|
||||
"@humanwhocodes/config-array": "^0.9.2",
|
||||
"ajv": "^6.10.0",
|
||||
"chalk": "^4.0.0",
|
||||
@@ -120,6 +120,7 @@
|
||||
"node-polyfill-webpack-plugin": "^1.0.3",
|
||||
"npm-license": "^0.3.3",
|
||||
"nyc": "^15.0.1",
|
||||
"pirates": "^4.0.5",
|
||||
"progress": "^2.0.3",
|
||||
"proxyquire": "^2.0.1",
|
||||
"puppeteer": "^9.1.1",
|
||||
|
||||
Reference in new issue
Block a user