Fix ESLint: add browser globals (document, window, console)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
export default [
|
||||
{
|
||||
files: ["assets/**/*.js"],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
document: "readonly",
|
||||
window: "readonly",
|
||||
console: "readonly",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"no-unused-vars": "warn",
|
||||
"no-undef": "error",
|
||||
|
||||
Reference in New Issue
Block a user