From 2c491f202a9406145bae519b1a7abdc266197af1 Mon Sep 17 00:00:00 2001 From: "v.zheleztsov" Date: Fri, 6 May 2022 10:51:04 +0300 Subject: [PATCH] build: swap eslint with prettier in lintstagedrc --- .lintstagedrc | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.lintstagedrc b/.lintstagedrc index a06a9043..b1bc88f6 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -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"] diff --git a/package.json b/package.json index 0625c15e..60ac3f96 100644 --- a/package.json +++ b/package.json @@ -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",