VTEX's shared ESLint configuration, version 15.1.0. It provides a preset for both JavaScript and TypeScript projects, automatically applying TypeScript rules for .ts/.tsx files and requiring type-checking via tsconfig. The config is extensible and integrates with Prettier. Released monthly with breaking changes following VTEX's internal needs. Differentiates from other configs by its opinionated set of rules tuned for VTEX's ecosystem, including React and Node.js practices.
npm install eslint-config-vtexVerified import paths — ran on the pinned version, not inferred.
Shows basic ESLint config extending vtex preset and overriding one rule.
Upgrade ESLint to version 8 or later.
Replace 'babel-eslint' with '@babel/eslint-parser' in dependencies and config.
Create tsconfig.eslint.json that extends base and includes needed files.
Always use array syntax: "extends": ["vtex"].
Run: yarn add -D eslint-config-vtex (or npm install --save-dev eslint-config-vtex)
Add tsconfig.eslint.json and set parserOptions.project: './tsconfig.eslint.json'
Install @babel/eslint-parser and use parser: '@babel/eslint-parser'