eslint-config-transloadit
raw JSON → 2.0.0 verified Sat Apr 25 auth: no javascript
A shareable ESLint configuration from Transloadit, used across their JavaScript/TypeScript projects. Version 2.0.0 requires ESLint ^7.22.0 and @babel/eslint-parser. This config bundles plugins for React, Jest, import, node, promise, and accessibility. It is opinionated and designed for consistency in Transloadit's monorepo. Release cadence is irregular; breaking changes are released as major versions.
Common errors
error Error: Cannot find module 'eslint-config-transloadit' ↓
cause Missing package installation or incorrect node_modules path.
fix
Run npm install eslint-config-transloadit --save-dev.
error Error: Failed to load parser '@babel/eslint-parser' declared in 'eslint-config-transloadit' ↓
cause @babel/eslint-parser peer dependency not installed.
fix
Run npm install @babel/eslint-parser --save-dev.
error ESLint couldn't determine the plugin uniquely. ↓
cause Multiple versions of eslint-plugin-react or similar installed.
fix
Ensure consistent versions of peer dependencies; deduplicate with npm dedupe.
Warnings
breaking Version 2.0.0 drops support for Node.js < 10 and ESLint < 7. ↓
fix Upgrade to Node.js >=10 and ESLint >=7.
breaking Requires @babel/eslint-parser and @babel/core as peer dependencies; babel-eslint is no longer supported. ↓
fix Install @babel/eslint-parser and @babel/core, and replace any reference to babel-eslint.
deprecated Support for legacy parser babel-eslint is dropped; use @babel/eslint-parser. ↓
fix Replace 'parser': 'babel-eslint' with '@babel/eslint-parser'.
gotcha This config is CommonJS only; it cannot be imported via ESM import syntax. ↓
fix Use require() or rely on ESLint's config resolution which handles CJS.
Install
npm install eslint-config-transloadit yarn add eslint-config-transloadit pnpm add eslint-config-transloadit Imports
- default wrong
import config from 'eslint-config-transloadit'; // CJS-onlycorrectmodule.exports = require('eslint-config-transloadit'); - extends in .eslintrc wrong
"extends": "eslint-config-transloadit" // redundant, but also workscorrect"extends": "transloadit" - overrides pattern wrong
{}correct// .eslintrc.json { "extends": ["transloadit"], "rules": { "react/jsx-uses-react": "off" } }
Quickstart
// .eslintrc.json
{
"extends": "transloadit",
"rules": {
"react/jsx-uses-react": "off"
}
}