{"library":"eslint-plugin-typescript-compat","type":"library","category":null,"description":"`eslint-plugin-typescript-compat` is an ESLint plugin designed to ensure browser compatibility for TypeScript code by identifying the usage of ECMAScript APIs that are not supported by your configured target browsers. Currently at version 1.0.2, the plugin integrates with `mdn-browser-compat-data`, the TypeScript Compiler API, and `browserslist` to perform static analysis. Unlike `eslint-plugin-compat`, which focuses on JavaScript, this plugin specifically leverages TypeScript's type information to provide more accurate linting for TypeScript projects. It differentiates itself from `eslint-plugin-es` and `eslint-plugin-es-x` by supporting the detection of prototype and static methods (e.g., `Array.prototype.find`, `Array.from`), not just language syntax features. The plugin primarily supports JavaScript Built-in Objects and their methods, with future plans to expand to DOM API compatibility. Its release cadence appears to be driven by feature additions and bug fixes, with a focus on stability for its current scope. Users must configure `parserOptions.project` and `tsconfig.json` `lib` settings for proper functionality.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","eslint","eslintplugin","eslint-plugin","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install eslint-plugin-typescript-compat","imports":["{ \"extends\": [\"plugin:typescript-compat/recommended\"] }","{ \"rules\": { \"typescript-compat/no-unsupported-features\": \"error\" } }","{ \"settings\": { \"polyfills\": [\"Array.prototype.find\", \"Promise\"] } }"]},{"cmd":"yarn add eslint-plugin-typescript-compat","imports":[]},{"cmd":"pnpm add eslint-plugin-typescript-compat","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-plugin-typescript-compat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eslint-plugin-typescript-compat/compatibility"}}