mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
chore: add eslint semi rules
This commit is contained in:
parent
2acb9a8f7f
commit
a532d48bf5
4 changed files with 10 additions and 8 deletions
|
|
@ -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', {
|
||||||
|
|
|
||||||
2
src/types/MetaItem.d.ts
vendored
2
src/types/MetaItem.d.ts
vendored
|
|
@ -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,
|
||||||
|
|
|
||||||
2
src/types/models/Ctx.d.ts
vendored
2
src/types/models/Ctx.d.ts
vendored
|
|
@ -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,
|
||||||
|
|
|
||||||
10
src/types/models/StremingServer.d.ts
vendored
10
src/types/models/StremingServer.d.ts
vendored
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue