MCPcopy Create free account

hub / github.com/mysticatea/eslint-plugin-node / functions

Functions232 in github.com/mysticatea/eslint-plugin-node

↓ 58 callersFunctionreport
* Reports a given node if the specified feature is not supported. * * @param {ASTNode} node - A node to be reported. * @par
lib/rules/no-unsupported-features.js:1154
↓ 45 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/shebang.js:16
↓ 44 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-unpublished-require.js:16
↓ 41 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-missing-require.js:16
↓ 39 callersFunctionfixture
(filename)
tests/lib/rules/file-extension-in-import.js:25
↓ 37 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-unpublished-bin.js:16
↓ 34 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-unpublished-import.js:30
↓ 33 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-missing-import.js:30
↓ 16 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-extraneous-require.js:16
↓ 15 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-unsupported-features/es-syntax.js:24
↓ 14 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-extraneous-import.js:30
↓ 14 callersFunctionfixture
* Makes a file path to a fixture. * @param {string} name - A name. * @returns {string} A file path to a fixture.
tests/lib/rules/no-unsupported-features.js:120
↓ 11 callersMethodget
* Get the cached value of the given key. * @param {any} key The key to get. * @returns {any} The cached value or null.
lib/util/cache.js:27
↓ 9 callersMethodmatch
* Check if a given importee is disallowed. * @param {ImportTarget} importee The importee to check. * @returns {boolean} `true` if the import
lib/util/check-restricted.js:55
↓ 7 callersMethodset
* Set the value of the given key. * @param {any} key The key to set. * @param {any} value The value to set. * @returns {void}
lib/util/cache.js:47
↓ 5 callersFunctionenumeratePropertyNames
* Enumerate property names of a given object recursively. * @param {object} trackMap The map for APIs to enumerate. * @param {string[]|undefined} pa
lib/util/enumerate-property-names.js:15
↓ 4 callersFunctionor
* @param {function} f - A function. * @param {function} g - A function. * @param {function|null} h - A function. * @returns {function} A logical-or
lib/util/get-npmignore.js:46
↓ 3 callersFunctionand
* @param {function} f - A function. * @param {function} g - A function. * @returns {function} A logical-and function of `f` and `g`.
lib/util/get-npmignore.js:36
↓ 3 callersFunctionfilterNeverIgnoredFiles
* Creates a function which checks whether or not a given file is ignoreable. * * @param {object} p - An object of package.json. * @returns {functio
lib/util/get-npmignore.js:64
↓ 3 callersFunctiongetLocation
* Gets the location info of reports. * * exports = foo * ^^^^^^^^^ * * module.exports = foo * ^^
lib/rules/exports-style.js:185
↓ 3 callersFunctiongetReferences
* Gets the references of the specified global variables. * * @param {string[]} names - Variable names to get. * @returns {v
lib/rules/no-unsupported-features.js:1093
↓ 3 callersFunctiongetTopAssignment
* Gets the top assignment expression node if the given node is an assignee. * * This is used to distinguish 2 assignees belong to the same assignmen
lib/rules/exports-style.js:74
↓ 3 callersFunctionhasPattern
* Check a given string has a given pattern. * @param {string} s A string to check. * @param {RegExp} pattern A RegExp object to check. * @returns {
lib/rules/no-unsupported-features.js:1037
↓ 3 callersFunctionhasTrailingCommaForFunction
* Checks whether the given function has trailing commas or not. * * @param {ASTNode} node - The function node to check. * @
lib/rules/no-unsupported-features.js:1111
↓ 3 callersFunctionsafeRequire
* Imports a specific module. * @param {...string} moduleNames - module names to import. * @returns {object|null} The imported object, or null.
lib/rules/process-exit-as-throw.js:28
↓ 2 callersFunctioncollectFirstChars
* Get the first char of a given node. * @param {TemplateLiteral} node The `TemplateLiteral` node to get. * @param {Set<Node>} sepNodes The nodes of
lib/rules/no-path-concat.js:53
↓ 2 callersFunctioncollectFirstCharsOfTemplateElement
* Get the first char of the specified template element. * @param {TemplateLiteral} node The `TemplateLiteral` node to get. * @param {number} i The n
lib/rules/no-path-concat.js:19
↓ 2 callersFunctioncreateAssignmentList
* Gets top assignment nodes of the given node list. * * @param {ASTNode[]} nodes - The node list to get. * @returns {ASTNode[]} Gotten top assignme
lib/rules/exports-style.js:104
↓ 2 callersFunctionextendsNull
* Checks whether the given class extends from null or not. * * @param {ASTNode} node - The class node to check. * @returns
lib/rules/no-unsupported-features.js:1139
↓ 2 callersFunctionfindClosestParentOfType
* Find the closest parent matching a list of types. * @param {ASTNode} node The node whose parents we are searching * @param {Array}
lib/rules/callback-return.js:39
↓ 2 callersFunctionget
* Gets `tryExtensions` property from a given option object. * * @param {object|undefined} option - An option object to get. * @returns {string[]|nu
lib/util/get-try-extensions.js:15
↓ 2 callersFunctionget
* Gets `allowModules` property from a given option object. * * @param {object|undefined} option - An option object to get. * @returns {string[]|nul
lib/util/get-allow-modules.js:15
↓ 2 callersFunctionget
* Gets `resolvePaths` property from a given option object. * * @param {object|undefined} option - An option object to get. * @returns {string[]|nul
lib/util/get-resolve-paths.js:15
↓ 2 callersFunctiongetDeclarationType
* Determines the type of a declaration statement. * @param {ASTNode} initExpression The init node of the VariableDeclarator. * @retu
lib/rules/no-mixed-requires.js:134
↓ 2 callersFunctiongetExportsNodes
* Gets the reference of `exports` from the given scope. * * @param {escope.Scope} scope - The scope to get. * @returns {ASTNode[]} Gotten Identifie
lib/rules/exports-style.js:134
↓ 2 callersFunctiongetModuleExportsNodes
* Gets the reference of `module.exports` from the given scope. * * @param {escope.Scope} scope - The scope to get. * @returns {ASTNode[]} Gotten Me
lib/rules/exports-style.js:114
↓ 2 callersFunctionhasTrailingCommaForCall
* Checks whether the given call expression has trailing commas or not. * * @param {ASTNode} node - The call expression node to check
lib/rules/no-unsupported-features.js:1126
↓ 2 callersFunctionhasUnicodeCodePointEscape
* Checks whether the given string has `\u{90ABCDEF}`-like escapes. * * @param {string} raw - The string to check. * @returns {boolean} `true` if th
lib/rules/no-unsupported-features.js:1018
↓ 2 callersFunctionisAssignee
* Checks whether the given node is assignee or not. * * @param {ASTNode} node - The node to check. * @returns {boolean} `true` if the node is assig
lib/rules/exports-style.js:59
↓ 2 callersFunctionisCallbackExpression
* Determines whether or not the callback is part of a callback expression. * @param {ASTNode} node The callback node * @param {ASTNo
lib/rules/callback-return.js:89
↓ 2 callersFunctionisModuleExports
(node, scope)
lib/rules/no-exports-assign.js:21
↓ 2 callersFunctionmatch
* Check if matched or not. * @param {InstanceType<Minimatch>} matcher The matcher. * @param {boolean} absolute The flag that the matcher is for abso
lib/util/check-restricted.js:23
↓ 2 callersFunctionnot
* @param {function} f - A function. * @returns {function} A logical-not function of `f`.
lib/util/get-npmignore.js:54
↓ 2 callersFunctionparse
* Parses `convertPath` property from a given option object. * * @param {object|undefined} option - An option object to get. * @returns {function|nu
lib/util/get-convert-path.js:99
↓ 2 callersFunctionreportItem
* Reports a use of a deprecated API. * * @param {ASTNode} node - A node to report. * @param {string} name - The name of a d
lib/rules/no-deprecated-api.js:739
↓ 2 callersFunctionsimulateNodeResolutionAlgorithm
(filePath, binField)
lib/rules/shebang.js:15
↓ 2 callersFunctiontoName
* Convert a given path to name. * @param {symbol} type The report type. * @param {string[]} path The property access path. * @returns {string} The
lib/rules/no-deprecated-api.js:657
↓ 2 callersFunctiontoRelative
lib/util/check-publish.js:33
↓ 2 callersFunctiontoStringArray
* Ensures the given value is a string array. * * @param {any} x - The value to ensure. * @returns {string[]} The string array.
lib/util/get-convert-path.js:41
↓ 2 callersFunctionvalidateRegExp
* Validate RegExp syntax. * @param {string} pattern A RegExp pattern to check. * @param {string} flags A RegExp flags to check.
lib/rules/no-unsupported-features.js:1193
↓ 1 callersFunctioncombine
* Combines given converters. * The result function converts a given path with the first matched converter. * * @param {{match: function, convert: f
lib/util/get-convert-path.js:82
↓ 1 callersFunctionconcat
* Concatenate patterns. * @param {Array<{valid:Array,invalid:Array}>} patterns The patterns to concat. * @returns {{valid:Array,invalid:Array}} The
tests/lib/rules/no-unsupported-features/es-syntax.js:61
↓ 1 callersFunctionconcat
* Concatenate patterns. * @param {Array<{valid:Array,invalid:Array}>} patterns The patterns to concat. * @returns {{valid:Array,invalid:Array}} The
tests/lib/rules/no-unsupported-features/node-builtins.js:15
↓ 1 callersFunctionconcat
* Concatenate patterns. * @param {Array<{valid:Array,invalid:Array}>} patterns The patterns to concat. * @returns {{valid:Array,invalid:Array}} The
tests/lib/rules/no-unsupported-features/es-builtins.js:40
↓ 1 callersFunctioncontainsOnlyIdentifiers
* Check to see if a node contains only identifers * @param {ASTNode} node The node to check * @returns {boolean} Whether or not the
lib/rules/callback-return.js:54
↓ 1 callersFunctioncouldBeError
* Determine if a node has a possiblity to be an Error object * @param {ASTNode} node ASTNode to check * @returns {boolean} True if there is
lib/rules/no-callback-literal.js:55
↓ 1 callersFunctioncreateMatch
* Creates the function which checks whether a file path is matched with the given pattern or not. * * @param {string[]} includePatterns - The glob p
lib/util/get-convert-path.js:55
↓ 1 callersFunctioncreateRestrictions
* Create restrictions. * @param {(string | DefinitionData | GlobDefinition)[]} defs Definitions. * @returns {(Restriction | GlobRestriction)[]} Crea
lib/util/check-restricted.js:83
↓ 1 callersFunctiondefineConvert
* Creates a function which replaces a given path. * * @param {RegExp} fromRegexp - A `RegExp` object to replace. * @param {string} toStr - A new st
lib/util/get-convert-path.js:71
↓ 1 callersFunctiondefineVisitor
* Define the visitor object as merging the rules of eslint-plugin-es. * @param {RuleContext} context The rule context. * @param {{version:Range,igno
lib/rules/no-unsupported-features/es-syntax.js:425
↓ 1 callersFunctionenforceExports
* Enforces `exports`. * This warns references of `module.exports`. * * @returns {void}
lib/rules/exports-style.js:231
↓ 1 callersFunctionenforceModuleExports
* Enforces `module.exports`. * This warns references of `exports`. * * @returns {void}
lib/rules/exports-style.js:199
↓ 1 callersFunctionexistsCaseSensitive
* Check whether the file exists or not. * @param {string} filePath The file path to check. * @returns {boolean} `true` if the file exists.
lib/util/exists.js:19
↓ 1 callersFunctionfindReference
* Finds the eslint-scope reference in the given scope. * @param {Object} scope The scope to search. * @param {ASTNode} node The identifier node. *
lib/rules/global-require.js:24
↓ 1 callersFunctionforwardCurrentToHead
* Copied from https://github.com/eslint/eslint/blob/16fad5880bb70e9dddbeab8ed0f425ae51f5841f/lib/code-path-analysis/code-path-analyzer.js#L137 * * @
lib/rules/process-exit-as-throw.js:47
↓ 1 callersFunctiongetDefaultVersion
* Gets default version configuration of this rule. * * This finds and reads 'package.json' file, then parses 'engines.node' field. * If it's nothin
lib/rules/no-unsupported-features.js:875
↓ 1 callersFunctiongetEnginesNode
* Get the `engines.node` field of package.json. * @param {string} filename The path to the current linting file. * @returns {Range|null} The range o
lib/util/get-configured-node-version.js:16
↓ 1 callersFunctiongetExistingExtensions
* Get all file extensions of the files which have the same basename. * @param {string} filePath The path to the original file to check. * @returns {
lib/rules/file-extension-in-import.js:19
↓ 1 callersFunctiongetFilePath
* Resolve the given id to file paths. * @param {boolean} isModule The flag which indicates this id is a module. * @param {string} id The id to resol
lib/util/import-target.js:18
↓ 1 callersFunctiongetIgnoresEnum
* Gets values of the `ignores` option. * * @returns {string[]} Values of the `ignores` option.
lib/rules/no-unsupported-features.js:887
↓ 1 callersFunctiongetModuleName
* Gets the module name of a given path. * * e.g. `eslint/lib/ast-utils` -> `eslint` * * @param {string} nameOrPath - A path to get. * @returns {s
lib/util/import-target.js:37
↓ 1 callersFunctiongetParameters
* Get the parameters of a given function scope. * @param {Object} scope The function scope. * @returns {Array} All parameters of the
lib/rules/handle-callback-err.js:61
↓ 1 callersFunctiongetShebangInfo
* Gets the shebang line (includes a line ending) from a given code. * * @param {SourceCode} sourceCode - A source code object to check. * @returns
lib/rules/shebang.js:58
↓ 1 callersFunctiongetStaticPropertyName
* This function is copied from https://github.com/eslint/eslint/blob/2355f8d0de1d6732605420d15ddd4f1eee3c37b6/lib/ast-utils.js#L648-L684 * * @param
lib/rules/exports-style.js:15
↓ 1 callersFunctionignores
* Clone given invalid patterns with adding `ignores` option. * @param {string} keyword The keyword of `ignores` option. * @returns {function(pattern
tests/lib/rules/no-unsupported-features/es-syntax.js:37
↓ 1 callersFunctionignores
* Clone given invalid patterns with adding `ignores` option. * @param {string} keyword The keyword of `ignores` option. * @returns {function(pattern
tests/lib/rules/no-unsupported-features/es-builtins.js:16
↓ 1 callersFunctioninferModuleType
* Determines the type of module that is loaded via require. * @param {ASTNode} initExpression The init node of the VariableDeclarator.
lib/rules/no-mixed-requires.js:170
↓ 1 callersFunctionisBinFile
* Checks whether or not a given path is a `bin` file. * * @param {string} filePath - A file path to check. * @param {string|object|undefined} binFi
lib/rules/shebang.js:32
↓ 1 callersFunctionisBinFile
* Checks whether or not a given path is a `bin` file. * * @param {string} filePath - A file path to check. * @param {string|object|undefined} binFi
lib/rules/no-unpublished-bin.js:20
↓ 1 callersFunctionisCallback
* Check to see if a CallExpression is in our callback list. * @param {ASTNode} node The node to check against our callback names list.
lib/rules/callback-return.js:76
↓ 1 callersFunctionisCallback
(name)
lib/rules/no-callback-literal.js:25
↓ 1 callersFunctionisConcat
* Check if the given Identifier node is followed by string concatenation with a * path separator. * @param {Identifier} node The `__dirname` or `__f
lib/rules/no-path-concat.js:131
↓ 1 callersFunctionisExports
(node, scope)
lib/rules/no-exports-assign.js:9
↓ 1 callersFunctionisGrouped
* Check if all require declarations in the given list are of the same * type. * @param {ASTNode} declarations The list of VariableDe
lib/rules/no-mixed-requires.js:227
↓ 1 callersFunctionisIgnored
* Checks whether a given key should be ignored or not. * * @param {string} key - A key to check. * @param {string[]} ignores - An array of keys and
lib/rules/no-unsupported-features.js:906
↓ 1 callersFunctionisMixed
* Check if the list of variable declarations is mixed, i.e. whether it * contains both require and other declarations. * @param {AST
lib/rules/no-mixed-requires.js:206
↓ 1 callersFunctionisNotSupportingOn
* Define the predicate function to check whether a given case object is supported on the configured node version. * @param {Node} node The node w
lib/rules/no-unsupported-features/es-syntax.js:449
↓ 1 callersFunctionisNotSupportingVersion
* Check whether a given case object is full-supported on the configured node version. * @param {{supported:string}} aCase The case object to chec
lib/rules/no-unsupported-features/es-syntax.js:437
↓ 1 callersFunctionisPattern
* Checks if the given argument should be interpreted as a regexp pattern. * @param {string} stringToCheck The string which should be checked.
lib/rules/handle-callback-err.js:36
↓ 1 callersFunctionisProcessExit
* Checks whether a given node is `process.exit()` or not. * * @param {ASTNode} node - A node to check. * @returns {boolean} `true` if the node is `
lib/rules/process-exit-as-throw.js:100
↓ 1 callersFunctionisShadowed
* Checks if the given identifier node is shadowed in the given scope. * @param {Object} scope The current scope. * @param {ASTNode} node The identif
lib/rules/global-require.js:44
↓ 1 callersFunctionisSupported
* Check if it has been supported. * @param {SupportInfo} info The support info. * @param {Range} configured The configured version range.
lib/util/check-unsupported-builtins.js:38
↓ 1 callersFunctionmatchesConfiguredErrorName
* Checks if the given name matches the configured error argument. * @param {string} name The name which should be compared. * @retur
lib/rules/handle-callback-err.js:47
↓ 1 callersFunctionnormalizeScope
* Find the scope that a given node belongs to. * @param {Scope} initialScope The initial scope to find. * @param {Node} node The AST node. * @retur
lib/rules/no-unsupported-features.js:1002
↓ 1 callersFunctionnormalizeScope
* Find the scope that a given node belongs to. * @param {Scope} initialScope The initial scope to find. * @param {Node} node The AST node. * @retur
lib/rules/no-unsupported-features/es-syntax.js:409
↓ 1 callersFunctionnormalizeValue
* Converts old-style value to new-style value. * * @param {any} x - The value to convert. * @returns {({include: string[], exclude: string[], repla
lib/util/get-convert-path.js:23
↓ 1 callersFunctionparseNpmignore
* Creates a function which checks whether or not a given file should be ignored. * * @param {string} basedir - The directory path "package.json" exi
lib/util/get-npmignore.js:116
↓ 1 callersFunctionparseOptions
* Parses the options. * * @param {number|string|object|undefined} options - An option object to parse. * @param {number} defaultVersion - The defau
lib/rules/no-unsupported-features.js:920
↓ 1 callersFunctionparseOptions
* Parses the options. * @param {RuleContext} context The rule context. * @returns {{version:Range,ignoredGlobalItems:Set<string>,ignoredModuleItems:
lib/rules/no-deprecated-api.js:672
↓ 1 callersFunctionparseOptions
* Parses the options. * @param {RuleContext} context The rule context. * @returns {{version:Range,ignores:Set<string>}} Parsed value.
lib/rules/no-unsupported-features/es-syntax.js:394
next →1–100 of 232, ranked by callers