eslint-get-rules

Tool for getting meta-data of eslint rules in the current project.

Usage no npm install needed!

<script type="module">
  import eslintGetRules from 'https://cdn.skypack.dev/eslint-get-rules';
</script>

README

ESLint GetRules

Sponsored by Version
Downloads Node.js CI

ESLint GetRules is a quick wrapper around core ESLint classes to access detailed rule information via API. Unfortunetely such an API is not (yet) available in ESLint itself.

Installation

NPM

$ npm install eslint-get-rules

Yarn

$ yarn add eslint-get-rules

Usage

  • getRawRules(options) => Map<string, Rule>
  • getFixableRules(options) => Set<string>

License

Apache License; Version 2.0, January 2004

Copyright

Logo of Sebastian Software GmbH, Mainz, Germany

Copyright 2022
Sebastian Software GmbH