Skip to content

Commit d11279a

Browse files
committed
Correct ci script for linter
1 parent 4c17fb6 commit d11279a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = {
3434
{ avoidEscape: true, allowTemplateLiterals: false }
3535
],
3636
curly: ['error', 'all'],
37+
eqeqeq: 'error',
3738
'prefer-arrow-callback': 'error'
3839
},
3940
settings: {

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ install: pip install --upgrade --upgrade-strategy=eager pytest pytest-asyncio "j
1111
script:
1212
# Build the sdist (identical to what will be uploaded to eg pypi on release)
1313
- python setup.py sdist
14+
# Linter checks
15+
- jlpm run eslint-check
16+
1417
# Install the extension from the sdist ensuring the cache is unused
1518
- pip install jupyterlab_git[test] --pre --no-index --find-links=dist --no-deps --no-cache-dir -v
1619
# Install the extension dependencies based on the current setup.py
1720
- pip install jupyterlab_git[test]
1821
# Log the current state of jupyterlab's extensions
1922
- jupyter labextension list
2023

21-
# Do a eslint check
22-
- jlpm run lint-check
23-
2424
# Rebuild jupyterlab to include our extension
2525
- jupyter lab build
2626

src/components/diff/mergeview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
// The linter must be relaxed on this imported file.
66
/* eslint-disable @typescript-eslint/ban-ts-ignore */
7-
/* eslint-disable prefer-arrow-callback */
7+
/* eslint-disable eqeqeq */
88
/* eslint-disable no-inner-declarations */
9+
/* eslint-disable prefer-arrow-callback */
910

1011
import CodeMirror from 'codemirror';
1112

0 commit comments

Comments
 (0)