From 19c3a1d3ea61f58a76451ceea3e1fad7015cc4b2 Mon Sep 17 00:00:00 2001 From: Antonette Caldwell Date: Fri, 17 Nov 2023 20:02:53 -0600 Subject: [PATCH] chore(repo): add more files to ignore Signed-off-by: Antonette Caldwell --- .eslintignore | 4 +++- .prettierignore | 7 ++++++- package.json | 7 +++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.eslintignore b/.eslintignore index b220eea6e..2cb338734 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,4 +6,6 @@ dist storybook-static *.md site -apps/next-12 \ No newline at end of file +apps/next-12 +.yarnrc.yml +.eslintrc.*js \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index e81dc30e7..3ada852be 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,9 @@ # Ignore artifacts: **/dist/** **/coverage/** -**/.cache/** \ No newline at end of file +**/.cache/** +**/.github/** +**/.yarn/** +site/public +.yarnrc.yml +.eslintrc.*js \ No newline at end of file diff --git a/package.json b/package.json index 7e3cec61c..3243714b4 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,13 @@ "lint": "yarn eslint && yarn prettier-eslint --list-different", "lint:fix": "yarn eslint --fix", "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"", - "prettier-eslint": "yarn run prettier-eslint \"`pwd`/**/*.{ts,tsx}\"" + "prettier-eslint": "yarn run prettier-eslint \"`pwd`/**/*.{js,jsx,ts,tsx}\"" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ "eslint --fix", - "prettier --write -u" - ], - "!**/*.{js,ts,jsx,tsx}": "prettier --write -u" + "prettier --write \"**/*.{js,jsx,ts,tsx}\" --config ./.prettierrc" + ] }, "config": { "commitizen": {