We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently all node-modules are imported like import { dirname, join } from 'path'
import { dirname, join } from 'path'
for maintainability, this could be optimized:
from
import * as CDX from '@cyclonedx/cyclonedx-library' import { readdirSync, readFileSync } from 'fs' import * as normalizePackageJson from 'normalize-package-data' import { dirname, join } from 'path'
to
import { readdirSync, readFileSync } from 'node:fs' import { dirname, join } from 'node:path' import * as CDX from '@cyclonedx/cyclonedx-library' import * as normalizePackageJson from 'normalize-package-data'
maybe there is a eslint rule for this? import-js/eslint-plugin-import#2717
eslint
the following section became obsolete due to #1209
the lib supports node versions that do not know the node-colon(node:) prefix. this can be "fixed" on compile time. (untested):
node:
{ "compilerOptions": { "baseUrl": ".", "paths": { "node:*": ["*"] } } }
The text was updated successfully, but these errors were encountered:
966f3cf
jkowalleck
Successfully merging a pull request may close this issue.
currently all node-modules are imported like
import { dirname, join } from 'path'
for maintainability, this could be optimized:
example result
from
to
enforcement
maybe there is a
eslint
rule for this? import-js/eslint-plugin-import#2717risks and problems:
the following section became obsolete due to #1209
the lib supports node versions that do not know the node-colon(
node:
) prefix.this can be "fixed" on compile time. (untested):
The text was updated successfully, but these errors were encountered: