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.

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