Skip to content

Commit 1929a55

Browse files
committed
Add use of the eslint plugin
1 parent 38d58ab commit 1929a55

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/lint/config/eslint.config.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import path from 'node:path';
1010
import { fileURLToPath } from 'node:url';
1111
import js from '@eslint/js';
1212
import { FlatCompat } from '@eslint/eslintrc';
13+
import leafyGreenPlugin from '@lg-tools/eslint-plugin';
1314

1415
const __filename = fileURLToPath(import.meta.url);
1516
const __dirname = path.dirname(__filename);
@@ -224,4 +225,17 @@ export default [
224225
'jest/expect-expect': 'off',
225226
},
226227
},
228+
{
229+
plugins: {
230+
'@lg-tools': leafyGreenPlugin,
231+
},
232+
233+
files: ['**/*.tsx'],
234+
235+
ignores: ['**/*.spec.tsx', '**/testing/**'],
236+
237+
rules: {
238+
'@lg-tools/no-duplicate-ids': 'warn',
239+
},
240+
},
227241
];

tools/lint/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@eslint/eslintrc": "^3.2.0",
2222
"@eslint/js": "^9.16.0",
2323
"@lg-tools/build": "workspace:^",
24+
"@lg-tools/eslint-plugin": "workspace:^",
2425
"@lg-tools/meta": "workspace:^",
2526
"@types/cli-progress": "^3.11.6",
2627
"@types/cross-spawn": "6.0.2",

0 commit comments

Comments
 (0)