Registry / devops / eslint-config-adidas-babel

eslint-config-adidas-babel

JSON →
library3.0.0jsnpmunverified

ESLint configuration that integrates @babel/eslint-parser for parsing modern JavaScript with Babel. Version 3.0.0 requires Node >=20, npm >=10, and peer dependencies @babel/eslint-parser@^7 and eslint@^9. Published by adidas as part of their linter configs monorepo. It is a simple shareable config that adds Babel parser support and applies Babel-specific settings, intended to be combined with other adidas configs like adidas-env or adidas-es6.

npm install eslint-config-adidas-babel
INSTALL
IMPORT
SIG · ESLINT-CONFIG-ADID
E
eslint-config-adidas-babel
devopsjavascriptv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-config
{ "extends": [ "adidas-babel" ] }
{ "extends": [ "eslint-config-adidas-babel" ] }
In ESLint config, use the short name 'adidas-babel'. The full package name is not needed in 'extends'.
default
// No import; configuration is used via .eslintrc or eslint.config.js: extends: ['adidas-babel']
import config from 'eslint-config-adidas-babel';
This is a shareable config, not a module. Do not import it in code; use it in ESLint config files.
module
module.exports = { extends: ['adidas-babel'] };
const config = require('eslint-config-adidas-babel');
CommonJS require() is not typical; use extends array in module.exports object.

Sets up ESLint with Babel parser and adidas config for modern JS linting.

// 1. Install dependencies // npm i --save-dev eslint@9 @babel/eslint-parser@7 eslint-config-adidas-babel // 2. Create .eslintrc.json { "extends": [ "adidas-babel" ] } // 3. Run ESLint // npx eslint .
Debug
Known issues
gotchaThe config name in 'extends' is 'adidas-babel', not 'eslint-config-adidas-babel'.
fix
Use 'adidas-babel' in the extends array of your ESLint configuration.
affects: >=0.0.0
breakingVersion 3 requires eslint@9 and @babel/eslint-parser@7 due to ESLint flat config migration.
fix
Upgrade to eslint@9 and @babel/eslint-parser@7. If on eslint@8, use version 2.x of this config.
affects: >=3.0.0
deprecatedeslint-config-adidas-babel will be deprecated in favor of eslint-config-adidas (shared config) in future major version.
fix
Consider migrating to the unified config eslint-config-adidas when available.
affects: >=3.0.0
Errors
Common errors & fixes
Error: Cannot find module '@babel/eslint-parser'
@babel/eslint-parser is not installed or is missing from devDependencies.
fix
npm install --save-dev @babel/eslint-parser@^7
Error: Failed to load config "adidas-babel" to extend from.
eslint-config-adidas-babel package is not installed.
fix
npm install --save-dev eslint-config-adidas-babel
Error: ESLint configuration in .eslintrc.json is invalid: "extends" must be an array.
The extends field is set to a string instead of an array.
fix
Change "extends": "adidas-babel" to "extends": ["adidas-babel"]
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies
@babel/eslint-parserrequiredRequired peer dependency for parsing with Babel
eslintrequiredRequired peer dependency - ESLint core
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-adidas-babel — npm install eslint-config-adidas-babel · libregistry