1.1.0 • Published 2 years ago

@ezcater/eslint-plugin-recipe v1.1.0

Weekly downloads
190
License
MIT
Repository
github
Last release
2 years ago

Recipe Analytics: eslint-plugin-recipe

The Recipe Analytics babel plugin is a tool for statically analyzing a code base to determine its usage of Recipe components. You can run it on any codebase that imports Recipe.

Installation

Install @ezcater/eslint-plugin-recipe from npm:

npm install @ezcater/eslint-plugin-recipe

Usage

The plugin can be configured to be run as part of your production build, allowing statistics from static analysis to be submitted with every release.

with eslintrc:

Add the plugin to your eslint configuration.

// eslintrc.js
module.exports = {
  plugins: ['@ezcater/eslint-plugin-recipe'],
};

Then as part of your production build, run eslint with the rule @ezcater/recipe/track-imports.

eslint . --rule 'recipe/track-imports: warn'