File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,14 @@ rules:
4343 semi : 2
4444 use-isnan : 2
4545 valid-typeof : 2
46+ no-restricted-syntax : [
47+ ' error' ,
48+ {
49+ message : " Invalid import. Please do not import replsettest.js in MongoDB v8.0 and below." ,
50+ selector : " ImportDeclaration[source.value=/^jstests\\ u002Flibs\\ u002Freplsettest.js$/]"
51+ },
52+ {
53+ message : " Invalid import. Please do not import shardingtest.js in MongoDB v8.0 and below." ,
54+ selector : " ImportDeclaration[source.value=/^jstests\\ u002Flibs\\ u002Fshardingtest.js$/]"
55+ },
56+ ]
Original file line number Diff line number Diff line change 1010 * ]
1111 */
1212import { configureFailPoint } from "jstests/libs/fail_point_util.js" ;
13- import { ReplSetTest } from "jstests/libs/replsettest.js" ;
1413import { IndexBuildTest } from "jstests/noPassthrough/libs/index_build.js" ;
1514
1615const rst = new ReplSetTest ( { nodes : 2 } ) ;
You can’t perform that action at this time.
0 commit comments