Skip to content

Commit a6d7533

Browse files
committed
refactor: rename plugin to eslint-plugin-lingui-typescript
- Plugin namespace: lingui-ts - Rule prefix: lingui-ts/*
1 parent 1bf4b19 commit a6d7533

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.cursor/rules/eslint-plugin-patterns.mdc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ alwaysApply: false
1414
import { ESLintUtils, type TSESTree } from "@typescript-eslint/utils"
1515

1616
const 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

2020
export const noComplexExpressions = createRule({
@@ -318,7 +318,7 @@ import { noNestedMacros } from "./rules/no-nested-macros.js"
318318

319319
const 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
},

docs/spec-sheet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ Provide an ESLint plugin for Lingui that:
6161
2. 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

6666
export 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"`.

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99

1010
const 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
2222
const flatRecommended = {
2323
plugins: {
24-
lingui: plugin,
24+
"lingui-ts": plugin,
2525
},
2626
rules: {
2727
// Recommended rules will be added here

0 commit comments

Comments
 (0)