123456789101112131415161718192021222324252627 |
- /**
- * @fileoverview ESLint plugin for i18n
- * @author edvardchen
- */
- 'use strict';
- //------------------------------------------------------------------------------
- // Requirements
- //------------------------------------------------------------------------------
- var requireIndex = require('requireindex');
- //------------------------------------------------------------------------------
- // Plugin Definition
- //------------------------------------------------------------------------------
- // import all rules in lib/rules
- module.exports.rules = requireIndex(__dirname + '/rules');
- module.exports.configs = {
- recommended: {
- plugins: ['i18next'],
- rules: {
- 'i18next/no-literal-string': [2]
- }
- }
- };
|