ESLint plugin providing Taro-specific linting rules for Taro multi-platform applications. Current version is 4.2.0, released alongside Taro 4.x. It enforces best practices for Taro's React-like JSX syntax and prevents platform-specific issues. Key differentiator: built for Taro's compile-time JSX transformation, with rules unavailable in standard React ESLint plugins. Release cadence follows Taro's major versions. Requires ESLint 8.x and @babel/eslint-parser 7.24.1+.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-compatible; CommonJS require also works but ESM is preferred for modern builds.
Use the preset directly via 'plugin:'. Do not specify full package path.
All rule names must be prefixed with 'taro/' to avoid collisions.
Basic ESLint config for Taro 4+ projects: uses @babel/eslint-parser, enables recommended rules, and adds two custom rules.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.