A File Entity
is mostly a JavaScript source file, and can also be something relevant to
the project.
name: File extensions
Files under given path with one of following extension names will be considered
as File Entity
s:
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.
/* Empty */
name: js extension
entity:
type: file
items:
- name: <File file0.js>
loc: file0
//// @ext mjs
/* Empty */
name: mjs extension
entity:
type: file
items:
- name: <File file0.mjs>
loc: file0
//// @ext cjs
/* Empty */
name: cjs extension
entity:
type: file
items:
- name: <File file0.cjs>
loc: file0
/* Empty */
name: ts extension
entity:
type: file
items:
- name: <File file0.ts>
loc: file0
//// @ext d.ts
/* Empty */
name: dts extension
entity:
type: file
items:
- name: <File file0.d.ts>
loc: file0
//// @ext mts
/* Empty */
name: mts extension
entity:
type: file
items:
- name: <File file0.mts>
loc: file0
//// @ext cts
/* Empty */
name: cts extension
entity:
type: file
items:
- name: <File file0.cts>
loc: file0
/* Empty */
name: jsx extension
entity:
type: file
items:
- name: <File file0.jsx>
loc: file0
/* Empty */
name: tsx extension
entity:
type: file
items:
- name: <File file0.tsx>
loc: file0
Name | Description | Type | Default |
---|