Skip to content

Commit 8d1a44e

Browse files
realitykinggajus
authored andcommitted
fix: linting on TravisCI and add new Node.js version to the testing matrix (#76)
* Fix a linting error to make CI work again * Expand the Node.js versions tests are run on * fix: drop node v4, v6 BREAKING CHANGE:
1 parent 5d0c174 commit 8d1a44e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ script:
66
- npm run lint
77
- npm run test
88
node_js:
9-
- 6
10-
- 5
11-
- 4
9+
- 10
10+
- 8
1211
notifications:
1312
email: false
1413
sudo: false

src/validateTableData.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default (rows) => {
3737
// @todo Make an exception for newline characters.
3838
// @see https://github.com/gajus/table/issues/9
3939
for (const cell of cells) {
40+
// eslint-disable-next-line no-control-regex
4041
if (/[\u0001-\u001A]/.test(cell)) {
4142
throw new Error('Table data must not contain control characters.');
4243
}

0 commit comments

Comments
 (0)