Skip to content

Commit

Permalink
feat: eslint and typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mdluo committed Aug 15, 2020
1 parent b6439ca commit b4910d8
Show file tree
Hide file tree
Showing 7 changed files with 1,546 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
GOODREADS_API_KEY=
GOODREADS_USER_ID=
# GOODREADS_SHELF=

# BOOKS_SORT_BY=date
# BOOKS_SORT_BY=percent

GITHUB_TOKEN=
GIST_ID=
20 changes: 20 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"prettier"
],
"env": {
"node": true,
"es6": true
},
"rules": {
"prettier/prettier": 2
}
}
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
Loading

0 comments on commit b4910d8

Please sign in to comment.