Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/2290.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix outdated jsdoc types
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
3 changes: 0 additions & 3 deletions src/app/components/ConsensusTransactionMethod/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ const MethodIconWithTruncatedLabel: FC<MethodIconProps> = 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')
Expand Down
3 changes: 1 addition & 2 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand All @@ -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
},
},
}
Expand Down