eslint-plugin-literal-checker

1.0.0 • Public • Published

eslint-plugin-literal-checker

An ESLint micro plugin.

Installation

$ npm install eslint-plugin-literal-checker --save-dev

Usage

// .eslintrc.js
{
  plugins: ['literal-checker'],
  rules: {
    'literal-checker/literal-check': [
      2,
      ['tuya.'],
      ['tuya.m.device.media.latest', 'tuya.m.device.media.detail'],
    ],
  }
}

Supported Rules

literal-check

Define denylist strings and allowlist strings for literal.

Package Sidebar

Install

npm i eslint-plugin-literal-checker

Weekly Downloads

527

Version

1.0.0

License

MIT

Unpacked Size

5.1 kB

Total Files

7

Last publish

Collaborators

  • luozhu2021