An ESLint micro plugin.
$ npm install eslint-plugin-literal-check --save-dev
// .eslintrc.js
{
plugins: ['literal-check'],
rules: {
'literal-check/literal-check': [
2,
['tuya.'],
['tuya.m.device.media.latest', 'tuya.m.device.media.detail'],
],
}
}
Define blacklist strings and whitelist strings for literal.