mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
initial lint cleanup
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user