Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
This commit adds tslint with prettier to lint and format code in a
consistent manner.

Closes #5

Signed-off-by: Frederik Krautwald <fkrautwald@gmail.com>
  • Loading branch information
Frikki committed Apr 6, 2019
1 parent 11c016e commit 8329cea
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 20 deletions.
21 changes: 21 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"parser": "typescript",
"printWidth": 100,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"overrides": [
{
"files": [".babelrc", ".editorconfig", ".prettierrc", "*.json"],
"options": {
"parser": "json",
"singleQuote": false,
"trailingComma": "es5"
}
}
]
}
174 changes: 163 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8329cea

Please sign in to comment.