6817b990a8
Adds a custom ESLint rule 'lingui-msg-rule' that ensures the Lingui _()
function is called with msg`` template literals or plural/select macros,
preventing accidental misuse like _('string') which bypasses i18n.
https://claude.ai/code/session_01JMXXPUgAHiSBGmfGwUojKy
17 lines
388 B
JavaScript
17 lines
388 B
JavaScript
'use strict'
|
|
|
|
const plugin = {
|
|
meta: {
|
|
name: 'eslint-plugin-bsky-internal',
|
|
version: '1.0.0',
|
|
},
|
|
rules: {
|
|
'avoid-unwrapped-text': require('./avoid-unwrapped-text'),
|
|
'use-exact-imports': require('./use-exact-imports'),
|
|
'use-prefixed-imports': require('./use-prefixed-imports'),
|
|
'lingui-msg-rule': require('./lingui-msg-rule'),
|
|
},
|
|
}
|
|
|
|
module.exports = plugin
|