This commit is contained in:
@@ -10,7 +10,12 @@ steps:
|
|||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn lint
|
- yarn lint .
|
||||||
|
- name: Prettier
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn install
|
||||||
|
- yarn prettier
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"format": "prettier:fix && lint:fix",
|
"format": "prettier:fix && lint:fix",
|
||||||
"lint": "eslint . --ext .js",
|
"lint": "eslint --ext .ts,.tsx lib/",
|
||||||
|
"lint:fix": "eslint --fix --ext .ts,.tsx lib/",
|
||||||
|
"prettier": "prettier --check 'lib/**/*.ts'",
|
||||||
"prettier:fix": "prettier --write 'lib/**/*.ts'",
|
"prettier:fix": "prettier --write 'lib/**/*.ts'",
|
||||||
"serve": "ts-node src/server.ts",
|
"serve": "ts-node src/server.ts",
|
||||||
"start": "nodemon"
|
"start": "nodemon"
|
||||||
|
|||||||
Reference in New Issue
Block a user