From e134c08ae17abd00f7fa18ba3b7b343620e8006f Mon Sep 17 00:00:00 2001 From: Christian Pillsbury Date: Thu, 30 May 2024 10:14:14 -0700 Subject: [PATCH] chore: more prettier cleanup (use config files for use with e.g. IDEs). --- .prettierignore | 24 ++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 7b8f4c96b..ddb529740 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,26 @@ +## don't apply prettier rules to any of our markdown **/*.mdx **/*.md + +## ignore various dev env/build artifacts (should be same as .gitingore) +dist/ +.cache/ +yarn-error.log +.DS_Store +sandbox/* +.orig + +.vercel +.vscode + +/coverage/ +*.sublime-* + +## all ignore project-root files +/*.* + +## for now, ignore these directories as well +docs +examples +scripts +.github diff --git a/package.json b/package.json index c330f367b..0989a1477 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "dist" ], "scripts": { - "format": "prettier './src/js/**/*.{js,ts,tsx}' './test/**/*.{js,ts,tsx}' --write", + "format": "prettier . --write", "clean": "rimraf dist", "lint": "eslint src/js", "premanifest": "mkdir -p dist/ && cp -R src/js/media-* dist/", @@ -134,4 +134,4 @@ "player", "controls" ] -} +} \ No newline at end of file