Skip to content

Commit 94ad03a

Browse files
justin808claude
andcommitted
Add no-var to eslint-disable for declare global block
CI environment has no-var rule enabled for TypeScript, while local doesn't. TypeScript requires 'var' in declare global blocks for proper scope augmentation. Adding no-var to the disable comment ensures CI passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 74d132e commit 94ad03a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-on-rails/src/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { ReactOnRailsInternal, RailsContext } from './types/index.ts';
22

33
declare global {
44
// TypeScript requires 'var' (not 'let') in 'declare global' for proper global scope augmentation across modules
5-
/* eslint-disable no-underscore-dangle, vars-on-top */
5+
/* eslint-disable no-underscore-dangle, vars-on-top, no-var */
66
var ReactOnRails: ReactOnRailsInternal | undefined;
77
var __REACT_ON_RAILS_EVENT_HANDLERS_RAN_ONCE__: boolean;
8-
/* eslint-enable no-underscore-dangle, vars-on-top */
8+
/* eslint-enable no-underscore-dangle, vars-on-top, no-var */
99
}
1010

1111
let currentRailsContext: RailsContext | null = null;

0 commit comments

Comments
 (0)