eslint-config-videojs
raw JSON → 6.1.0 verified Sat Apr 25 auth: no javascript
An ESLint shareable config enforcing the video.js standard style. This package provides a set of ESLint rules for projects following the video.js coding conventions. Current version 6.1.0 is stable and rarely changes. Designed for use with ESLint's extends feature. Primarily used within the video.js ecosystem, but can be adopted by other projects. Maintenance is minimal, with updates only for compelling rule changes. Versioning follows strict guidelines: loosening rules are patches, tightening non-breaking rules are minors, all other changes are majors. Lead maintainer: Pat O'Neill.
Common errors
error Error: Failed to load plugin 'you-dont-need-lodash-underscore' declared in 'videojs' ↓
cause Missing peer dependency of eslint-config-standard
fix
Install the missing plugin: npm install eslint-plugin-you-dont-need-lodash-underscore --save-dev
error ESLint couldn't find the config "videojs". ↓
cause .eslintrc file not correctly configured or package not installed
fix
Ensure eslint-config-videojs is in node_modules and extends value is 'videojs' (without prefix).
error Parsing error: The keyword 'import' is reserved ↓
cause Config does not enable ES module parsing by default
fix
Add parserOptions: { sourceType: 'module' } in your .eslintrc or use a separate parser like babel-eslint.
Warnings
breaking Major version bumps may introduce stricter rules that cause new lint errors. ↓
fix Review changelog before upgrading major versions; pin version if needed.
deprecated This config is based on older ESLint rule formats; may not support flat config (eslint.config.js) in ESLint v9+. ↓
fix Use traditional .eslintrc format or migrate to flat config manually if needed.
gotcha The package rarely changes; rule updates are infrequent. Do not expect active rule additions. ↓
fix If you need modern rules, consider extending another config as a base.
gotcha The config extends 'eslint-config-standard' internally; changes in that dependency may affect this config. ↓
fix Check peer dependencies and standard config updates.
Install
npm install eslint-config-videojs yarn add eslint-config-videojs pnpm add eslint-config-videojs Imports
- Shareable config wrong
Using require('eslint-config-videojs') directlycorrectIn .eslintrc: { "extends": "videojs" } - Config as module (if needed)
const videojs = require('eslint-config-videojs'); - TypeScript support wrong
Attempting to import as @types/eslint-config-videojscorrectNo TypeScript typings provided.
Quickstart
// 1. Install
npm install eslint-config-videojs
// 2. Create .eslintrc.json
{
"extends": "videojs"
}
// 3. Run ESLint
npx eslint yourfile.js