Skip to content

Latest commit

 

History

History
268 lines (203 loc) · 4.3 KB

file.md

File metadata and controls

268 lines (203 loc) · 4.3 KB

Entity: File

A File Entity is mostly a JavaScript source file, and can also be something relevant to the project.

Supported Patterns

name: File extensions

Files under given path with one of following extension names will be considered as File Entitys:

Extension Name Comment
.js Including .test.js and .spec.js
.mjs
.cjs
.ts
.d.ts
.mts*
.cts*
.jsx
.tsx
.json package.json and tsconfig.json may have impacts on analysis
  • .mts and .cts are new in TypeScript 4.7, continue reading this release note to learn more.

Semantic: .js extension

Examples
.js extension
/* Empty */
name: js extension
entity:
    type: file
    items:
        -   name: <File file0.js>
            loc: file0

Semantic: .mjs extension

Examples
.mjs extension
//// @ext mjs
/* Empty */
name: mjs extension
entity:
    type: file
    items:
        -   name: <File file0.mjs>
            loc: file0

Semantic: .cjs extension

Examples
.cjs extension
//// @ext cjs
/* Empty */
name: cjs extension
entity:
    type: file
    items:
        -   name: <File file0.cjs>
            loc: file0

Semantic: .ts extension

Examples
.ts extension
/* Empty */
name: ts extension
entity:
    type: file
    items:
        -   name: <File file0.ts>
            loc: file0

Semantic: .d.ts extension

Examples
.d.ts extension
//// @ext d.ts
/* Empty */
name: dts extension
entity:
    type: file
    items:
        -   name: <File file0.d.ts>
            loc: file0

Semantic: .mts extension

Examples
.mts extension
//// @ext mts
/* Empty */
name: mts extension
entity:
    type: file
    items:
        -   name: <File file0.mts>
            loc: file0

Semantic: .cts extension

Examples
.cts extension
//// @ext cts
/* Empty */
name: cts extension
entity:
    type: file
    items:
        -   name: <File file0.cts>
            loc: file0

Semantic: .jsx extension

Examples
.jsx extension
/* Empty */
name: jsx extension
entity:
    type: file
    items:
        -   name: <File file0.jsx>
            loc: file0

Semantic: .tsx extension

Examples
.tsx extension
/* Empty */
name: tsx extension
entity:
    type: file
    items:
        -   name: <File file0.tsx>
            loc: file0

Properties

Name Description Type Default