File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import metaPropertyOrdering from './rules/meta-property-ordering.js';
1414import noDeprecatedContextMethods from './rules/no-deprecated-context-methods.js' ;
1515import noDeprecatedReportApi from './rules/no-deprecated-report-api.js' ;
1616import noIdenticalTests from './rules/no-identical-tests.js' ;
17+ import noMetaReplacedBy from './rules/no-meta-replaced-by.js' ;
1718import noMetaSchemaDefault from './rules/no-meta-schema-default.js' ;
1819import noMissingMessageIds from './rules/no-missing-message-ids.js' ;
1920import noMissingPlaceholders from './rules/no-missing-placeholders.js' ;
@@ -66,6 +67,7 @@ const allRules = {
6667 'no-deprecated-context-methods' : noDeprecatedContextMethods ,
6768 'no-deprecated-report-api' : noDeprecatedReportApi ,
6869 'no-identical-tests' : noIdenticalTests ,
70+ 'no-meta-replaced-by' : noMetaReplacedBy ,
6971 'no-meta-schema-default' : noMetaSchemaDefault ,
7072 'no-missing-message-ids' : noMissingMessageIds ,
7173 'no-missing-placeholders' : noMissingPlaceholders ,
Original file line number Diff line number Diff line change 22 * @fileoverview Disallows the usage of `meta.replacedBy` property
33 */
44
5- 'use strict' ;
6-
7- const utils = require ( '../utils' ) ;
5+ import * as utils from '../utils.js' ;
86
97// ------------------------------------------------------------------------------
108// Rule Definition
119// ------------------------------------------------------------------------------
1210
1311/** @type {import('eslint').Rule.RuleModule } */
14- module . exports = {
12+ const rule = {
1513 meta : {
1614 type : 'problem' ,
1715 docs : {
@@ -61,3 +59,5 @@ module.exports = {
6159 } ;
6260 } ,
6361} ;
62+
63+ export default rule ;
Original file line number Diff line number Diff line change 22 * @fileoverview Disallows the usage of `meta.replacedBy` property
33 */
44
5- 'use strict' ;
6-
75// ------------------------------------------------------------------------------
86// Requirements
97// ------------------------------------------------------------------------------
108
11- const rule = require ( '../../../lib/rules/no-meta-replaced-by' ) ;
12- const RuleTester = require ( '../eslint-rule-tester' ) . RuleTester ;
9+ import rule from '../../../lib/rules/no-meta-replaced-by.js' ;
10+ import { RuleTester } from '../eslint-rule-tester.js' ;
1311
1412// ------------------------------------------------------------------------------
1513// Tests
You can’t perform that action at this time.
0 commit comments