{"library":"eslint-plugin-eslint-env-restore","type":"library","category":null,"description":"Restores `/* eslint-env */` comment functionality removed in ESLint v9+. ESLint v9 dropped support for inline `/* eslint-env */` comments that dynamically set globals per file. This plugin re-enables that behavior for ESLint v9+ by providing a processor (`eslint-env-restore/js`) that automatically declares the corresponding global variables. It simplifies migration from ESLint v8 to v9 where environment comments are heavily used. The package is at version 1.0.1, stable, with no frequent releases expected. Compared to manually listing globals in config, this plugin is a drop-in solution for legacy codebases. It requires the `no-unused-vars` rule to use `{ vars: 'local' }` to avoid false positives. Does not support environments that are not built into ESLint.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install eslint-plugin-eslint-env-restore","imports":["import eslintEnvRestorePlugin from 'eslint-plugin-eslint-env-restore'","processor: 'eslint-env-restore/js'","const eslintEnvRestorePlugin = require('eslint-plugin-eslint-env-restore');\nmodule.exports = [{\n  plugins: { 'eslint-env-restore': eslintEnvRestorePlugin },\n  processor: 'eslint-env-restore/js',\n  rules: { 'no-unused-vars': ['error', { vars: 'local' }] }\n}]"]},{"cmd":"yarn add eslint-plugin-eslint-env-restore","imports":[]},{"cmd":"pnpm add eslint-plugin-eslint-env-restore","imports":[]}],"homepage":"https://github.com/extremeheat/eslint-plugin-eslint-env-restore#readme","github":"https://github.com/extremeheat/eslint-plugin-eslint-env-restore","docs":null,"changelog":null,"pypi":null,"npm":"eslint-plugin-eslint-env-restore","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}