mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
chore: Add mods/
directory to eslint
This commit is contained in:
parent
9033f6f8c7
commit
00765d0fce
@ -28,6 +28,7 @@ export default [
|
|||||||
// Back end
|
// Back end
|
||||||
files: [
|
files: [
|
||||||
"packages/backend/**/*.js",
|
"packages/backend/**/*.js",
|
||||||
|
"mods/**/*.js",
|
||||||
"dev-server.js",
|
"dev-server.js",
|
||||||
"utils.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
|
// Tests
|
||||||
files: [
|
files: [
|
||||||
|
Loading…
Reference in New Issue
Block a user