You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1da4043
Browse filesBrowse the repository at this point in the historyBrowse files
authored
refactor: make no-unused-modules no-op on ESLint 10 or later (#457)
Make the `no-unused-modules` rule no-op on ESLint 10 or later for now before we can implement an alternative. A warning message about this behavior is added, and can be suppressed with the new `suppressMissingFileEnumeratorAPIWarning` rule option (`import-x/no-unused-modules: ['error', { suppressMissingFileEnumeratorAPIWarning: true }]`).
description: 'ignore type exports without any usage',
496
525
type: 'boolean',
497
526
},
527
+
suppressMissingFileEnumeratorAPIWarning: {
528
+
description:
529
+
'ESLint 10 and later versions remove the FileEnumerator API, which is required by the "no-unused-modules" rule. Therefore a warning message will be logged before an alternative is implemented. You can suppress the warning with this option',
ESLint removes the FileEnumerator API since ESLint 10, which is required by the "no-unused-modules" rule. Therefore, the "no-unused-modules" rule is no-op for now before we can implement an alternative.
584
+
In the meantime, if you want to keep this rule enabled, you can suppress this warning with the "suppressMissingFileEnumeratorAPIWarning" rule option: \`import-x/no-unused-modules: ['error', { suppressMissingFileEnumeratorAPIWarning: true }]\`
0 commit comments