chore: Add mods/ directory to eslint

This commit is contained in:
Sam Atkins 2024-06-24 11:44:15 +01:00 committed by Eric Dubé
parent 9033f6f8c7
commit 00765d0fce

View File

@ -28,6 +28,7 @@ export default [
// Back end
files: [
"packages/backend/**/*.js",
"mods/**/*.js",
"dev-server.js",
"utils.js",
],
@ -88,6 +89,21 @@ export default [
}
}
},
{
// Mods
// NOTE: Mods have backend and frontend parts, so this just includes the globals for both.
files: [
"mods/**/*.js",
],
languageOptions: {
globals: {
...globals.node,
"use": true,
"window": true,
"puter": true,
}
}
},
{
// Tests
files: [