mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
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 !
20 lines
648 B
JSON
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"
|
|
]
|
|
}
|