Starbix / eslint-utils

Utilities for ESLint plugins and custom rules.

Home Page:https://mysticatea.github.io/eslint-utils/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-utils

npm version Downloads/month Build Status Coverage Status Dependency Status

๐Ÿ Goal

This package provides utility functions and classes for make ESLint custom rules.

For examples:

  • getStaticValue evaluates static value on AST.
  • PatternMatcher finds a regular expression pattern as handling escape sequences.
  • ReferenceTracker checks the members of modules/globals as handling assignments and destructuring.

๐Ÿ“– Usage

See documentation.

๐Ÿ“ฐ Changelog

See 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.

About

Utilities for ESLint plugins and custom rules.

https://mysticatea.github.io/eslint-utils/

License:MIT License


Languages

Language:JavaScript 100.0%