Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit f2c469e

Browse files
authored
Merge pull request #218 from netlify/lint/no-shadow
Add `no-shadow` ESLint rule
2 parents 8d55163 + 2eb03e8 commit f2c469e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module.exports = {
1111
'no-await-in-loop': 0,
1212
'no-magic-numbers': 0,
1313
'no-param-reassign': 0,
14-
'no-shadow': 0,
1514
'fp/no-class': 0,
1615
'fp/no-delete': 0,
1716
'fp/no-let': 0,

src/deploy/hash-files.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ test('hashes files in a folder', async (t) => {
1010
filter: defaultFilter,
1111
})
1212
t.truthy(files['netlify.toml'], 'includes the netlify.toml file')
13-
Object.keys(files).forEach((path) => {
14-
t.truthy(path, 'each file has a path')
13+
Object.keys(files).forEach((filePath) => {
14+
t.truthy(filePath, 'each file has a path')
1515
})
1616
t.truthy(filesShaMap, 'filesShaMap is returned')
1717
Object.values(filesShaMap).forEach((fileObjArray) => {

0 commit comments

Comments
 (0)