mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
tools: update ESLint to 6.6.0
Update ESLint to 6.6.0 PR-URL: https://github.com/nodejs/node/pull/30123 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
16
tools/node_modules/eslint/lib/source-code/source-code.js
generated
vendored
16
tools/node_modules/eslint/lib/source-code/source-code.js
generated
vendored
@@ -86,13 +86,13 @@ class SourceCode extends TokenStore {
|
||||
|
||||
/**
|
||||
* Represents parsed source code.
|
||||
* @param {string|Object} textOrConfig - The source code text or config object.
|
||||
* @param {string} textOrConfig.text - The source code text.
|
||||
* @param {ASTNode} textOrConfig.ast - The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped.
|
||||
* @param {Object|null} textOrConfig.parserServices - The parser services.
|
||||
* @param {ScopeManager|null} textOrConfig.scopeManager - The scope of this source code.
|
||||
* @param {Object|null} textOrConfig.visitorKeys - The visitor keys to traverse AST.
|
||||
* @param {ASTNode} [astIfNoConfig] - The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped.
|
||||
* @param {string|Object} textOrConfig The source code text or config object.
|
||||
* @param {string} textOrConfig.text The source code text.
|
||||
* @param {ASTNode} textOrConfig.ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped.
|
||||
* @param {Object|null} textOrConfig.parserServices The parser services.
|
||||
* @param {ScopeManager|null} textOrConfig.scopeManager The scope of this source code.
|
||||
* @param {Object|null} textOrConfig.visitorKeys The visitor keys to traverse AST.
|
||||
* @param {ASTNode} [astIfNoConfig] The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped.
|
||||
*/
|
||||
constructor(textOrConfig, astIfNoConfig) {
|
||||
let text, ast, parserServices, scopeManager, visitorKeys;
|
||||
@@ -423,7 +423,7 @@ class SourceCode extends TokenStore {
|
||||
isSpaceBetweenTokens(first, second) {
|
||||
const text = this.text.slice(first.range[1], second.range[0]);
|
||||
|
||||
return /\s/u.test(text.replace(/\/\*.*?\*\//gu, ""));
|
||||
return /\s/u.test(text.replace(/\/\*.*?\*\//gus, ""));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user