diff --git a/.eslintrc.yml b/.eslintrc.yml index 3c52ea9aa42..fd64255f70c 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -43,3 +43,14 @@ rules: semi: 2 use-isnan: 2 valid-typeof: 2 + no-restricted-syntax: [ + 'error', + { + message: "Invalid import. Please do not import replsettest.js in MongoDB v8.0 and below.", + selector: "ImportDeclaration[source.value=/^jstests\\u002Flibs\\u002Freplsettest.js$/]" + }, + { + message: "Invalid import. Please do not import shardingtest.js in MongoDB v8.0 and below.", + selector: "ImportDeclaration[source.value=/^jstests\\u002Flibs\\u002Fshardingtest.js$/]" + }, + ] diff --git a/jstests/noPassthrough/index_stepup_missing_skipped_record.js b/jstests/noPassthrough/index_stepup_missing_skipped_record.js index 95c0cf9de24..3f2675f1577 100644 --- a/jstests/noPassthrough/index_stepup_missing_skipped_record.js +++ b/jstests/noPassthrough/index_stepup_missing_skipped_record.js @@ -10,7 +10,6 @@ * ] */ import {configureFailPoint} from "jstests/libs/fail_point_util.js"; -import {ReplSetTest} from "jstests/libs/replsettest.js"; import {IndexBuildTest} from "jstests/noPassthrough/libs/index_build.js"; const rst = new ReplSetTest({nodes: 2});