Skip to content

Commit

Permalink
Disable no explicit any rule for demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
i-zolotarenko committed Dec 1, 2023
1 parent d110b92 commit 5560c44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
31 changes: 16 additions & 15 deletions p2p-media-loader-demo/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
module.exports = {
env: {es2020: true},
extends: ["../.eslintrc.common.cjs", "plugin:react-hooks/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": "warn",
"@typescript-eslint/ban-ts-comment": 0,
"react-hooks/exhaustive-deps": 0
},
env: {es2020: true},
extends: ["../.eslintrc.common.cjs", "plugin:react-hooks/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": "warn",
"@typescript-eslint/ban-ts-comment": 0,
"react-hooks/exhaustive-deps": 0,
"@typescript-eslint/no-explicit-any": 0
},
};
2 changes: 0 additions & 2 deletions p2p-media-loader-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ function App() {
const engine = hlsEngine.current;
if (!engine) return;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const clapprPlayer: any = new window.Clappr.Player({
parentId: "#player-container",
source: url,
Expand Down Expand Up @@ -235,7 +234,6 @@ function App() {
parentId: "#player-container",
source: url,
plugins: [window.DashShakaPlayback, window.LevelSelector],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
shakaOnBeforeLoad: (shakaPlayerInstance: any) => {
engine.initShakaPlayer(shakaPlayerInstance);
},
Expand Down
4 changes: 0 additions & 4 deletions p2p-media-loader-demo/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
declare global {
interface Window {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Clappr: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
LevelSelector: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
DashShakaPlayback: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
shaka: any;
}
}
Expand Down

0 comments on commit 5560c44

Please sign in to comment.