Skip to content

Commit

Permalink
Fix eslint issues in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Aug 9, 2024
1 parent eea2f84 commit 0174adb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 10 additions & 7 deletions demo/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ module.exports = {
},

rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "none",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"comma-dangle": [1, "only-multiline"],
"no-cond-assign": 0,
"no-console": 1,
Expand Down Expand Up @@ -70,13 +80,6 @@ module.exports = {
"no-case-declarations": 0,
"no-var": 1,
"prefer-const": 1,
"@typescript-eslint/quotes": [
"error",
"double",
{
avoidEscape: true,
},
],
"linebreak-style": [1, "unix"],
semi: [1, "always"],
"react/jsx-uses-vars": [2],
Expand Down
6 changes: 3 additions & 3 deletions demo/scripts/lib/parseDRMConfigurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ function getServerCertificate(url: string): Promise<ArrayBuffer> {
const serverCertificate = xhr.response as ArrayBuffer;
resolve(serverCertificate);
} else {
reject();
reject(new Error("Could not fetch serverCertificate: HTTP Status Error"));
}
};
xhr.onerror = (err) => {
reject(err);
xhr.onerror = () => {
reject(new Error("Could not fetch serverCertificate: Request Error"));
};
xhr.send();
});
Expand Down

0 comments on commit 0174adb

Please sign in to comment.