版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
12345678910111213141516171819202122232425262728293031323334353637
  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.