eslint-plugin-mint-tracker
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

eslint-plugin-mint-tracker

Custom ESLint plugin to track the use of mint and non-mint tokens within React/React Native codebases.

Installation

You will first need to install eslint package

npm i eslint --save-dev

Next, install eslint-plugin-mint-tracker:

npm i eslint-plugin-mint-tracker --save-dev

Usage

Use the ESLint's programmatic API with Node.js as follows:

const overrideConfig = {
    extends: ["@react-native-community"],
    plugins: ["mint-tracker"],
    rules: {
        "mint-tracker/detect-token-usage": "warn",
    },
};
const eslint = new ESLint({
    overrideConfig,
    useEslintrc: false,
});
const results = await eslint.lintFiles("<some-folder-path>");

The token information will be located in the messages object within the files inside in the results object.

Package Sidebar

Install

npm i eslint-plugin-mint-tracker

Weekly Downloads

915

Version

1.0.2

License

MIT

Unpacked Size

13.7 kB

Total Files

12

Last publish

Collaborators

  • khiladi2020