mirror of https://github.com/apache/superset.git
Re-enable rule no-non-null-assertion (#10864)
This commit is contained in:
parent
1908a94c7e
commit
c5193ca018
|
@ -59,7 +59,6 @@ module.exports = {
|
||||||
'@typescript-eslint/ban-types': 0, // disabled temporarily
|
'@typescript-eslint/ban-types': 0, // disabled temporarily
|
||||||
'@typescript-eslint/no-empty-function': 0,
|
'@typescript-eslint/no-empty-function': 0,
|
||||||
'@typescript-eslint/no-explicit-any': 0,
|
'@typescript-eslint/no-explicit-any': 0,
|
||||||
'@typescript-eslint/no-non-null-assertion': 0, // disabled temporarily
|
|
||||||
'@typescript-eslint/no-use-before-define': 1, // disabled temporarily
|
'@typescript-eslint/no-use-before-define': 1, // disabled temporarily
|
||||||
'@typescript-eslint/no-unused-vars': 0, // disabled temporarily
|
'@typescript-eslint/no-unused-vars': 0, // disabled temporarily
|
||||||
'@typescript-eslint/explicit-function-return-type': 0,
|
'@typescript-eslint/explicit-function-return-type': 0,
|
||||||
|
|
|
@ -289,7 +289,7 @@ export default class FilterableTable extends PureComponent<
|
||||||
}
|
}
|
||||||
|
|
||||||
fitTableToWidthIfNeeded() {
|
fitTableToWidthIfNeeded() {
|
||||||
const containerWidth = this.container.current!.clientWidth;
|
const containerWidth = this.container.current?.clientWidth ?? 0;
|
||||||
if (this.totalTableWidth < containerWidth) {
|
if (this.totalTableWidth < containerWidth) {
|
||||||
// fit table width if content doesn't fill the width of the container
|
// fit table width if content doesn't fill the width of the container
|
||||||
this.totalTableWidth = containerWidth;
|
this.totalTableWidth = containerWidth;
|
||||||
|
|
Loading…
Reference in New Issue