租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB

6 months ago
  1. # @eslint-community/eslint-utils
  2. [![npm version](https://img.shields.io/npm/v/@eslint-community/eslint-utils.svg)](https://www.npmjs.com/package/@eslint-community/eslint-utils)
  3. [![Downloads/month](https://img.shields.io/npm/dm/@eslint-community/eslint-utils.svg)](http://www.npmtrends.com/@eslint-community/eslint-utils)
  4. [![Build Status](https://github.com/eslint-community/eslint-utils/workflows/CI/badge.svg)](https://github.com/eslint-community/eslint-utils/actions)
  5. [![Coverage Status](https://codecov.io/gh/eslint-community/eslint-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/eslint-community/eslint-utils)
  6. ## 🏁 Goal
  7. This package provides utility functions and classes for make ESLint custom rules.
  8. For examples:
  9. - [`getStaticValue`](https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue) evaluates static value on AST.
  10. - [`ReferenceTracker`](https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring.
  11. ## 📖 Usage
  12. See [documentation](https://eslint-community.github.io/eslint-utils).
  13. ## 📰 Changelog
  14. See [releases](https://github.com/eslint-community/eslint-utils/releases).
  15. ## ❤️ Contributing
  16. Welcome contributing!
  17. Please use GitHub's Issues/PRs.
  18. ### Development Tools
  19. - `npm test` runs tests and measures coverage.
  20. - `npm run clean` removes the coverage result of `npm test` command.
  21. - `npm run coverage` shows the coverage result of the last `npm test` command.
  22. - `npm run lint` runs ESLint.
  23. - `npm run watch` runs tests on each file change.