this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add lint workflow and update scripts

+29 -2
+25
.github/workflows/lint.yml
··· 1 + name: Lint 2 + 3 + on: [push, pull_request] 4 + 5 + jobs: 6 + build: 7 + runs-on: ubuntu-latest 8 + 9 + steps: 10 + - name: Check out Git repository 11 + uses: actions/checkout@v2 12 + 13 + - name: Set up Node.js 14 + uses: actions/setup-node@v2 15 + with: 16 + node-version: 14 17 + 18 + - name: Install Dependencies 19 + run: npm ci 20 + 21 + - name: Run ESLint 22 + run: npm run lint 23 + 24 + - name: Run Prettier 25 + run: npm run prettier:check
+4 -2
package.json
··· 6 6 "prettier": "^2.8.8" 7 7 }, 8 8 "scripts": { 9 - "lint": "eslint . --ext .js", 10 - "format": "prettier --write ." 9 + "lint": "eslint .", 10 + "lint:fix": "eslint . --fix", 11 + "format": "prettier --write .", 12 + "prettier:check": "prettier --check ." 11 13 } 12 14 }