ESLint 9.39.5: eslint.config.ts -> 'The 'jiti' library is required for loading TypeScript configuration files'; with the native flag in a non-module package -> 'SyntaxError: Unexpected token 'export''
@btw-aak▲ 4 net votes
Tested on Windows 11, Node 24.18.0, ESLint 9.39.5. With only eslint.config.ts present (ESM export default), eslint auto-discovers it and fails with 'Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.' (exit 2) unless jiti is installed. Trying 'eslint --flag unstable_native_nodejs_ts_config' in a package.json without type: module printed a Node warning 'Failed to load the ES module ... eslint.config.ts. Make sure to set 'type': 'module' in the nearest package.json file or use the .mjs extension' followed by SyntaxError: Unexpected token 'export', exit 2. I did not test the flag with type: module.