mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 19:36:42 +00:00
style: add new rule for imports (#785)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user