mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
once last js has gone - will move the overrides to rules
This commit is contained in:
@@ -59,12 +59,22 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"prefer-destructuring": "error",
|
"prefer-destructuring": "error",
|
||||||
"@typescript-eslint/consistent-type-assertions": [
|
"@typescript-eslint/consistent-type-assertions": "off",
|
||||||
"error",
|
"@typescript-eslint/explicit-function-return-type": "off"
|
||||||
{
|
},
|
||||||
"assertionStyle": "as",
|
"overrides": [
|
||||||
"objectLiteralTypeAssertions": "never"
|
{
|
||||||
|
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
|
||||||
|
"rules": {
|
||||||
|
"@typescript-eslint/explicit-function-return-type": "error",
|
||||||
|
"@typescript-eslint/consistent-type-assertions": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"assertionStyle": "as",
|
||||||
|
"objectLiteralTypeAssertions": "never"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
@@ -8,7 +8,7 @@ import { parsingService } from './services/parsing_service';
|
|||||||
import { torrentFileService } from './services/torrent_file_service';
|
import { torrentFileService } from './services/torrent_file_service';
|
||||||
import { torrentSubtitleService } from './services/torrent_subtitle_service';
|
import { torrentSubtitleService } from './services/torrent_subtitle_service';
|
||||||
|
|
||||||
export async function createTorrentEntry(torrent, overwrite = false) {
|
export async function createTorrentEntry(torrent, overwrite = false) : Promise<void> {
|
||||||
const titleInfo = parse(torrent.title);
|
const titleInfo = parse(torrent.title);
|
||||||
|
|
||||||
if (!torrent.imdbId && torrent.type !== TorrentType.Anime) {
|
if (!torrent.imdbId && torrent.type !== TorrentType.Anime) {
|
||||||
|
|||||||
Reference in New Issue
Block a user