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-baseVerified import paths — ran on the pinned version, not inferred.
Shows how to use twilio-base config in an ESLint configuration file.
Upgrade to ESLint 8.
Use eslint-config-twilio for a complete setup including React specific rules.
Use 'twilio-base' in the extends array.
Run npm install eslint eslint-config-twilio-base --save-dev
Ensure your .eslintrc file is valid JSON. If using .eslintrc.yaml, use proper YAML syntax.