Skip to content

Commit

Permalink
Feature/cleanup dependencies (#4469)
Browse files Browse the repository at this point in the history
* WiP: Cleanup dependencies

* Upgrade dependencies and fix unit tests for new chai version

* Fix ESLint errors

* Upgrade dev dependencies

* Update dependencies

* Update package-lock.json

* run npm audit fix

* Fix import in IndexDBStore.js

* Add keywords to package.json

* Fix unit test
  • Loading branch information
dsilhavy committed Apr 29, 2024
1 parent 5117500 commit 2285040
Show file tree
Hide file tree
Showing 12 changed files with 3,219 additions and 6,397 deletions.
95 changes: 50 additions & 45 deletions .eslintrc
@@ -1,47 +1,52 @@
{
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"globals": {
"dashjs": true,
"WebKitMediaSource": true,
"MediaSource": true,
"WebKitMediaKeys": true,
"MSMediaKeys": true,
"MediaKeys": true
},
"parser": "babel-eslint",
"rules": {
"no-caller": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-use-before-define": 0,
"strict": 0,
"no-loop-func": 0,
"no-multi-spaces": "error",
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
]
}
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"globals": {
"dashjs": true,
"WebKitMediaSource": true,
"MediaSource": true,
"WebKitMediaKeys": true,
"MSMediaKeys": true,
"MediaKeys": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"parser": "@babel/eslint-parser",
"requireConfigFile": false
},
"rules": {
"no-caller": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-use-before-define": 0,
"strict": 0,
"no-loop-func": 0,
"no-multi-spaces": "error",
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
]
}
}
2 changes: 1 addition & 1 deletion build/webpack.prod.cjs
Expand Up @@ -31,7 +31,7 @@ const configProd = merge(common, {
files: [
'src/**/*.js',
'test/unit/mocks/*.js',
'test/unit/*.js'
'test/unit/test/**/*.js'
]
})
]
Expand Down
2 changes: 0 additions & 2 deletions index_mediaplayerOnly.js
Expand Up @@ -34,8 +34,6 @@ import FactoryMaker from './src/core/FactoryMaker.js';
import Debug from './src/core/Debug.js';
import { getVersionString } from './src/core/Version.js';

import { } from 'es6-promise/auto.js';

// Shove both of these into the global scope
var context = (typeof window !== 'undefined' && window) || global;

Expand Down

0 comments on commit 2285040

Please sign in to comment.