mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
style: add new rule for imports (#785)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
// Make sure any symlinks in the project folder are resolved:
|
||||
// https://github.com/facebookincubator/create-react-app/issues/637
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {literal, nativeEnum, number, string, strictObject, union} from 'zod';
|
||||
import type {infer as zodInfer} from 'zod';
|
||||
import {literal, nativeEnum, number, strictObject, string, union} from 'zod';
|
||||
|
||||
import {AccessLevel} from './constants/Auth';
|
||||
import {clientConnectionSettingsSchema} from './ClientConnectionSettings';
|
||||
import {AccessLevel} from './constants/Auth';
|
||||
|
||||
export const authMethodSchema = union([literal('default'), literal('none')]);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {literal, number, string, strictObject, union} from 'zod';
|
||||
import type {infer as zodInfer} from 'zod';
|
||||
import {literal, number, strictObject, string, union} from 'zod';
|
||||
|
||||
const delugeConnectionSettingsSchema = strictObject({
|
||||
client: literal('Deluge'),
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
// env variable FLOOD_OPTION_port=80 is equivalent to argument --port 80. Use ',' to split
|
||||
// for arguments that take multiple inputs such as --allowedpath.
|
||||
|
||||
import {array, boolean, number, strictObject, string} from 'zod';
|
||||
import type {infer as zodInfer} from 'zod';
|
||||
import {array, boolean, number, strictObject, string} from 'zod';
|
||||
|
||||
import {authMethodSchema} from './Auth';
|
||||
import {clientConnectionSettingsSchema} from './ClientConnectionSettings';
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import type {infer as zodInfer} from 'zod';
|
||||
|
||||
import {AccessLevel} from '../constants/Auth';
|
||||
import {credentialsSchema} from '../Auth';
|
||||
|
||||
import type {AuthMethod} from '../Auth';
|
||||
import {credentialsSchema} from '../Auth';
|
||||
import {AccessLevel} from '../constants/Auth';
|
||||
|
||||
// All auth requests are schema validated to ensure security.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {array, boolean, number, record, strictObject, string} from 'zod';
|
||||
import {noComma} from '../../util/regEx';
|
||||
|
||||
import type {infer as zodInfer} from 'zod';
|
||||
import {array, boolean, number, record, strictObject, string} from 'zod';
|
||||
|
||||
import {noComma} from '../../util/regEx';
|
||||
|
||||
const TAG_NO_COMMA_MESSAGE = {
|
||||
message: 'Tag must not contain comma',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type {TorrentStatus} from '../constants/torrentStatusMap';
|
||||
import type {TorrentContent} from './TorrentContent';
|
||||
import type {TorrentPeer} from './TorrentPeer';
|
||||
import type {TorrentStatus} from '../constants/torrentStatusMap';
|
||||
import type {TorrentTracker} from './TorrentTracker';
|
||||
|
||||
export interface TorrentDetails {
|
||||
|
||||
Reference in New Issue
Block a user