Skip to content

Commit

Permalink
ci: add eslint and prettier to lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesog committed Dec 25, 2021
1 parent 0a4e0ec commit 3afdb63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build:module": "tsc -p tsconfig.module.json",
"lint": "run-s lint:*",
"lint:prettier": "prettier \"src/**/*.ts\" --write",
"lint:lint": "eslint src --ext .ts --fix",
"lint:eslint": "eslint src --ext .ts --fix",
"test": "run-s build test:*",
"test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" --list-different",
Expand Down Expand Up @@ -124,8 +124,10 @@
]
},
"lint-staged": {
"*.ts": "eslint src --ext .ts --fix",
"*.{ts,css,md}": "prettier \"src/**/*.ts\" --list-different --write"
"./src/**/*.ts": [
"yarn lint:eslint",
"yarn lint:prettier"
]
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 3afdb63

Please sign in to comment.