import-js/eslint-plugin-import
Vedi su GitHub🐞: [import/newline-after-import] False positively reports wrong empty line numbers between imports with comments
Open
#2913 aperta il 31 ott 2023
help wantedimport/export ordering
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
Something like that:
import './index.scss';
// other imports
import { ErrorBoundary } from 'react-error-boundary';
And my setting is
'import/newline-after-import': [
'error',
{
count: 2,
exactCount: true,
considerComments: true
}
]
It reports like this:
But this is not the correct behavior, as in the documentation it clearly says:
Enforces having one or more empty lines after the last top-level import statement or require call.
after the last top-level import statement
Note: the exactCount doesn't matter, as I've tried to remove it but it's still causing issue.
Package version: ALL LATEST