Check formatting in pipeline
This commit is contained in:
@@ -78,6 +78,11 @@ jobs:
|
||||
cd ui
|
||||
npm ci
|
||||
|
||||
- name: npm check-formatting
|
||||
run: |
|
||||
cd ui
|
||||
npm run check-formatting
|
||||
|
||||
- name: npm build
|
||||
run: |
|
||||
cd ui
|
||||
|
||||
+2
-1
@@ -32,7 +32,8 @@
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"prettier": "prettier --write src/**/*.js"
|
||||
"prettier": "prettier --write src/*.js src/**/*.js",
|
||||
"check-formatting": "prettier -c src/*.js src/**/*.js"
|
||||
},
|
||||
"homepage": ".",
|
||||
"proxy": "http://localhost:4633/",
|
||||
|
||||
Reference in New Issue
Block a user