Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Dec 17, 2018
1 parent 723116f commit a6c35c9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions src/provider/LocalDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,6 @@ export default class LocalDataProvider extends ACommonDataProvider {
const addKey = `${Ranking.EVENT_ADD_COLUMN}.cache`;
const removeKey = `${Ranking.EVENT_REMOVE_COLUMN}.cache`;

const addCol = (col: Column) => {
this.tasks.preComputeCol(col);
if (col instanceof CompositeColumn) {
col.on(addKey, addCol);
col.on(removeKey, removeCol);
}
};

const removeCol = (col: Column) => {
this.tasks.dirtyColumn(col, 'data');
if (col instanceof CompositeColumn) {
Expand All @@ -189,6 +181,14 @@ export default class LocalDataProvider extends ACommonDataProvider {
}
};

const addCol = (col: Column) => {
this.tasks.preComputeCol(col);
if (col instanceof CompositeColumn) {
col.on(addKey, addCol);
col.on(removeKey, removeCol);
}
};


ranking.on(addKey, addCol);
ranking.on(removeKey, removeCol);
Expand Down
18 changes: 9 additions & 9 deletions src/styles/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
pointer-events: none !important;
}

>* {
> * {
pointer-events: none !important;
}
}
Expand All @@ -29,11 +29,11 @@
}

.#{$lu_css_prefix}-checkbox {
>input {
> input {
display: inline;
}

>label {
> label {
display: inline-flex;
}
}
Expand All @@ -49,27 +49,27 @@
line-height: 0;
display: flex;

input:checked+label {
input:checked + label {
outline: 2px solid black;
}

>input {
> input {
display: none;
}

>label {
> label {
flex: 1 1 0;
}
}

.#{$lu_css_prefix}-color-gradient {
display: flex;

input:checked+label {
input:checked + label {
outline: 2px solid black;
}

>label {
> label {
margin: 0.1em;
flex: 1 1 auto;
}
Expand Down Expand Up @@ -98,7 +98,7 @@
background-size: $lu_missing_dash_width $lu_missing_dash_height;
background-repeat: no-repeat;

>* {
> * {
display: none;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/styles/renderer/_aggregate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}

.#{$engine_css_prefix}-td.#{$lu_css_prefix}-renderer-aggregate[data-meta]::before {

// square bracket around
content: '';
pointer-events: none;
position: absolute;
left: 2px;
top: -2px;
bottom: 0px;
bottom: 0;
width: $lu_aggregate_square_bracket_width;

border-left: $lu_aggregate_square_bracket_stroke_width solid $lu_aggregate_square_bracket_stroke_color;
}

Expand Down
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-use-before-declare": false,
"no-unsafe-finally": true,
"no-var-requires": true,
"no-var-keyword": true,
Expand Down

0 comments on commit a6c35c9

Please sign in to comment.