From 4a2fd4ce4da3f36599a5753ae4e968fe13dd5abf Mon Sep 17 00:00:00 2001 From: Eric Amodio <eamodio@gmail.com> Date: Sun, 19 Nov 2023 16:48:10 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84&=20updates=20lint=20rules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.base.json | 7 +------ package.json | 3 ++- src/ai/anthropicProvider.ts | 4 ++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.eslintrc.base.json b/.eslintrc.base.json index 8357774..a5c13d8 100644 --- a/.eslintrc.base.json +++ b/.eslintrc.base.json @@ -205,7 +205,6 @@ } } ], - "@typescript-eslint/class-literal-property-style": "off", "@typescript-eslint/consistent-type-assertions": [ "error", { @@ -213,9 +212,7 @@ "objectLiteralTypeAssertions": "allow-as-parameter" } ], - "@typescript-eslint/consistent-type-definitions": "off", "@typescript-eslint/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }], - "@typescript-eslint/dot-notation": "off", "@typescript-eslint/naming-convention": [ "error", { @@ -266,7 +263,6 @@ "error", { "ignoreArrowShorthand": true, "ignoreVoidOperator": true } ], - "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-inferrable-types": ["warn", { "ignoreParameters": true, "ignoreProperties": true }], "@typescript-eslint/no-invalid-void-type": "off", // Seems to error on `void` return types @@ -278,6 +274,7 @@ "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-call": "off", + "@typescript-eslint/no-unsafe-enum-comparison": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unused-expressions": ["warn", { "allowShortCircuit": true }], "@typescript-eslint/no-unused-vars": [ @@ -289,12 +286,10 @@ "varsIgnorePattern": "^_$" } ], - "@typescript-eslint/no-unsafe-enum-comparison": "off", "@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": false }], "@typescript-eslint/prefer-for-of": "warn", "@typescript-eslint/prefer-includes": "warn", "@typescript-eslint/prefer-literal-enum-member": ["warn", { "allowBitwiseExpressions": true }], - "@typescript-eslint/prefer-nullish-coalescing": "off", // warn "@typescript-eslint/prefer-optional-chain": "warn", "@typescript-eslint/prefer-reduce-type-parameter": "warn", "@typescript-eslint/restrict-template-expressions": [ diff --git a/package.json b/package.json index 3b90398..d428556 100644 --- a/package.json +++ b/package.json @@ -15728,8 +15728,9 @@ "clean": "npx rimraf dist out .vscode-test .vscode-test-web .eslintcache* tsconfig*.tsbuildinfo", "copy:images": "webpack --config webpack.config.images.js", "graph:link": "yarn link @gitkraken/gitkraken-components", - "graph:link:main": "pushd \"../GitKrakenComponents\" && yarn link && popd && yarn link @gitkraken/gitkraken-components", + "graph:link:main": "pushd \"../GitKrakenComponents\" && yarn link && popd && yarn graph:link", "graph:unlink": "yarn unlink @gitkraken/gitkraken-components && yarn install --force", + "graph:unlink:main": "yarn graph:unlink && pushd \"../GitKrakenComponents\" && yarn unlink && popd", "icons:apply": "node ./scripts/applyIconsContribution.js", "icons:svgo": "svgo -q -f ./images/icons/ --config svgo.config.js", "lint": "eslint \"src/**/*.ts?(x)\"", diff --git a/src/ai/anthropicProvider.ts b/src/ai/anthropicProvider.ts index 1823c1f..299092b 100644 --- a/src/ai/anthropicProvider.ts +++ b/src/ai/anthropicProvider.ts @@ -5,8 +5,8 @@ import type { Container } from '../container'; import { configuration } from '../system/configuration'; import type { Storage } from '../system/storage'; import { supportedInVSCodeVersion } from '../system/utils'; -import type {AIProvider} from './aiProviderService'; -import { getMaxCharacters } from './aiProviderService'; +import type { AIProvider } from './aiProviderService'; +import { getMaxCharacters } from './aiProviderService'; export class AnthropicProvider implements AIProvider { readonly id = 'anthropic';