Skip to content

Commit

Permalink
introduce ESLint (#174)
Browse files Browse the repository at this point in the history
* add eslint, remove deprecated tslint

* fix lint errors
  • Loading branch information
43081j authored May 18, 2021
1 parent af319f7 commit 3fe6436
Show file tree
Hide file tree
Showing 11 changed files with 1,112 additions and 274 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"rules": {
"arrow-parens": ["error", "always"],
"prefer-const": "error",
"no-eval": "error",
"no-trailing-spaces": "error",
"no-var": "error",
"quotes": ["error", "single", {"allowTemplateLiterals": true}],
"semi": "error",
"comma-dangle": ["error", "always-multiline"],
"eqeqeq": "error",
"no-useless-escape": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
Loading

0 comments on commit 3fe6436

Please sign in to comment.