mirror of
https://github.com/microsoft/vscode.git
synced 2026-01-09 06:31:23 +08:00
Small cleanup
This commit is contained in:
parent
b8329a3ffc
commit
22663c3fe7
@ -38,7 +38,8 @@ export default new class implements eslint.Rule.RuleModule {
|
||||
|
||||
const fileDirname = dirname(context.getFilename());
|
||||
const parts = fileDirname.split(/\\|\//);
|
||||
const ruleArgs = context.options[0] as Record<string, string[]>; let config: Config | undefined;
|
||||
const ruleArgs = context.options[0] as Record<string, string[]>;
|
||||
let config: Config | undefined;
|
||||
for (let i = parts.length - 1; i >= 0; i--) {
|
||||
if (ruleArgs[parts[i]]) {
|
||||
config = {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user