diff --git a/.changelog/2290.trivial.md b/.changelog/2290.trivial.md new file mode 100644 index 0000000000..f3d16ca6ba --- /dev/null +++ b/.changelog/2290.trivial.md @@ -0,0 +1 @@ +Fix outdated jsdoc types diff --git a/.eslintrc.js b/.eslintrc.js index 01de037a99..038f2e5e40 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,6 @@ // @ts-check -/** @type { import('eslint').Linter.Config } */ +/** @type { import('eslint').Linter.LegacyConfig } */ const config = { extends: [ 'eslint:recommended', // https://eslint.org/docs/rules/ diff --git a/src/app/components/ConsensusTransactionMethod/index.tsx b/src/app/components/ConsensusTransactionMethod/index.tsx index 6ce60198a0..2326ba6e4f 100644 --- a/src/app/components/ConsensusTransactionMethod/index.tsx +++ b/src/app/components/ConsensusTransactionMethod/index.tsx @@ -160,9 +160,6 @@ const MethodIconWithTruncatedLabel: FC = props => { } const getConsensusTransactionLabel = (t: TFunction, method: ConsensusTxMethod | undefined): string => { - // Please note: when updating this, keep it in sync - // with the knownConsensusTxMethods array below! - switch (method) { case ConsensusTxMethod.stakingTransfer: return t('transactions.method.stakingTransfer') diff --git a/vite.config.mjs b/vite.config.mjs index a7f286b55d..d0b2488cc2 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -3,7 +3,6 @@ import react from '@vitejs/plugin-react' import tsconfigPaths from 'vite-tsconfig-paths' import tailwindcss from '@tailwindcss/vite' -/** @type {import('vite').UserConfig} */ export default defineConfig(() => { return { plugins: [react(), tsconfigPaths(), tailwindcss()], @@ -20,7 +19,7 @@ export default defineConfig(() => { envPrefix: 'REACT_APP_', css: { modules: { - localsConvention: 'camelCase', // Optional: Ensures class names are imported as camelCase + localsConvention: /** @type {'camelCase'} */ ('camelCase'), // Optional: Ensures class names are imported as camelCase }, }, }