Skip to content

Commit 2ab6854

Browse files
committed
feat: scaffold plugin entry point
1 parent 9ac05ff commit 2ab6854

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/index.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* ESLint Plugin for Lingui with TypeScript type-aware rules
3+
*
4+
* @packageDocumentation
5+
*/
6+
7+
// TODO: Import rules when implemented
8+
// import { noComplexExpressionsInMessage } from "./rules/no-complex-expressions-in-message.js";
9+
10+
const plugin = {
11+
meta: {
12+
name: "eslint-plugin-lingui",
13+
version: "1.0.0",
14+
},
15+
rules: {
16+
// Rules will be added here as they are implemented
17+
},
18+
configs: {},
19+
};
20+
21+
// Add self-reference for flat config
22+
const flatRecommended = {
23+
plugins: {
24+
lingui: plugin,
25+
},
26+
rules: {
27+
// Recommended rules will be added here
28+
},
29+
};
30+
31+
plugin.configs = {
32+
"flat/recommended": flatRecommended,
33+
};
34+
35+
export default plugin;

0 commit comments

Comments
 (0)