Skip to content

Commit

Permalink
build: swap eslint with prettier in lintstagedrc
Browse files Browse the repository at this point in the history
  • Loading branch information
v.zheleztsov committed May 6, 2022
1 parent 593a1f0 commit 2c491f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"*.{js,ts}": ["eslint --fix", "prettier --write"],
"*.scss": ["stylelint --fix", "prettier --write"],
"*.{vue,html}": ["stylelint --fix", "prettier --write", "eslint --fix"],
"*.{vue,html}": ["stylelint --fix", "eslint --fix", "prettier --write"],
"{*.json,.*rc}": ["prettier --parser json --write"],
"*.{yaml,yml}": ["prettier --parser yaml --write"],
"*.md": ["prettier --write"]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"lint:style:fix": "stylelint --fix '**/*.{css,scss,vue}'",
"prettier": "prettier --check --ignore-unknown '**/*'",
"prettier:fix": "prettier --write --ignore-unknown '**/*'",
"format": "yarn lint:style:fix && yarn lint:js:fix && yarn prettier:fix",
"test": "vitest",
"test:c": "vitest --run --coverage",
"prepare": "husky install",
Expand Down

0 comments on commit 2c491f2

Please sign in to comment.