Skip to content

Commit

Permalink
fix: add 'use strict' to .eslintrc.js (#141)
Browse files Browse the repository at this point in the history
cacache wants that rule to replace a test and this file fails linting hehe
  • Loading branch information
wraithgar committed May 3, 2022
1 parent 53cb445 commit 6486967
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .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)
Expand Down
2 changes: 2 additions & 0 deletions lib/content/eslintrc.js
@@ -1,3 +1,5 @@
'use strict'

const { readdirSync: readdir } = require('fs')

const localConfigs = readdir(__dirname)
Expand Down
8 changes: 8 additions & 0 deletions tap-snapshots/test/apply/full-content.js.test.cjs
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6486967

Please sign in to comment.