mirror of
https://github.com/minescope/mineping.git
synced 2025-07-17 02:06:05 +03:00
We use JSDoc for documentation, but these annotations were not being validated. This meant that type information could become outdated or incorrect without any warning. This commit introduces the TypeScript compiler (`tsc`) as a static analysis tool to leverage our existing JSDoc comments. To support this, JSDoc annotations across the codebase have been improved for accuracy. Additionally, the `varint` module now uses a custom `VarIntError` class for better type inference and error handling. A new `typecheck` script has been added to `package.json` to run this validation.
15 lines
265 B
JSON
15 lines
265 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"noEmit": true,
|
|
"strict": true,
|
|
"moduleResolution": "node",
|
|
"target": "ES2022",
|
|
"lib": ["ES2022"],
|
|
"esModuleInterop": true
|
|
},
|
|
"include": ["lib", "index.js"],
|
|
"exclude": ["node_modules"]
|
|
}
|