chore: switch to use eslint

This commit is contained in:
Jean-Philippe Sirois
2020-08-07 05:33:43 -04:00
parent 7f306d44bf
commit 70b339ece3
3 changed files with 214 additions and 16 deletions
+9 -3
View File
@@ -6,7 +6,7 @@ It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
@@ -18,7 +18,13 @@ module.exports = {
project: "tsconfig.json",
sourceType: "module",
},
plugins: ["@typescript-eslint", "@typescript-eslint/tslint"],
plugins: [
"@typescript-eslint",
"@typescript-eslint/tslint",
"import",
"jsdoc",
"prefer-arrow",
],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
@@ -81,7 +87,7 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-param-reassign": "error",
"no-param-reassign": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unused-expressions": "error",