mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Small cleanup
This commit is contained in:
@@ -38,7 +38,8 @@ export default new class implements eslint.Rule.RuleModule {
|
|||||||
|
|
||||||
const fileDirname = dirname(context.getFilename());
|
const fileDirname = dirname(context.getFilename());
|
||||||
const parts = fileDirname.split(/\\|\//);
|
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--) {
|
for (let i = parts.length - 1; i >= 0; i--) {
|
||||||
if (ruleArgs[parts[i]]) {
|
if (ruleArgs[parts[i]]) {
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
||||||
|
|||||||
Reference in New Issue
Block a user