@@ -7,7 +7,11 @@ import noAsyncForeach from "eslint-plugin-no-async-foreach";
77import jsdoc from "eslint-plugin-jsdoc" ;
88import tseslint from "typescript-eslint" ;
99import globals from "globals" ;
10+ import path from "path" ;
11+ import { fileURLToPath } from "url" ;
1012
13+ const __filename = fileURLToPath ( import . meta. url ) ;
14+ const __dirname = path . dirname ( __filename ) ;
1115const githubFlatConfigs = github . getFlatConfigs ( ) ;
1216
1317export default [
@@ -43,7 +47,7 @@ export default [
4347 plugins : {
4448 "import-x" : importX ,
4549 "no-async-foreach" : fixupPluginRules ( noAsyncForeach ) ,
46- " jsdoc" : jsdoc ,
50+ jsdoc : jsdoc ,
4751 } ,
4852
4953 languageOptions : {
@@ -67,7 +71,13 @@ export default [
6771
6872 typescript : { } ,
6973 } ,
70- "import/ignore" : [ "sinon" , "uuid" , "@octokit/plugin-retry" , "del" , "get-folder-size" ] ,
74+ "import/ignore" : [
75+ "sinon" ,
76+ "uuid" ,
77+ "@octokit/plugin-retry" ,
78+ "del" ,
79+ "get-folder-size" ,
80+ ] ,
7181 "import-x/resolver-next" : [
7282 createTypeScriptImportResolver ( ) ,
7383 createNodeResolver ( {
@@ -143,7 +153,7 @@ export default [
143153 // We don't currently require full JSDoc coverage, so this rule
144154 // should not error on missing @param annotations.
145155 disableMissingParamChecks : true ,
146- }
156+ } ,
147157 ] ,
148158 } ,
149159 } ,
@@ -162,9 +172,9 @@ export default [
162172 "@typescript-eslint/no-unused-vars" : [
163173 "error" ,
164174 {
165- " args" : "all" ,
166- " argsIgnorePattern" : "^_" ,
167- }
175+ args : "all" ,
176+ argsIgnorePattern : "^_" ,
177+ } ,
168178 ] ,
169179 "func-style" : "off" ,
170180 } ,
@@ -183,6 +193,11 @@ export default [
183193 // The scripts in `pr-checks` are expected to output to the console.
184194 "no-console" : "off" ,
185195
196+ "import/no-extraneous-dependencies" : [
197+ "error" ,
198+ { packageDir : [ __dirname , path . resolve ( __dirname , "pr-checks" ) ] } ,
199+ ] ,
200+
186201 "@typescript-eslint/no-floating-promises" : [
187202 "error" ,
188203 {
0 commit comments