ESLint utility (v1.0.1) for creating sub-traversals of AST nodes within ESLint plugin rules. It provides a fast, lightweight traversal with 'SKIP' and 'STOP' controls, and a Path object containing node, parent, parentKey, and parentPath for ancestor tracking. Unlike manual recursive walks, it integrates directly with ESLint's context and offers Babel-style path objects. Minimal maintenance; last release 2018.
npm install eslint-traverseVerified import paths — ran on the pinned version, not inferred.
Shows how to use traverse inside an ESLint rule, skipping child functions and stopping at 'x' identifier.
Use traverse.SKIP and traverse.STOP after importing traverse as default.
Check path.parent to skip root processing if needed.
Consider forking or using eslint-plugin-query if you need newer features.
Run `npm install --save-dev eslint-traverse`.
Use `import traverse from 'eslint-traverse'` instead of `import { traverse } from 'eslint-traverse'`.Import default: `import traverse from 'eslint-traverse'` and access its properties.
No dependency data recorded yet.