Files
wekan/tsconfig.lint.json
T
Lauri Ojansivu f1d2a497bc Lint for promises that are not awaited, handled or marked void.
npm run lint:promises runs typescript-eslint's no-floating-promises and
no-misused-promises over models/lib, server/lib and imports/lib, with type
information read from tsconfig.lint.json (nothing is type-checked). The
eleven findings were promises that never reject (their own catch) and now
say so with void, and three checks that used a promise as a boolean.

Thanks to xet7 !
2026-11-02 14:30:49 +02:00

20 lines
648 B
JSON

{
"//": "Type information for `npm run lint:promises` (.eslintrc.promises.json) only. Nothing is compiled or type-checked: the files are read so ESLint can tell which calls return a promise. Meteor does not use this file.",
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"noEmit": true,
"skipLibCheck": true,
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"],
"maxNodeModuleJsDepth": 0
},
"include": [
"models/lib/**/*.js", "models/lib/**/*.cjs",
"server/lib/**/*.js", "server/lib/**/*.cjs",
"imports/lib/**/*.js", "imports/lib/**/*.cjs"
]
}