Skip to content

Commit 4d5e6e5

Browse files
authored
Merge pull request #69 from git-for-windows/dependabot/npm_and_yarn/eslint-9.0.0
build(deps-dev): bump eslint from 8.57.0 to 9.0.0
2 parents 7d371dc + 24f7b5d commit 4d5e6e5

6 files changed

Lines changed: 300 additions & 390 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

GitForWindowsHelper/gently.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = (fn, fallback) => {
22
try {
33
return fn()
4-
} catch (e) {
4+
} catch {
55
return fallback
66
}
77
}

GitForWindowsHelper/https-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const httpsRequest = async (context, hostname, method, requestPath, body, header
4747
}
4848
try {
4949
resolve(JSON.parse(json))
50-
} catch (e) {
50+
} catch {
5151
reject(`Invalid JSON: ${json}`)
5252
}
5353
})

eslint.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const js = require("@eslint/js")
2+
const jest = require("eslint-plugin-jest")
3+
const globals = require("globals")
4+
5+
module.exports = [
6+
js.configs.recommended,
7+
{
8+
plugins: {
9+
jest: jest
10+
},
11+
languageOptions: {
12+
ecmaVersion: 12,
13+
sourceType: "module",
14+
globals: {
15+
...globals.node,
16+
...globals.es6,
17+
...globals.jest
18+
}
19+
},
20+
rules: {
21+
indent: ["error", 4],
22+
"no-trailing-spaces": "error"
23+
}
24+
}
25+
]

0 commit comments

Comments
 (0)