https://github.com/mysticatea/eslint-utils
Utilities for ESLint plugins and custom rules.
https://github.com/mysticatea/eslint-utils
eslint javascript nodejs npm-package
Last synced: 2 months ago
JSON representation
Utilities for ESLint plugins and custom rules.
- Host: GitHub
- URL: https://github.com/mysticatea/eslint-utils
- Owner: mysticatea
- License: mit
- Created: 2018-05-02T07:53:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T19:20:55.000Z (over 2 years ago)
- Last Synced: 2025-04-20T00:38:23.580Z (3 months ago)
- Topics: eslint, javascript, nodejs, npm-package
- Language: JavaScript
- Homepage: https://eslint-utils.mysticatea.dev/
- Size: 504 KB
- Stars: 75
- Watchers: 5
- Forks: 36
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# eslint-utils
[](https://www.npmjs.com/package/eslint-utils)
[](http://www.npmtrends.com/eslint-utils)
[](https://github.com/mysticatea/eslint-utils/actions)
[](https://codecov.io/gh/mysticatea/eslint-utils)
[](https://david-dm.org/mysticatea/eslint-utils)## 🏁 Goal
This package provides utility functions and classes for make ESLint custom rules.
For examples:
- [getStaticValue](https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstaticvalue) evaluates static value on AST.
- [ReferenceTracker](https://eslint-utils.mysticatea.dev/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring.## 📖 Usage
See [documentation](https://eslint-utils.mysticatea.dev/).
## 📰 Changelog
See [releases](https://github.com/mysticatea/eslint-utils/releases).
## ❤️ Contributing
Welcome contributing!
Please use GitHub's Issues/PRs.
### Development Tools
- `npm test` runs tests and measures coverage.
- `npm run clean` removes the coverage result of `npm test` command.
- `npm run coverage` shows the coverage result of the last `npm test` command.
- `npm run lint` runs ESLint.
- `npm run watch` runs tests on each file change.