From a811526a54d1fe945b3302688b1a95a2e74c0aa2 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 28 Apr 2022 07:06:38 -0700 Subject: [PATCH] fix: add 'use strict' to .eslintrc.js 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)