From ee9ddd6cf7fd60c2a020e40c57c6b7c6c4a65e48 Mon Sep 17 00:00:00 2001 From: Callin Mullaney <57088-callinmullaney@users.noreply.drupalcode.org> Date: Mon, 11 Mar 2024 21:58:16 -0500 Subject: [PATCH] feat: add prettier config --- whisk/config/emulsify-core/.prettierignore | 4 ++++ whisk/config/emulsify-core/prettierrc.config.json | 5 ++--- whisk/package.json | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 whisk/config/emulsify-core/.prettierignore diff --git a/whisk/config/emulsify-core/.prettierignore b/whisk/config/emulsify-core/.prettierignore new file mode 100644 index 00000000..c45aa50b --- /dev/null +++ b/whisk/config/emulsify-core/.prettierignore @@ -0,0 +1,4 @@ +dist +.out +.coverage +*.min.js \ No newline at end of file diff --git a/whisk/config/emulsify-core/prettierrc.config.json b/whisk/config/emulsify-core/prettierrc.config.json index 5986a1d7..a20502b7 100644 --- a/whisk/config/emulsify-core/prettierrc.config.json +++ b/whisk/config/emulsify-core/prettierrc.config.json @@ -1,5 +1,4 @@ { - "extends": [ - "../../node_modules/emulsify-core/config/.prettierrc.json" - ] + "singleQuote": true, + "trailingComma": "all" } diff --git a/whisk/package.json b/whisk/package.json index 0b639a75..4d8cbe38 100644 --- a/whisk/package.json +++ b/whisk/package.json @@ -23,8 +23,8 @@ "lint-js": "eslint --config config/emulsify-core/eslintrc.config.json --no-eslintrc --no-error-on-unmatched-pattern ./components", "lint-staged": "lint-staged", "lint-styles": "stylelint --config config/emulsify-core/stylelintrc.config.json './components/**/*.scss'", - "prettier": "prettier --config config/prettierrc.config.json --ignore-unknown \"./components/**/*.{js,yml,scss,md}\"", - "prettier-fix": "prettier --config config/prettierrc.config.json --write --ignore-unknown \"./components**/*.{js,yml,scss,md}\"", + "prettier": "prettier --config config/emulsify-core/prettierrc.config.json --ignore-path config/emulsify-core/.prettierignore --ignore-unknown \"./components/**/*.{js,yml,scss,md}\"", + "prettier-fix": "prettier --config config/emulsify-core/prettierrc.config.json --ignore-path config/emulsify-core/.prettierignore --write --ignore-unknown \"./components**/*.{js,yml,scss,md}\"", "storybook": "storybook dev -c node_modules/emulsify-core/.storybook --ci -s ../../../dist,../../../assets/images,../../../assets/icons -p 6006", "storybook-build": "storybook build -s ./dist,./assets/images,./assets/icons -o .out", "storybook-deploy": "storybook-to-ghpages -o .out",