Skip to content

Commit

Permalink
added linter. fixed fetch error case handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Jun 26, 2020
1 parent e6e035c commit 69ef12f
Show file tree
Hide file tree
Showing 5 changed files with 612 additions and 29 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
project: "./tsconfig.json"
},
plugins: ['@typescript-eslint'],
env: {
browser: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
parserOptions: {
"project": "./tsconfig.json"
},
rules: {
"@typescript-eslint/no-non-null-assertion": 0,
"semi": 2
}
};
Loading

0 comments on commit 69ef12f

Please sign in to comment.