diff --git a/lib/index.js b/lib/index.js index cbb2d8e..949ff00 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,10 +14,11 @@ 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: { @@ -25,3 +26,5 @@ module.exports.configs = { } } }; + +module.exports = plugin;