Skip to content

Commit b953eff

Browse files
authored
Merge pull request #2290 from oasisprotocol/lw/jsdoc-types
Fix outdated jsdoc types
2 parents 4c62de6 + 1d42a09 commit b953eff

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.changelog/2290.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix outdated jsdoc types

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22

3-
/** @type { import('eslint').Linter.Config } */
3+
/** @type { import('eslint').Linter.LegacyConfig } */
44
const config = {
55
extends: [
66
'eslint:recommended', // https://eslint.org/docs/rules/

src/app/components/ConsensusTransactionMethod/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ const MethodIconWithTruncatedLabel: FC<MethodIconProps> = props => {
160160
}
161161

162162
const getConsensusTransactionLabel = (t: TFunction, method: ConsensusTxMethod | undefined): string => {
163-
// Please note: when updating this, keep it in sync
164-
// with the knownConsensusTxMethods array below!
165-
166163
switch (method) {
167164
case ConsensusTxMethod.stakingTransfer:
168165
return t('transactions.method.stakingTransfer')

vite.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import react from '@vitejs/plugin-react'
33
import tsconfigPaths from 'vite-tsconfig-paths'
44
import tailwindcss from '@tailwindcss/vite'
55

6-
/** @type {import('vite').UserConfig} */
76
export default defineConfig(() => {
87
return {
98
plugins: [react(), tsconfigPaths(), tailwindcss()],
@@ -20,7 +19,7 @@ export default defineConfig(() => {
2019
envPrefix: 'REACT_APP_',
2120
css: {
2221
modules: {
23-
localsConvention: 'camelCase', // Optional: Ensures class names are imported as camelCase
22+
localsConvention: /** @type {'camelCase'} */ ('camelCase'), // Optional: Ensures class names are imported as camelCase
2423
},
2524
},
2625
}

0 commit comments

Comments
 (0)