diff --git a/devtools/.eslintrc.js b/devtools/.eslintrc.js index b6ab71a0da3b..6d696c27c5f5 100644 --- a/devtools/.eslintrc.js +++ b/devtools/.eslintrc.js @@ -86,16 +86,12 @@ module.exports = { }, }, { - // For all server files, prevent requiring devtools/client modules. - files: [ - "server/**", - // The rule also applies to all `shared` files, with the exception of - // shared/fronts. - // This first pattern matches files in a shared subfolder other than "fronts". - "shared/!(fronts)/**", - // This second pattern matches files directly under shared. - "shared/*.**", - ], + // For all server and shared files, prevent requiring devtools/client + // modules. + files: ["server/**", "shared/**"], + // devtools-client.js is effectively a client file, but it is still loaded + // by test suites in devtools/shared and devtools/server. + excludedFiles: ["shared/client/devtools-client.js"], rules: { "mozilla/reject-some-requires": [ "error",