Skip to content

Commit

Permalink
fix: no-single-variables-to-translate renamed to no-single-variable... (
Browse files Browse the repository at this point in the history
#69)

b57329b renamed the rule from `no-single-variables-to-translate`
to `no-single-variable-to-translate`. I assume this was a mistake, since all the files, docs etc.
still refer to the rule as `no-single-variables-to-translate` (plural) as it was named before v0.4.0
  • Loading branch information
monholm authored Oct 17, 2024
1 parent e935e01 commit b048305
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const plugin = {
const recommendedRules: { [K in RuleKey as `lingui/${K}`]?: FlatConfig.RuleLevel } = {
'lingui/t-call-in-function': 'error',
'lingui/no-single-tag-to-translate': 'warn',
'lingui/no-single-variable-to-translate': 'warn',
'lingui/no-single-variables-to-translate': 'warn',
'lingui/no-trans-inside-trans': 'warn',
}

Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-single-variables-to-translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '../helpers'
import { createRule } from '../create-rule'

export const name = 'no-single-variable-to-translate'
export const name = 'no-single-variables-to-translate'
export const rule = createRule({
name,
meta: {
Expand Down

0 comments on commit b048305

Please sign in to comment.