Skip to content

chore(lint): use strict linter options#1692

Open
chintankavathia wants to merge 1 commit intomainfrom
chore/lint/strict-linter-options
Open

chore(lint): use strict linter options#1692
chintankavathia wants to merge 1 commit intomainfrom
chore/lint/strict-linter-options

Conversation

@chintankavathia
Copy link
Member

@chintankavathia chintankavathia commented Mar 20, 2026

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new ESLint configuration, strictLinterOptions, which enforces reporting unused eslint-disable directives as errors. This configuration is then applied globally by integrating it into the main eslint.config.js and subsequently importing and spreading it into the defineConfig calls of all project-specific ESLint configurations.

@chintankavathia chintankavathia force-pushed the chore/lint/strict-linter-options branch from 803c1cd to a1d1686 Compare March 20, 2026 07:08
@chintankavathia chintankavathia force-pushed the chore/lint/strict-linter-options branch from a1d1686 to 211793e Compare March 20, 2026 07:44
@chintankavathia chintankavathia marked this pull request as ready for review March 20, 2026 08:19
@chintankavathia chintankavathia requested review from a team as code owners March 20, 2026 08:19
export default defineConfig(...tsConfig, ...templateConfig);
export const strictLinterOptions = defineConfig({
linterOptions: {
reportUnusedDisableDirectives: 'error'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, you can directly do this in siemens/lint

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will not work if I just put it in existing lint configs and extend. this means to move it to siemens/lint also it requires to be a separate package entry something like @siemens/eslint-config-linter and to me it feels too much overhead just for one config. WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants