initial lint cleanup

This commit is contained in:
Proddy
2023-04-22 09:47:29 +02:00
parent d8ff088231
commit 19e8e4a7a1
82 changed files with 701 additions and 775 deletions

View File

@@ -1,7 +1,7 @@
import Schema from 'async-validator';
import { isAPEnabled } from 'framework/ap/APSettingsForm';
import { APSettings } from 'types';
import { IP_ADDRESS_VALIDATOR } from './shared';
import type { APSettings } from 'types';
import { isAPEnabled } from 'framework/ap/APSettingsForm';
export const createAPSettingsValidator = (apSettings: APSettings) =>
new Schema({

View File

@@ -1,6 +1,6 @@
import Schema from 'async-validator';
import { MqttSettings } from 'types';
import { IP_OR_HOSTNAME_VALIDATOR } from './shared';
import type { MqttSettings } from 'types';
export const createMqttSettingsValidator = (mqttSettings: MqttSettings) =>
new Schema({

View File

@@ -1,6 +1,6 @@
import Schema from 'async-validator';
import { NetworkSettings } from 'types';
import { HOSTNAME_VALIDATOR, IP_ADDRESS_VALIDATOR } from './shared';
import type { NetworkSettings } from 'types';
export const createNetworkSettingsValidator = (networkSettings: NetworkSettings) =>
new Schema({

View File

@@ -1,5 +1,6 @@
import Schema, { InternalRuleItem } from 'async-validator';
import { User } from 'types';
import Schema from 'async-validator';
import type { InternalRuleItem } from 'async-validator';
import type { User } from 'types';
export const SECURITY_SETTINGS_VALIDATOR = new Schema({
jwt_secret: [