Skip to content

Commit

Permalink
Add prettier, new eslint and cache for github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbm committed Nov 2, 2019
1 parent 2bbdce4 commit 918435d
Show file tree
Hide file tree
Showing 7 changed files with 1,109 additions and 205 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
out
lib
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./node_modules/@appnest/web-config/eslint.js",
"rules": {
"no-console": "error"
}
}
10 changes: 10 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ jobs:
with:
node-version: 10.x

- name: Cache
uses: actions/cache@preview
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Lint
Expand Down
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.md
node_modules
.DS_Store
.*
*.gif
*.png
dist
out
Loading

0 comments on commit 918435d

Please sign in to comment.