Skip to content

Commit 92e6911

Browse files
fix(eslint): restore eslint-import-resolver-typescript for import-x
The resolver is required by eslint-plugin-import-x for TypeScript path resolution. Was incorrectly removed in the package upgrade commit. Also disable license-header rule for shebang bin files (workaround). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 189ac03 commit 92e6911

4 files changed

Lines changed: 44 additions & 1 deletion

File tree

cdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"aws-cdk": "^2",
4747
"esbuild": "^0.27.4",
4848
"eslint": "^10",
49+
"eslint-import-resolver-typescript": "^4",
4950
"eslint-plugin-import-x": "^4",
5051
"eslint-plugin-jest": "^29.15.1",
5152
"eslint-plugin-jsdoc": "^62.8.1",

cli/eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,12 @@ export default [
214214
'no-console': 'off',
215215
},
216216
},
217+
218+
// Override: shebang files can't have the license header at line 1
219+
{
220+
files: ['src/bin/**/*.ts'],
221+
rules: {
222+
'license-header/header': 'off',
223+
},
224+
},
217225
];

cli/package.json

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

yarn.lock

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)