mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
4067c20a7c
The eslint configuration is derived from analyzing the style of our sources as they are now, plus a few tweaks. In particular, we have disabled checks for undefined variables and use of console, both of which the compiler handle with greater precision. The compiler already knows what is defined in the environment through our externs, and has specific exceptions for the use of console (demo, tests). We have also disabled a few checks that we should use, but will require many changes to the code: no-unused-vars, no-redeclare, and comma-dangle. This commit also fixes several types of eslint errors that were easy: - no-useless-escape (unneccessary escape characters in Regexp) - no-constant-condition (using true/false/0/1/etc in if/while) - no-fallthrough (caught an actual bug in one EME polyfill) - no-irregular-whitespace (we had a UTF-8 nbsp in externs) - no-cond-assign (using an assignment inside a conditional) To satisfy stricter provide/require checks in the Closure Compiler Linter, we will no longer use provide/require at all in tests. We will still use provide in test utilities (test/test/util/) since it sets up the namespace for us. But we will not use require there because there is no deps management for test code. Issue #1157 Change-Id: Icc44f51feeb568ea7d3980e693e92e560d897afd
59 lines
1.7 KiB
JSON
59 lines
1.7 KiB
JSON
{
|
|
"name": "shaka-player",
|
|
"description": "DASH/EME video player library",
|
|
"version": "2.3.0",
|
|
"homepage": "https://github.com/google/shaka-player",
|
|
"author": "Google",
|
|
"maintainers": [
|
|
{
|
|
"name": "Joey Parrish",
|
|
"email": "joeyparrish@google.com"
|
|
}
|
|
],
|
|
"devDependencies": {
|
|
"array-includes": "~3.0.3",
|
|
"babel-core": "^6.26.0",
|
|
"babel-preset-env": "^1.6.1",
|
|
"es6-shim": "~0.35.3",
|
|
"eslint": "^4.14.0",
|
|
"eslint-config-google": "^0.9.1",
|
|
"esprima": "~3.1.3",
|
|
"htmlhint": "yaniswang/HTMLHint#152a114f",
|
|
"in-publish": "~2.0.0",
|
|
"jasmine-ajax": "~3.3.1",
|
|
"jasmine-core": "^2.8.0",
|
|
"karma": "~1.6.0",
|
|
"karma-babel-preprocessor": "^7.0.0",
|
|
"karma-chrome-launcher": "~2.0.0",
|
|
"karma-coverage": "~1.1.1",
|
|
"karma-edge-launcher": "~0.4.1",
|
|
"karma-firefox-launcher": "~1.0.1",
|
|
"karma-ie-launcher": "~1.0.0",
|
|
"karma-jasmine": "~1.1.0",
|
|
"karma-jasmine-ajax": "~0.1.13",
|
|
"karma-opera-launcher": "~1.0.0",
|
|
"karma-safari-launcher": "~1.0.0",
|
|
"karma-source-map-support": "^1.2.0",
|
|
"karma-spec-reporter": "~0.0.31",
|
|
"karma-webdriver-launcher": "~1.0.5",
|
|
"mux.js": "~4.2.1",
|
|
"requirejs": "~2.3.3",
|
|
"rimraf": "~2.6.1",
|
|
"sprintf-js": "~1.0.3",
|
|
"useragent": "~2.1.13",
|
|
"which": "~1.3.0"
|
|
},
|
|
"main": "dist/shaka-player.compiled.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/google/shaka-player.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/google/shaka-player/issues"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"prepublish": "in-publish && python ./build/checkversion.py && python ./build/all.py --force || not-in-publish"
|
|
}
|
|
}
|