Skip to content

Commit

Permalink
Run eslint on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Nov 20, 2018
1 parent e77f163 commit 357cf41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
@@ -1 +1,3 @@
language: node_js
script:
- npm run ci
2 changes: 1 addition & 1 deletion jsbi.mjs
Expand Up @@ -1496,7 +1496,7 @@ class JSBI extends Array {
}

__inplaceSub(subtrahend, startIndex, halfDigits) {
let fullSteps = (halfDigits - 1) >>> 1;
const fullSteps = (halfDigits - 1) >>> 1;
let borrow = 0;
if (startIndex & 1) {
// this: [..][..][..]
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -19,6 +19,7 @@
"test": "node --experimental-modules tests/tests.mjs; set -e; for file in benchmarks/*.mjs; do node --no-warnings --experimental-modules \"${file}\"; done",
"pretest": "npm run build",
"lint": "eslint --fix jsbi.mjs",
"generate-benchmarks": "for op in add and div mod mul neg not or sar shl sub xor; do scripts/generate-benchmark.py generate \"${op}\" > \"benchmarks/${op}.mjs\"; done"
"generate-benchmarks": "for op in add and div mod mul neg not or sar shl sub xor; do scripts/generate-benchmark.py generate \"${op}\" > \"benchmarks/${op}.mjs\"; done",
"ci": "npm run lint && git status && git diff-index --quiet HEAD -- && npm test"
}
}

0 comments on commit 357cf41

Please sign in to comment.