We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1e2435 commit 40a6c1fCopy full SHA for 40a6c1f
lib/rules/no-restricted-call-after-await.js
@@ -116,8 +116,8 @@ module.exports = {
116
}
117
118
function getCwd() {
119
- if (context.getCwd) {
120
- return context.getCwd()
+ if (context.cwd) {
+ return context.cwd
121
122
return path.resolve('')
123
typings/eslint/index.d.ts
@@ -350,7 +350,7 @@ export namespace Rule {
350
markVariableAsUsed?(name: string): boolean
351
report(descriptor: ReportDescriptor): void
352
353
- // eslint@6 does not have this method.
+ /** @deprecated removed in ESLint v10 */
354
getCwd?: () => string
355
/** @since ESLint v8.40.0 */
356
cwd: string
0 commit comments