Skip to content

Commit

Permalink
chore: add eslint semi rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Oct 22, 2024
1 parent 2acb9a8 commit a532d48
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion src/types/MetaItem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type MetaItemPreview = {

type MetaItem = MetaItemPreview & {
videos: Video[],
}
};

type MetaItemDeepLinks = {
metaDetailsVideos: string | null,
Expand Down
2 changes: 1 addition & 1 deletion src/types/models/Ctx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type NotificationItem = {
metaId: string,
videoId: string,
videoReleased: string,
}
};

type SearchHistoryItem = {
query: string,
Expand Down
10 changes: 5 additions & 5 deletions src/types/models/StremingServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -67,7 +67,7 @@ type Options = {
timeout: number,
tracker: boolean,
virtual: boolean,
}
};

type Statistics = {
name: string,
Expand Down

0 comments on commit a532d48

Please sign in to comment.