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

View file

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

View file

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

View file

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