ESLint configuration for Taro projects, providing linting rules for React/JSX and Vue (optional). Current stable version 4.2.0, released as part of Taro monorepo. Requires ESLint ^8 and supports both Taro 3 and 4. Integrates with eslint-plugin-react, eslint-plugin-react-hooks, and optionally eslint-plugin-vue. Designed for cross-platform app development. Differentiator: official config from Taro team with rules tuned for Taro's component system and JSX transformations. Release cadence follows Taro releases (~monthly).
npm install eslint-config-taroVerified import paths — ran on the pinned version, not inferred.
Base ESLint configuration for a Taro React project using eslint-config-taro.
Upgrade ESLint to ^8.0.0.
Rename .eslintrc to .eslintrc.cjs or use dynamic import.
If using Vue, add eslint-plugin-vue as a devDependency.
Install eslint-plugin-react-hooks as a devDependency.
Update eslint-config-taro to ^4.0.0.
Run: npm install eslint-plugin-react-hooks --save-dev
Run: npm install eslint-config-taro --save-dev
Update eslint-plugin-react to ^7.33.2 or later.