Skip to content

Commit

Permalink
Add ESLint and Prettier tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
jclem committed Apr 19, 2019
1 parent 37e1911 commit 3e32975
Show file tree
Hide file tree
Showing 6 changed files with 998 additions and 67 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": ["plugin:github/es6"],
"parser": "@typescript-eslint/parser",
"plugins": ["jest"],
"env": {
"node": true,
"es6": true,
"jest/globals": true
}
}
16 changes: 14 additions & 2 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
workflow "CI" {
on = "push"
resolves = "Test"
resolves = ["Format", "Lint", "Test"]
}

action "Dependencies" {
uses = "actions/[email protected]"
args = "ci"
args = "install"
}

action "Format" {
needs = "Dependencies"
uses = "actions/[email protected]"
args = "run format"
}

action "Lint" {
needs = "Dependencies"
uses = "actions/[email protected]"
args = "run lint"
}

action "Test" {
Expand Down
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}
Loading

0 comments on commit 3e32975

Please sign in to comment.