--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsonc --- # Input ```cjs console.log(event); ``` # Diagnostics ``` invalid.jsonc:1:13 lint/style/noRestrictedGlobals ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Do not use the global variable event. > 1 │ console.log(event); │ ^^^^^ i Use a local variable instead. ``` # Input ```cjs console.log(error); ``` # Diagnostics ``` invalid.jsonc:1:13 lint/style/noRestrictedGlobals ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Do not use the global variable error. > 1 │ console.log(error); │ ^^^^^ i Use a local variable instead. ```