Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat: support ESLint v9#9002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
3cfccd8
6f4fdd7
7c3a185
eae61eb
0cd79cb
4aeed8a
13f3964
0948bf2
8bcb0e2
e9b8908
1fc6fa2
e053179
b9f681f
6b6e249
bc6d611
0451e84
129eb65
88024e2
1cae50d
2bb898a
8d893a4
53193dd
ed41f48
0594a7a
5b4c85f
175c292
9a7d27f
4a79978
72d19bd
ee1d91c
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -16,17 +16,25 @@ const ruleTester = new RuleTester({ | ||
}, | ||
}); | ||
ruleTester.defineRule('use-every-a', { | ||
JoshuaKGoldberg marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
create: context => { | ||
/** | ||
* Mark a variable as used | ||
*/ | ||
function useA(node: TSESTree.Node): void { | ||
context.sourceCode.markVariableAsUsed('a', node); | ||
} | ||
return { | ||
VariableDeclaration: useA, | ||
ReturnStatement: useA, | ||
}; | ||
}, | ||
defaultOptions: [], | ||
meta: { | ||
messages: {}, | ||
type: 'problem', | ||
schema: [], | ||
}, | ||
}); | ||
/** | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -60,9 +60,6 @@ | ||
"rimraf": "*", | ||
"typescript": "*" | ||
}, | ||
"peerDependenciesMeta": { | ||
"typescript": { | ||
"optional": true | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.