Skip to content

Commit

Permalink
Update eslint config for latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Aug 2, 2024
1 parent a1c6584 commit 0c3f3b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
27 changes: 1 addition & 26 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,11 @@
"no-prototype-builtins": ["off"],
"import/extensions": ["error", "ignorePackages", { "ts": "never" }],
"@typescript-eslint/array-type": "error",
"brace-style": "off",
"@typescript-eslint/brace-style": ["error", "1tbs"],
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", "never"],
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": "error",
"default-param-last": "off",
"@typescript-eslint/default-param-last": "error",
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": "error",
"indent": "off",
"@typescript-eslint/indent": ["error", 2, { "ignoreComments": true, "SwitchCase": 1 }],
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": "error",
"@typescript-eslint/method-signature-style": "error",
"no-duplicate-imports": "off",
"@typescript-eslint/no-base-to-string": "error",
Expand All @@ -163,8 +151,6 @@
"no-loss-of-precision": "off",
"@typescript-eslint/no-loss-of-precision": "error",
"@typescript-eslint/no-meaningless-void-operator": "error",
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
Expand All @@ -177,22 +163,11 @@
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "_.*" }],
"@typescript-eslint/non-nullable-type-assertion-style": "error",
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": ["error", "always"],
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-reduce-type-parameter": "error",
"quotes": "off",
"@typescript-eslint/quotes": ["error", "double", { "allowTemplateLiterals": true }],
"no-return-await": "off",
"@typescript-eslint/require-await": ["off"],
"@typescript-eslint/return-await": "error",
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": ["error", { "named": "never" }],
"space-infix-ops": "off",
"@typescript-eslint/space-infix-ops": "error",
"@typescript-eslint/type-annotation-spacing": "error"
"@typescript-eslint/return-await": "error"
}
}
]
Expand Down
10 changes: 5 additions & 5 deletions language-server/src/features/hover.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe("Feature - Hover", () => {
});

const contents = response?.contents as MarkupContent;
expect(contents.value).to.not.be.empty;
expect(contents.value).to.not.be.empty; // eslint-disable-line @typescript-eslint/no-unused-expressions
});

test.each([
Expand Down Expand Up @@ -330,7 +330,7 @@ describe("Feature - Hover", () => {
});

const contents = response?.contents as MarkupContent;
expect(contents.value).to.not.be.empty;
expect(contents.value).to.not.be.empty; // eslint-disable-line @typescript-eslint/no-unused-expressions
});

test.each([
Expand Down Expand Up @@ -429,7 +429,7 @@ describe("Feature - Hover", () => {
});

const contents = response?.contents as MarkupContent;
expect(contents.value).to.not.be.empty;
expect(contents.value).to.not.be.empty; // eslint-disable-line @typescript-eslint/no-unused-expressions
});

test.each([
Expand Down Expand Up @@ -524,7 +524,7 @@ describe("Feature - Hover", () => {
});

const contents = response?.contents as MarkupContent;
expect(contents.value).to.not.be.empty;
expect(contents.value).to.not.be.empty; // eslint-disable-line @typescript-eslint/no-unused-expressions
});

test.each([
Expand Down Expand Up @@ -617,7 +617,7 @@ describe("Feature - Hover", () => {
});

const contents = response?.contents as MarkupContent;
expect(contents.value).to.not.be.empty;
expect(contents.value).to.not.be.empty; // eslint-disable-line @typescript-eslint/no-unused-expressions
});

test.each([
Expand Down

0 comments on commit 0c3f3b6

Please sign in to comment.