Skip to content

Commit

Permalink
feat: annotate plugin type
Browse files Browse the repository at this point in the history
  • Loading branch information
ramijarrar authored Aug 23, 2024
1 parent 675c507 commit b35663a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ var requireIndex = require('requireindex');
// Plugin Definition
//------------------------------------------------------------------------------

// import all rules in lib/rules
module.exports.rules = requireIndex(__dirname + '/rules');
/** @type {import('eslint').ESLint.Plugin */
const plugin = {
// import all rules in lib/rules
rules: requireIndex(__dirname + '/rules'),

module.exports.configs = {
recommended: {
plugins: ['i18next'],
rules: {
'i18next/no-literal-string': [2]
}
}
};

module.exports = plugin;

0 comments on commit b35663a

Please sign in to comment.