Skip to content

Commit

Permalink
docs: Change comments to avoid Sonar smell
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Dec 1, 2023
1 parent b52107e commit 9cb9743
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/constants/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ module.exports = {
VALID_DEPENDENCY_NODE_KINDS: ["value", "type"],
DEFAULT_DEPENDENCY_NODES: {
import: [
// import x from 'source'
// Note: detects "import x from 'source'"
{ selector: "ImportDeclaration:not([importKind=type]) > Literal", kind: "value" },
// import type x from 'source'
// Note: detects "import type x from 'source'"
{ selector: "ImportDeclaration[importKind=type] > Literal", kind: "type" },
],
"dynamic-import": [
// import('source')
// Note: detects "import('source')"
{ selector: "ImportExpression > Literal", kind: "value" },
],
export: [
// export * from 'source';
// Note: detects "export * from 'source'";
{ selector: "ExportAllDeclaration:not([exportKind=type]) > Literal", kind: "value" },
// export type * from 'source';
// Note: detects "export type * from 'source'";
{ selector: "ExportAllDeclaration[exportKind=type] > Literal", kind: "type" },
// export { x } from 'source';
// Note: detects "export { x } from 'source'";
{ selector: "ExportNamedDeclaration:not([exportKind=type]) > Literal", kind: "value" },
// export type { x } from 'source';
// Note: detects "export type { x } from 'source'";
{ selector: "ExportNamedDeclaration[exportKind=type] > Literal", kind: "type" },
],
},
Expand Down

0 comments on commit 9cb9743

Please sign in to comment.