mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
build(eslint): disabling wildcard imports with eslint (#31761)
This commit is contained in:
@@ -24,7 +24,7 @@ import validator from '@rjsf/validator-ajv8';
|
||||
import { Row, Col } from 'src/components';
|
||||
import { Input, TextArea } from 'src/components/Input';
|
||||
import { t, styled } from '@superset-ui/core';
|
||||
import * as chrono from 'chrono-node';
|
||||
import { parseDate } from 'chrono-node';
|
||||
import ModalTrigger, { ModalTriggerRef } from 'src/components/ModalTrigger';
|
||||
import { Form, FormItem } from 'src/components/Form';
|
||||
import Button from 'src/components/Button';
|
||||
@@ -47,11 +47,10 @@ const getJSONSchema = () => {
|
||||
Object.entries(jsonSchema.properties).forEach(
|
||||
([key, value]: [string, any]) => {
|
||||
if (value.default && value.format === 'date-time') {
|
||||
const parsedDate = parseDate(value.default);
|
||||
jsonSchema.properties[key] = {
|
||||
...value,
|
||||
default: value.default
|
||||
? chrono.parseDate(value.default)?.toISOString()
|
||||
: null,
|
||||
default: parsedDate ? parsedDate.toISOString() : null,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user