{"id":19613,"library":"eslint-config-videojs","title":"eslint-config-videojs","description":"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.","status":"active","version":"6.1.0","language":"javascript","source_language":"en","source_url":"git://github.com/videojs/eslint-config-videojs","tags":["javascript","videojs","standard","style checker","code style","code checker","code linter","style linter","simple"],"install":[{"cmd":"npm install eslint-config-videojs","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-videojs","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-videojs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for ESLint to function","package":"eslint","optional":false}],"imports":[{"note":"The config is used via ESLint's extends, not imported directly. The eslint-config- prefix is omitted.","wrong":"Using require('eslint-config-videojs') directly","symbol":"Shareable config","correct":"In .eslintrc: { \"extends\": \"videojs\" }"},{"note":"Can be used programmatically in eslintrc.js: module.exports = { extends: [videojs] };","wrong":"","symbol":"Config as module (if needed)","correct":"const videojs = require('eslint-config-videojs');"},{"note":"This package does not ship TypeScript definitions; it's a plain JS config object.","wrong":"Attempting to import as @types/eslint-config-videojs","symbol":"TypeScript support","correct":"No TypeScript typings provided."}],"quickstart":{"code":"// 1. Install\nnpm install eslint-config-videojs\n\n// 2. Create .eslintrc.json\n{\n  \"extends\": \"videojs\"\n}\n\n// 3. Run ESLint\nnpx eslint yourfile.js\n","lang":"javascript","description":"Shows how to install and use the shareable config in an ESLint configuration file."},"warnings":[{"fix":"Review changelog before upgrading major versions; pin version if needed.","message":"Major version bumps may introduce stricter rules that cause new lint errors.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Use traditional .eslintrc format or migrate to flat config manually if needed.","message":"This config is based on older ESLint rule formats; may not support flat config (eslint.config.js) in ESLint v9+.","severity":"deprecated","affected_versions":">=6.0.0"},{"fix":"If you need modern rules, consider extending another config as a base.","message":"The package rarely changes; rule updates are infrequent. Do not expect active rule additions.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Check peer dependencies and standard config updates.","message":"The config extends 'eslint-config-standard' internally; changes in that dependency may affect this config.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install the missing plugin: npm install eslint-plugin-you-dont-need-lodash-underscore --save-dev","cause":"Missing peer dependency of eslint-config-standard","error":"Error: Failed to load plugin 'you-dont-need-lodash-underscore' declared in 'videojs'"},{"fix":"Ensure eslint-config-videojs is in node_modules and extends value is 'videojs' (without prefix).","cause":".eslintrc file not correctly configured or package not installed","error":"ESLint couldn't find the config \"videojs\"."},{"fix":"Add parserOptions: { sourceType: 'module' } in your .eslintrc or use a separate parser like babel-eslint.","cause":"Config does not enable ES module parsing by default","error":"Parsing error: The keyword 'import' is reserved"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}