Skip to content

Commit a2158ad

Browse files
renovate[bot]renovate-botehmicky
authored
chore(deps): update dependency @netlify/eslint-config-node to ^4.1.0 (#4009)
* chore(deps): update dependency @netlify/eslint-config-node to ^4.1.0 * fix: fix linting errors Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: ehmicky <[email protected]>
1 parent a16a5e5 commit a2158ad

File tree

21 files changed

+47
-94
lines changed

21 files changed

+47
-94
lines changed

npm-shrinkwrap.json

Lines changed: 23 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
"@babel/preset-react": "^7.12.13",
187187
"@commitlint/cli": "^16.0.0",
188188
"@commitlint/config-conventional": "^16.0.0",
189-
"@netlify/eslint-config-node": "^4.0.8",
189+
"@netlify/eslint-config-node": "^4.1.0",
190190
"ava": "^3.15.0",
191191
"c8": "^7.11.0",
192192
"eslint-plugin-sort-destructure-keys": "^1.3.5",

src/commands/functions/functions-create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const pickTemplate = async function ({ language: languageFromFlag }) {
164164

165165
try {
166166
templatesForLanguage = formatRegistryArrayForInquirer(language)
167-
} catch (_) {
167+
} catch {
168168
throw error(`Invalid language: ${language}`)
169169
}
170170

src/commands/unlink/unlink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const unlink = async (options, command) => {
2020
try {
2121
// @ts-ignore types from API are wrong they cannot recognize `getSite` of API
2222
siteData = await command.netlify.api.getSite({ siteId })
23-
} catch (error) {
23+
} catch {
2424
// ignore errors if we can't get the site
2525
}
2626

src/functions-templates/javascript/hasura-event-triggered/{{name}}.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const handler = async (event) => {
2020
let request
2121
try {
2222
request = JSON.parse(event.body)
23-
} catch (error) {
23+
} catch {
2424
return { statusCode: 400, body: 'c annot parse hasura event' }
2525
}
2626

src/functions-templates/javascript/set-cookie/{{name}}.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const cookie = require('cookie')
22

33
// 14 days
4-
const COOKIE_MAX_AGE = 12096e5
4+
const COOKIE_MAX_AGE = 12_096e5
55

66
const handler = async () => {
77
const myCookie = cookie.serialize('my_cookie', 'lolHi', {

src/lib/functions/runtimes/go/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const invokeFunction = async ({ context, event, func, timeout }) => {
6262
headers,
6363
statusCode,
6464
}
65-
} catch (error) {
65+
} catch {
6666
return {
6767
statusCode: 500,
6868
}

src/lib/functions/runtimes/js/builders/zisi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const getTargetDirectory = async ({ errorExit }) => {
7272

7373
try {
7474
await mkdir(targetDirectory, { recursive: true })
75-
} catch (error) {
75+
} catch {
7676
errorExit(`${NETLIFYDEVERR} Could not create directory: ${targetDirectory}`)
7777
}
7878

src/lib/functions/runtimes/rust/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const invokeFunction = async ({ context, event, func, timeout }) => {
6161
headers,
6262
statusCode,
6363
}
64-
} catch (error) {
64+
} catch {
6565
return {
6666
statusCode: 500,
6767
}

src/utils/deploy/hash-fns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getFunctionZips = async ({
4242
})
4343

4444
return functions
45-
} catch (error) {
45+
} catch {
4646
statusCb({
4747
type: 'functions-manifest',
4848
msg: 'Ignored invalid or expired functions cache',

0 commit comments

Comments
 (0)