mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
ESLint: Remove ts-ignore comments (#10933)
* Upgrade json-bigint, add @types/json-bigint to deps * Upgrade react-bootstrap-dialog * Fix ts-ignore * Fix ts-ignore * Fix ts-ignore * Upgrade react-syntax-highlighter, fix ts-ignore * Fix ts-ignore * Fix ts-ignore in styles.tsx * Wrap Input in div to pass onPaste * Change esm to cjs imports for highlighter to fix tests * Add null checks
This commit is contained in:
committed by
GitHub
parent
e4e78b66fa
commit
a8f5029cb1
@@ -17,19 +17,14 @@
|
||||
* under the License.
|
||||
*/
|
||||
import React from 'react';
|
||||
import SyntaxHighlighter, {
|
||||
registerLanguage,
|
||||
// @ts-ignore
|
||||
} from 'react-syntax-highlighter/dist/light';
|
||||
// @ts-ignore
|
||||
import sql from 'react-syntax-highlighter/dist/languages/hljs/sql';
|
||||
// @ts-ignore
|
||||
import github from 'react-syntax-highlighter/dist/styles/hljs/github';
|
||||
import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/light';
|
||||
import sql from 'react-syntax-highlighter/dist/cjs/languages/hljs/sql';
|
||||
import github from 'react-syntax-highlighter/dist/cjs/styles/hljs/github';
|
||||
|
||||
import Link from '../../components/Link';
|
||||
import ModalTrigger from '../../components/ModalTrigger';
|
||||
|
||||
registerLanguage('sql', sql);
|
||||
SyntaxHighlighter.registerLanguage('sql', sql);
|
||||
|
||||
interface ShowSQLProps {
|
||||
sql: string;
|
||||
|
||||
Reference in New Issue
Block a user