Skip to content

Commit 3cb4859

Browse files
author
Steven Silvester
authored
Merge pull request #242 from fcollonval/ft/add-ci-lint-check
Add linter check in CI
2 parents c8fdd64 + 6a89f6a commit 3cb4859

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
3737
npm install -g yarn
3838
yarn
3939
40+
- name: Check linters
41+
if: ${{ matrix.os == 'ubuntu-latest' }}
42+
shell: bash
43+
run: |
44+
set -eux
45+
yarn lint:check
46+
4047
- name: Build Source
4148
shell: bash
4249
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ docs/source/examples
2828
.vscode
2929

3030
.jupyter_releaser_checkout
31+
.eslintcache

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ yarn test:examples
4848

4949
## Static Examples
5050

51-
There are static examples built into the documentation. Having them in docs allows us to test examples
51+
There are static examples built into the documentation. Having them in docs allows us to test examples
5252
in the ReadTheDocs build for a PR.
5353

5454
To add an example to the static examples:

packages/datagrid/src/datagrid.ts

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3709,7 +3709,12 @@ export class DataGrid extends Widget {
37093709
const w = width;
37103710
const h = contentHeight - Math.abs(dy);
37113711
this._blitContent(this._canvas, x, y, w, h, x, y - dy);
3712-
this.paintContent(0, dy < 0 ? contentY : height - dy, width, Math.abs(dy));
3712+
this.paintContent(
3713+
0,
3714+
dy < 0 ? contentY : height - dy,
3715+
width,
3716+
Math.abs(dy)
3717+
);
37133718
}
37143719
}
37153720

@@ -3728,7 +3733,12 @@ export class DataGrid extends Widget {
37283733
const w = contentWidth - Math.abs(dx);
37293734
const h = height;
37303735
this._blitContent(this._canvas, x, y, w, h, x - dx, y);
3731-
this.paintContent(dx < 0 ? contentX : width - dx, 0, Math.abs(dx), height);
3736+
this.paintContent(
3737+
dx < 0 ? contentX : width - dx,
3738+
0,
3739+
Math.abs(dx),
3740+
height
3741+
);
37323742
}
37333743
}
37343744

@@ -6435,11 +6445,13 @@ namespace Private {
64356445
* @param region the paint region to be checked.
64366446
* @returns boolean.
64376447
*/
6438-
export
6439-
function regionHasMergedCells(dataModel: DataModel, region: DataModel.CellRegion): boolean {
6440-
const regionGroups = CellGroup.getCellGroupsAtRegion(dataModel!, region);
6441-
return (regionGroups.length > 0);
6442-
}
6448+
export function regionHasMergedCells(
6449+
dataModel: DataModel,
6450+
region: DataModel.CellRegion
6451+
): boolean {
6452+
const regionGroups = CellGroup.getCellGroupsAtRegion(dataModel!, region);
6453+
return regionGroups.length > 0;
6454+
}
64436455

64446456
/**
64456457
* An object which represents a region to be painted.

0 commit comments

Comments
 (0)