chore: add eslint semi rules

This commit is contained in:
Tim 2024-10-22 16:31:41 +02:00
parent 2acb9a8f7f
commit a532d48bf5
4 changed files with 10 additions and 8 deletions

View file

@ -2,7 +2,7 @@ import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';
import stylistic from '@stylistic/eslint-plugin'
import stylistic from '@stylistic/eslint-plugin';
export default [
pluginJs.configs.recommended,
@ -83,6 +83,8 @@ export default [
'@stylistic/space-before-blocks': 'error',
'@stylistic/no-trailing-spaces': 'error',
'@stylistic/func-call-spacing': 'error',
'@stylistic/semi': 'error',
'@stylistic/no-extra-semi': 'error',
'@stylistic/eol-last': 'error',
'@stylistic/no-multi-spaces': 'error',
'@stylistic/no-multiple-empty-lines': ['error', {

View file

@ -23,7 +23,7 @@ type MetaItemPreview = {
type MetaItem = MetaItemPreview & {
videos: Video[],
}
};
type MetaItemDeepLinks = {
metaDetailsVideos: string | null,

View file

@ -56,7 +56,7 @@ type NotificationItem = {
metaId: string,
videoId: string,
videoReleased: string,
}
};
type SearchHistoryItem = {
query: string,

View file

@ -38,23 +38,23 @@ type Source = {
numFoundUniq: number,
numRequests: number,
url: string,
}
};
type Growler = {
flood: number,
pulse: number,
}
};
type PeerSearch = {
max: number,
min: number,
sources: string[],
}
};
type SwarmCap = {
maxSpeed: number,
minPeers: number,
}
};
type Options = {
connections: number,
@ -67,7 +67,7 @@ type Options = {
timeout: number,
tracker: boolean,
virtual: boolean,
}
};
type Statistics = {
name: string,