Skip to content

Commit

Permalink
Add plugin:escompat/typescript to eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Nov 3, 2022
1 parent 72e9328 commit 848f77d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"plugins": ["github", "jest", "@typescript-eslint"],
"extends": ["plugin:github/recommended", "plugin:github/typescript", "prettier"],
"extends": [
"plugin:github/recommended",
"plugin:github/typescript",
"plugin:escompat/typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
Expand All @@ -18,13 +23,19 @@
"no-unused-vars": "off",
"camelcase": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{"accessibility": "no-public"}
],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
"@typescript-eslint/explicit-function-return-type": [
"error",
{"allowExpressions": true}
],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
Expand Down

0 comments on commit 848f77d

Please sign in to comment.