Revert "chore: update eslint config and quiet lint output"

This reverts commit 6db3ecf73e.
This commit is contained in:
Matt Rubens
2025-01-30 22:39:21 -05:00
parent e2a8a7aa5c
commit 810bbb449f
3 changed files with 12 additions and 44 deletions

View File

@@ -1,56 +1,24 @@
{ {
"root": true, "root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"ecmaVersion": 2021, "ecmaVersion": 6,
"sourceType": "module", "sourceType": "module"
"project": "./tsconfig.json"
}, },
"plugins": ["@typescript-eslint"], "plugins": ["@typescript-eslint"],
"rules": { "rules": {
"@typescript-eslint/naming-convention": ["warn"], "@typescript-eslint/naming-convention": [
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn", "warn",
{ {
"argsIgnorePattern": "^_", "selector": "import",
"varsIgnorePattern": "^_", "format": ["camelCase", "PascalCase"]
"caughtErrorsIgnorePattern": "^_"
} }
], ],
"@typescript-eslint/explicit-function-return-type": [ "@typescript-eslint/semi": "off",
"warn", "eqeqeq": "warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/no-non-null-assertion": "warn",
"no-throw-literal": "warn", "no-throw-literal": "warn",
"semi": ["off", "always"], "semi": "off",
"quotes": ["warn", "double", { "avoidEscape": true }], "react-hooks/exhaustive-deps": "off"
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "warn",
"no-extra-semi": "warn",
"prefer-const": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-case-declarations": "warn",
"no-useless-escape": "warn",
"require-yield": "warn",
"no-empty": "warn",
"no-control-regex": "warn",
"@typescript-eslint/ban-ts-comment": "warn"
}, },
"env": { "ignorePatterns": ["out", "dist", "**/*.d.ts"]
"node": true,
"es2021": true
},
"ignorePatterns": ["dist/**", "out/**", "webview-ui/**", "**/*.js"]
} }

View File

@@ -214,7 +214,7 @@
"compile": "npm run check-types && npm run lint && node esbuild.js", "compile": "npm run check-types && npm run lint && node esbuild.js",
"compile-tests": "tsc -p . --outDir out", "compile-tests": "tsc -p . --outDir out",
"install:all": "npm install && cd webview-ui && npm install", "install:all": "npm install && cd webview-ui && npm install",
"lint": "eslint src --ext ts --quiet && npm run lint --prefix webview-ui", "lint": "eslint src --ext ts && npm run lint --prefix webview-ui",
"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production", "package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
"pretest": "npm run compile-tests && npm run compile && npm run lint", "pretest": "npm run compile-tests && npm run compile && npm run lint",
"start:webview": "cd webview-ui && npm run start", "start:webview": "cd webview-ui && npm run start",

View File

@@ -8,7 +8,7 @@
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"test": "jest", "test": "jest",
"lint": "eslint src --ext ts,tsx --quiet" "lint": "eslint src --ext ts,tsx"
}, },
"dependencies": { "dependencies": {
"@vscode/webview-ui-toolkit": "^1.4.0", "@vscode/webview-ui-toolkit": "^1.4.0",