Browse Source

💄& updates lint rules

main
Eric Amodio 1 year ago
parent
commit
4a2fd4ce4d
3 changed files with 5 additions and 9 deletions
  1. +1
    -6
      .eslintrc.base.json
  2. +2
    -1
      package.json
  3. +2
    -2
      src/ai/anthropicProvider.ts

+ 1
- 6
.eslintrc.base.json View File

@ -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": [

+ 2
- 1
package.json View File

@ -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)\"",

+ 2
- 2
src/ai/anthropicProvider.ts View File

@ -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';

||||||
x
 
000:0
Loading…
Cancel
Save