From 64869675f597eaf96e491b19edb8718db9939352 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 3 May 2022 08:31:41 -0700 Subject: [PATCH 1/2] fix: add 'use strict' to .eslintrc.js (#141) cacache wants that rule to replace a test and this file fails linting hehe --- .eslintrc.js | 2 ++ lib/content/eslintrc.js | 2 ++ tap-snapshots/test/apply/full-content.js.test.cjs | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 0e8ad007..5db9f815 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,7 @@ /* This file is automatically added by @npmcli/template-oss. Do not edit. */ +'use strict' + const { readdirSync: readdir } = require('fs') const localConfigs = readdir(__dirname) diff --git a/lib/content/eslintrc.js b/lib/content/eslintrc.js index 1718f033..ae9b6ef7 100644 --- a/lib/content/eslintrc.js +++ b/lib/content/eslintrc.js @@ -1,3 +1,5 @@ +'use strict' + const { readdirSync: readdir } = require('fs') const localConfigs = readdir(__dirname) diff --git a/tap-snapshots/test/apply/full-content.js.test.cjs b/tap-snapshots/test/apply/full-content.js.test.cjs index a0fc34cb..e7beb049 100644 --- a/tap-snapshots/test/apply/full-content.js.test.cjs +++ b/tap-snapshots/test/apply/full-content.js.test.cjs @@ -23,6 +23,8 @@ module.exports = { ======================================== /* This file is automatically added by @npmcli/template-oss. Do not edit. */ +'use strict' + const { readdirSync: readdir } = require('fs') const localConfigs = readdir(__dirname) @@ -497,6 +499,8 @@ module.exports = { ======================================== /* This file is automatically added by @npmcli/template-oss. Do not edit. */ +'use strict' + const { readdirSync: readdir } = require('fs') const localConfigs = readdir(__dirname) @@ -1277,6 +1281,8 @@ workspaces/a/.eslintrc.js ======================================== /* This file is automatically added by @npmcli/template-oss. Do not edit. */ +'use strict' + const { readdirSync: readdir } = require('fs') const localConfigs = readdir(__dirname) @@ -1353,6 +1359,8 @@ workspaces/b/.eslintrc.js ======================================== /* This file is automatically added by @npmcli/template-oss. Do not edit. */ +'use strict' + const { readdirSync: readdir } = require('fs') const localConfigs = readdir(__dirname) From 190ecb1602b175b36fc9da2f0af7ca6867f03cdd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 3 May 2022 08:36:43 -0700 Subject: [PATCH 2/2] chore(main): release 3.4.3 (#142) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c0fa437..aafdd6bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.4.3](https://github.com/npm/template-oss/compare/v3.4.2...v3.4.3) (2022-05-03) + + +### Bug Fixes + +* add 'use strict' to .eslintrc.js ([#141](https://github.com/npm/template-oss/issues/141)) ([6486967](https://github.com/npm/template-oss/commit/64869675f597eaf96e491b19edb8718db9939352)) + ### [3.4.2](https://github.com/npm/template-oss/compare/v3.4.1...v3.4.2) (2022-04-22) diff --git a/package.json b/package.json index e4725add..7f94df44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/template-oss", - "version": "3.4.2", + "version": "3.4.3", "description": "templated files used in npm CLI team oss projects", "main": "lib/content/index.js", "bin": {