style: add new rule for imports (#785)

This commit is contained in:
Trim21
2024-08-14 06:31:39 +08:00
committed by GitHub
parent 53ba39de72
commit 2a0d29c1f5
72 changed files with 353 additions and 306 deletions
+2 -3
View File
@@ -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.
+3 -3
View File
@@ -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',