diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e02a5751..5f7667ff 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,6 +3,7 @@ module.exports = { rules: { 'global-require': 'off', 'import/no-extraneous-dependencies': 'off', + 'class-methods-use-this': 'off', }, overrides: [ { @@ -30,6 +31,10 @@ module.exports = { 'plugin:prettier/recommended', 'plugin:react/jsx-runtime', ], + rules: { + // TODO: fix need to turn on later + '@typescript-eslint/no-explicit-any': 'off', + }, parserOptions: { ecmaversion: 2018, sourceType: 'module', diff --git a/package.json b/package.json index ebd82f2f..23441c26 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "build": "vite build", "preview": "vite preview", "test:lint": "prettier --log-level silent --write . && eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", + "test:fix": "prettier --log-level silent --write . && eslint --fix --quiet \"./src/**/*.?(js|jsx|ts|tsx)\"", "test": "vitest run", "coverage": "vitest run --coverage", "prepare": "husky install" diff --git a/src/components/audio/audio.tsx b/src/components/audio/audio.tsx index da66dd26..05f35b60 100644 --- a/src/components/audio/audio.tsx +++ b/src/components/audio/audio.tsx @@ -1,12 +1,14 @@ -import React from 'react'; - const Audio = () => ( <> -