Update frontend dependencies (#498)

* update npm packages

* update tsconfig

* remove babelrc, babel presets as well as stable package

* fix svg namespace tag syntax errors

* fix reference error due to namespace and class component having same name

* replace tslint with eslint

* make eslint happier

* update .nvmrc to 14

* update node version to 14 in gh workflow

* fix eslint warnings due to warnings treated as errors on CI (process.env.CI = true)

* pretty fix

* bump node version in Dockerfile

* use createRoot instead of react-dom render

* update browsers list in package.json
This commit is contained in:
serge
2022-09-16 10:07:51 +00:00
committed by GitHub
parent d525056190
commit 41c93a8a19
72 changed files with 8089 additions and 8612 deletions
@@ -15,7 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import * as React from 'react';
import { Column } from './';
import { ColumnProps } from './';
import { Node } from '../../../state';
import { Tooltip, Icon } from '../../';
import icon from '../../../icons/terminal.svg';
@@ -69,7 +69,7 @@ const ICONS = {
};
const SEMVER_PATTERN = /^\d+\.\d+\.\d+/;
export class ImplementationColumn extends React.Component<Column.Props, {}> {
export class ImplementationColumn extends React.Component<ColumnProps> {
public static readonly label = 'Implementation';
public static readonly icon = icon;
public static readonly width = 90;
@@ -80,7 +80,7 @@ export class ImplementationColumn extends React.Component<Column.Props, {}> {
private implementation: string;
private version: string;
public shouldComponentUpdate(nextProps: Column.Props) {
public shouldComponentUpdate(nextProps: ColumnProps) {
if (this.props.node === nextProps.node) {
// Implementation can't change unless we got a new node
return false;