From af216b0ce7ec6e4e384a2c43f0f65e2a31900ca0 Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Mon, 12 Apr 2021 19:51:44 +0200 Subject: [PATCH] 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 https://github.com/janl/mustache.js/pull/777 --- package.json | 2 +- test/render-test-browser-tmpl.mustache | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 81ce69d..89e2781 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "scripts": { "build": "cp mustache.js mustache.mjs && rollup mustache.mjs --file mustache.js --format umd --name Mustache && uglifyjs mustache.js > mustache.min.js", "test": "npm run test-lint && npm run test-unit", - "test-lint": "eslint mustache.js bin/mustache test/**/*.js", + "test-lint": "eslint mustache.js bin/mustache test/*.js test/**/*.js", "test-unit": "mocha --reporter spec test/*-test.js", "test-render": "mocha --reporter spec test/render-test", "pre-test-browser": "node test/create-browser-suite.js", diff --git a/test/render-test-browser-tmpl.mustache b/test/render-test-browser-tmpl.mustache index 8083891..b9b14ae 100644 --- a/test/render-test-browser-tmpl.mustache +++ b/test/render-test-browser-tmpl.mustache @@ -1,3 +1,4 @@ +/* eslint-disable */ require('./helper'); describe('Mustache.render', function () {