Skip to content

Commit

Permalink
Add linter, code prettifier, fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
1st1 committed Apr 26, 2019
1 parent 475a7d7 commit c9a005d
Show file tree
Hide file tree
Showing 12 changed files with 282 additions and 207 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ root = true
trim_trailing_whitespace = true
insert_final_newline = true

[*.{js,ts}]
[*.{js,ts,json}]
indent_size = 2
indent_style = space
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"tabWidth": 2,
"semi": true,
"trailingComma": "es5",
"bracketSpacing": false,
"arrowParens": "always"
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
"@types/jest": "^24.0.11",
"@types/node": "^11.13.5",
"jest": "^24.7.1",
"prettier": "^1.17.0",
"ts-jest": "^24.0.2",
"tslint": "^5.16.0",
"typescript": "^3.4.3"
},
"scripts": {
"build": "tsc",
"test": "jest"
"test": "jest",
"lint": "tslint 'src/**/*.ts'"
}
}
Loading

0 comments on commit c9a005d

Please sign in to comment.