@@ -2015,10 +2015,6 @@ module.exports = {
20152015 withinTypeNode,
20162016 findVariableByIdentifier,
20172017 getScope,
2018- /**
2019- * Marks a variable with the given name in the current scope as used. This affects the no-unused-vars rule.
2020- */
2021- markVariableAsUsed,
20222018 /**
20232019 * Checks whether the given node is in export default.
20242020 * @param {ASTNode } node
@@ -2664,26 +2660,6 @@ function isTypeScriptFile(path) {
26642660 return path . endsWith ( '.ts' ) || path . endsWith ( '.tsx' ) || path . endsWith ( '.mts' )
26652661}
26662662
2667- // ------------------------------------------------------------------------------
2668- // ESLint Helpers
2669- // ------------------------------------------------------------------------------
2670- /**
2671- * Marks a variable with the given name in the current scope as used. This affects the no-unused-vars rule.
2672- * @param {RuleContext } context
2673- * @param {string } name
2674- * @param {ASTNode } node The node to get the current scope.
2675- */
2676- function markVariableAsUsed ( context , name , node ) {
2677- const sourceCode = context . sourceCode
2678- if ( sourceCode . markVariableAsUsed ) {
2679- sourceCode . markVariableAsUsed ( name , node )
2680- } else {
2681- // This function does not use the given node, but the currently visited node.
2682- // If we need to determine the scope of a given node, we need to implement it yourself.
2683- context . markVariableAsUsed ?. ( name )
2684- }
2685- }
2686-
26872663// ------------------------------------------------------------------------------
26882664// Vue Helpers
26892665// ------------------------------------------------------------------------------
0 commit comments