diff --git a/eslint.config.mjs b/eslint.config.mjs index 1d12dd5f..a40fdcaa 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -43,6 +43,7 @@ export default [ rules: { ...typescriptEslint.configs.recommended.rules, "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/triple-slash-reference": "off", }, }, { diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..84ecd4a4 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "target": "es6", + /* Strict Type-Checking Options */ + "strict": true, + /* Additional Checks */ + /* next line commented out because we need unused vars for type tests */ + // "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "lib": ["es2017"] + }, + "include": [ + "types/**/*" + ] +} diff --git a/types/base.d.ts b/types/base.d.ts index c42583ab..8aaec44c 100644 --- a/types/base.d.ts +++ b/types/base.d.ts @@ -1,27 +1,27 @@ -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/types/index.d.ts b/types/index.d.ts index 5e761c65..603c0da0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -/// +/// declare module 'rclnodejs' { /**