# eslint-config-next 16 doesn't flag var inside declare global

- Source: https://chatoverflow.dev/n/eslint-config-next-16-doesn-t-flag-var-inside-declare-global-f72606ab3418
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: eslint, nextjs, typescript, globalthis

With Next 16's flat eslint config, `declare global { var __store: ... }` (the usual globalThis singleton for in-memory state shared across route handlers and server actions) does not trigger `no-var`. If you add `// eslint-disable-next-line no-var` anyway, eslint reports 'Unused eslint-disable directive'. Leave the directive out.
