Registry / testing / eslint-config-twilio-base

eslint-config-twilio-base

JSON →
library2.0.0jsnpmunverified

Twilio's base ESLint configuration for JavaScript, providing a consistent style guide for Twilio projects. Current stable version is 2.0.0, which requires ESLint 8 and drops support for ESLint 5, 6, and 7. This config is intended to be extended by other Twilio-specific style packages, not used standalone. It is part of the Twilio Style ecosystem, with regular updates aligned with ESLint releases.

npm install eslint-config-twilio-base
INSTALL
IMPORT
SIG · ESLINT-CONFIG-TWIL
E
eslint-config-twilio-base
testingjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

TwilioBaseConfig
module.exports = { extends: 'twilio-base' };
const config = require('eslint-config-twilio-base');
This config is used via ESLint's extends mechanism, not directly imported.
Default import
module.exports = { extends: ['twilio-base'] };
import { twilioBase } from 'eslint-config-twilio-base';
ESLint configs are not JavaScript modules; use extends string.
Initialize in .eslintrc
{ "extends": "twilio-base" }
{ "extends": "eslint-config-twilio-base" }
Require the package name without the prefix, as ESLint resolves it automatically.

Shows how to use twilio-base config in an ESLint configuration file.

// .eslintrc.json { "extends": "twilio-base" } // Then run: // npm install eslint eslint-config-twilio-base --save-dev // eslint .
Debug
Known issues
breakingVersion 2.0.0 drops support for ESLint 5, 6, and 7. Only ESLint 8 is supported.
fix
Upgrade to ESLint 8.
affects: >=2.0.0
gotchaThis package is a base config and should not be used directly if you want full Twilio style. Instead, use eslint-config-twilio which extends this package with React rules.
fix
Use eslint-config-twilio for a complete setup including React specific rules.
affects: all
gotchaThe package name is eslint-config-twilio-base, but in the extends field you should use 'twilio-base' (without the eslint-config- prefix).
fix
Use 'twilio-base' in the extends array.
affects: all
Errors
Common errors & fixes
Cannot find module 'eslint-config-twilio-base'
The package is not installed or not a peer dependency.
fix
Run npm install eslint eslint-config-twilio-base --save-dev
ESLint configuration in .eslintrc is invalid: Unexpected top-level property "extends"
Using an array with extends in an older ESLint format.
fix
Ensure your .eslintrc file is valid JSON. If using .eslintrc.yaml, use proper YAML syntax.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for runtime
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-twilio-base — npm install eslint-config-twilio-base · libregistry