Skip to content

Commit

Permalink
Configure some new TypeScript ESLint rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Oct 29, 2023
1 parent cdce934 commit 0fddd76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@typescript-eslint/block-spacing": "error",
"@typescript-eslint/brace-style": "error",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/class-methods-use-this": "error",
"@typescript-eslint/comma-dangle": [
"error",
{
Expand Down Expand Up @@ -283,6 +284,13 @@
"@typescript-eslint/padding-line-between-statements": "off",
"@typescript-eslint/parameter-properties": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-destructuring": [
"error",
{
"array": true,
"object": true
}
],
"@typescript-eslint/prefer-enum-initializers": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
Expand Down Expand Up @@ -403,7 +411,6 @@
"brace-style": "off",
"camelcase": "error",
"capitalized-comments": "off",
"class-methods-use-this": "error",
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "error",
Expand Down Expand Up @@ -739,13 +746,6 @@
"padding-line-between-statements": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{
"array": true,
"object": true
}
],
"prefer-exponentiation-operator": "error",
"prefer-named-capture-group": "off",
"prefer-numeric-literals": "error",
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CelerityTaskProvider implements TaskProvider {
return [... this._tasks.values()].flat();
}

// eslint-disable-next-line class-methods-use-this
// eslint-disable-next-line @typescript-eslint/class-methods-use-this
public resolveTask(_task : Task, _token : CancellationToken) : undefined {
return undefined;
}
Expand Down

0 comments on commit 0fddd76

Please sign in to comment.