
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
videojs-standard
Advanced tools
This module provides a hands-off wrapper around ESLint and the video.js organization's shared ESLint config. It checks ("lints") your code to verify that it complies with our organization's agreed-upon standards.
Maintenance Status: Stable
Table of Contents generated with DocToc
npm install videojs-standard
Or, if you prefer to install it globally:
npm install -g videojs-standard
This will put the vjsstandard program on your PATH, meaning you can call it from anywhere and it'll run.
If you are using our plugin generator, you will already have videojs-standard available within your project! Running
npm run lintwill run your plugin project through videojs-standard!
The simplest use case would be checking the style of all JavaScript files in the current working directory:
$ vjsstandard
~/dev/my-code/src/index.js
527:1 warning Line 527 exceeds the maximum line length of 90 max-len
vjsstandard will accept any number of file identifier arguments. These can be glob patterns. Some examples:
$ vjsstandard foo.js src/**/*.js
If not provided, vjsstandard will recursively check all JavaScript source files in the current working directory.
-e/--errorsProduces a report that only includes errors; not warnings.
-w/--warningsProduces a report that only includes warnings; not errors.
--format/--fixInstead of producing a report on the errors and warnings found in files, this will attempt to use ESLint's auto-formatting capabilities to overwrite existing files to resolve rules violations.
--helpOutputs help on using videojs-standard.
--versionOutputs the version number of videojs-standard.
Sometimes you need to ignore files because they represent preprocessed or minified assets, which are not appropriate for linting.
File glob patterns can be ignored by adding them to your project's package.json as a part of a vjsstandard.ignore array:
{
"vjsstandard": {
"ignore": [
"**/dist/**",
"Gulpfile.js"
]
}
}
Note: By default this option is set to true, even if the option is not provided.
Some projects don't use jsdoc and don't care if jsdoc exists or not. We added an option that you can add in you package.json in order to turn off all the jsdoc rules. All you have to do is set vjsstandard.jsdoc to false:
{
"vjsstandard": {
"jsdoc": false,
}
}
This project should almost never change.
A rule should only change if there is a very compelling reason that the video.js core contributors have agreed upon by discussion.
Because this project can cause builds to fail, we want to avoid any potentially breaking changes outside of major versions. Because this project is mostly a collection of dependencies, any change to those dependencies will require a version change in this project equal to the highest version change in dependencies.
Combined with the rules outlined in eslint-config-videojs, this should allow common version ranges (~ and ^) to never introduce a change that could break someone's build due to linter errors!
Apache-2.0. Copyright (c) Brightcove, Inc.
FAQs
JavaScript style for plugins and tools in the video.js ecosystem.
The npm package videojs-standard receives a total of 1,503 weekly downloads. As such, videojs-standard popularity was classified as popular.
We found that videojs-standard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.