Skip to content

Commit 6486967

Browse files
authored
fix: add 'use strict' to .eslintrc.js (#141)
cacache wants that rule to replace a test and this file fails linting hehe
1 parent 53cb445 commit 6486967

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* This file is automatically added by @npmcli/template-oss. Do not edit. */
22

3+
'use strict'
4+
35
const { readdirSync: readdir } = require('fs')
46

57
const localConfigs = readdir(__dirname)

lib/content/eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const { readdirSync: readdir } = require('fs')
24

35
const localConfigs = readdir(__dirname)

tap-snapshots/test/apply/full-content.js.test.cjs

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ module.exports = {
2323
========================================
2424
/* This file is automatically added by @npmcli/template-oss. Do not edit. */
2525
26+
'use strict'
27+
2628
const { readdirSync: readdir } = require('fs')
2729
2830
const localConfigs = readdir(__dirname)
@@ -497,6 +499,8 @@ module.exports = {
497499
========================================
498500
/* This file is automatically added by @npmcli/template-oss. Do not edit. */
499501
502+
'use strict'
503+
500504
const { readdirSync: readdir } = require('fs')
501505
502506
const localConfigs = readdir(__dirname)
@@ -1277,6 +1281,8 @@ workspaces/a/.eslintrc.js
12771281
========================================
12781282
/* This file is automatically added by @npmcli/template-oss. Do not edit. */
12791283
1284+
'use strict'
1285+
12801286
const { readdirSync: readdir } = require('fs')
12811287
12821288
const localConfigs = readdir(__dirname)
@@ -1353,6 +1359,8 @@ workspaces/b/.eslintrc.js
13531359
========================================
13541360
/* This file is automatically added by @npmcli/template-oss. Do not edit. */
13551361
1362+
'use strict'
1363+
13561364
const { readdirSync: readdir } = require('fs')
13571365
13581366
const localConfigs = readdir(__dirname)

0 commit comments

Comments
 (0)