VTEX's ESLint shared configuration for React projects, currently at version 9.1.0. It extends the base eslint-config-vtex and adds React-specific rules, including presets for general React, VTEX IO, and React Native. The package is maintained by VTEX and follows the release cadence of the VTEX Typescript monorepo. Key differentiators: opinionated, tailored for VTEX IO ecosystem, integrates with Prettier and TypeScript, and provides three presets for different React contexts.
npm install eslint-config-vtex-reactVerified import paths — ran on the pinned version, not inferred.
Shows how to install and configure eslint-config-vtex-react in a React project.
Use "extends": ["vtex-react"] instead.
Upgrade ESLint to version 7 or 8.
Monitor release notes for migration guidance.
Run 'yarn add -D prettier' if not present.
Run 'yarn add -D typescript' if not present.
Run 'yarn add -D eslint-plugin-vtex'.
Check that your rule overrides are valid; refer to the eslint-plugin-react documentation.
Run 'yarn add -D eslint-config-vtex' (automatically installed as a dependency of eslint-config-vtex-react, but ensure it's present).
Create a tsconfig.json in the project root or ensure the parser can find it.