Run prettier on Action

This commit is contained in:
c-bata
2020-10-27 22:15:05 +09:00
parent c3834eb276
commit dfc23bc16a
2 changed files with 24 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
name: typescript-lints
on:
pull_request:
paths:
- '.github/workflows/typescript-lints.yml'
- '**.ts'
- '**.tsx'
jobs:
lint:
name: Lint checking on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Set up Node v14
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- run: |
npm install
npm run lint
+1
View File
@@ -6,6 +6,7 @@
"main": "index.js",
"scripts": {
"fmt": "prettier --write \"optuna_dashboard/static/**/*.{ts,tsx}\"",
"lint": "prettier --list-different \"optuna_dashboard/static/**/*.{ts,tsx}\"",
"watch": "webpack --watch",
"build": "webpack",
"build:dev": "NODE_ENV=development webpack",