File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ alwaysApply: false
1414import { ESLintUtils, type TSESTree } from "@typescript-eslint/utils"
1515
1616const createRule = ESLintUtils.RuleCreator(
17- (name) => `https://github.com/your-org /eslint-plugin-lingui/docs/rules/${name}.md`
17+ (name) => `https://github.com/user /eslint-plugin-lingui-typescript/blob/main /docs/rules/${name}.md`
1818)
1919
2020export const noComplexExpressions = createRule({
@@ -318,7 +318,7 @@ import { noNestedMacros } from "./rules/no-nested-macros.js"
318318
319319const plugin = {
320320 meta: {
321- name: "eslint-plugin-lingui",
321+ name: "eslint-plugin-lingui-typescript ",
322322 version: "1.0.0",
323323 },
324324 rules: {
@@ -329,11 +329,11 @@ const plugin = {
329329 configs: {
330330 "flat/recommended": {
331331 plugins: {
332- lingui: plugin,
332+ " lingui-ts" : plugin,
333333 },
334334 rules: {
335- "lingui/no-complex-expressions-in-message": "error",
336- "lingui/no-nested-macros": "error",
335+ "lingui-ts /no-complex-expressions-in-message": "error",
336+ "lingui-ts /no-nested-macros": "error",
337337 // ... other rules
338338 },
339339 },
Original file line number Diff line number Diff line change @@ -61,16 +61,16 @@ Provide an ESLint plugin for Lingui that:
61612 . Flat Config usage MUST be possible like:
6262
6363``` ts
64- import linguiPlugin from " eslint-plugin-lingui" ;
64+ import linguiPlugin from " eslint-plugin-lingui-typescript "
6565
6666export default [
6767 linguiPlugin .configs [" flat/recommended" ],
6868 {
6969 rules: {
70- " lingui/no-unlocalized-strings" : [" error" , { /* options */ }],
70+ " lingui-ts /no-unlocalized-strings" : [" error" , { /* options */ }],
7171 },
7272 },
73- ];
73+ ]
7474```
7575
7676---
@@ -134,7 +134,7 @@ Each rule MUST:
134134
135135** Configuration (Options):**
136136
137- * Default export name: ` "lingui/no-complex-expressions-in-message": "error" ` in recommended config.
137+ * Default export name: ` "lingui-ts /no-complex-expressions-in-message": "error" ` in recommended config.
138138* Options object fields (optional):
139139 * ` allowedCallees: string[] `
140140 Format: dot-separated string, e.g. ` "i18n.number" ` , ` "i18n.date" ` .
Original file line number Diff line number Diff line change 99
1010const plugin = {
1111 meta : {
12- name : "eslint-plugin-lingui" ,
12+ name : "eslint-plugin-lingui-typescript " ,
1313 version : "1.0.0" ,
1414 } ,
1515 rules : {
1616 // Rules will be added here as they are implemented
1717 } ,
1818 configs : { } ,
19- } ;
19+ }
2020
2121// Add self-reference for flat config
2222const flatRecommended = {
2323 plugins : {
24- lingui : plugin ,
24+ " lingui-ts" : plugin ,
2525 } ,
2626 rules : {
2727 // Recommended rules will be added here
You can’t perform that action at this time.
0 commit comments