Skip to content

Commit af216b0

Browse files
committed
Include linting of test/*.js in npm run test-lint script
Had obviously been forgotten, but those test files should have been part of the ordinary lint phase. The fact that we had forgotten to lint these files, allowed a missing semi-colon to sneak into `./test/cli-test.js` file. Refs #777
1 parent edc988b commit af216b0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"scripts": {
3838
"build": "cp mustache.js mustache.mjs && rollup mustache.mjs --file mustache.js --format umd --name Mustache && uglifyjs mustache.js > mustache.min.js",
3939
"test": "npm run test-lint && npm run test-unit",
40-
"test-lint": "eslint mustache.js bin/mustache test/**/*.js",
40+
"test-lint": "eslint mustache.js bin/mustache test/*.js test/**/*.js",
4141
"test-unit": "mocha --reporter spec test/*-test.js",
4242
"test-render": "mocha --reporter spec test/render-test",
4343
"pre-test-browser": "node test/create-browser-suite.js",

test/render-test-browser-tmpl.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
require('./helper');
23

34
describe('Mustache.render', function () {

0 commit comments

Comments
 (0)