@duckalization/eslint-plugin
v0.1.0
Published
ESLint rules that catch hardcoded UI strings before they ship unlocalizable, with keyless __() wrap suggestions.
Maintainers
Readme
@duckalization/eslint-plugin
Optional flat-config rule duckalization/no-unlocalized-strings. Flags
hardcoded JSX text and human-facing attributes that were never wrapped in
__(), with an editor suggestion for the wrap.
pnpm add -D @duckalization/eslint-plugin eslintimport duckalization from '@duckalization/eslint-plugin';
export default [duckalization.configs.recommended]; // warnexport default [{
plugins: { duckalization },
rules: { 'duckalization/no-unlocalized-strings': 'warn' },
}];Suggestions apply from the editor, not eslint --fix: someone has to confirm
the string is user-facing, and __ must be in scope. duckalize extract
remains the gate for wrapped calls.
Complete usage guide: duckalization README.
Agents: llms.txt.
