Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: update 'lint-staged' rules (#2969)

Alex Yang63517e4912e6
diff --git a/package.json b/package.json
index 75f02f48ba..d2e69e6d91 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"lint:fix": "yarn lint --fix",
"e2e": "playwright test",
"e2e:coverage": "COVERAGE=true yarn e2e --forbid-only",
- "start:e2e": "yar dlx run-p start start:storybook",
+ "start:e2e": "yarn dlx run-p start start:storybook",
"test": "ENABLE_PRELOADING=false vitest --run",
"test:ui": "ENABLE_PRELOADING=false vitest --ui",
"test:coverage": "ENABLE_PRELOADING=false vitest run --coverage",
@@ -41,8 +41,12 @@
},
"lint-staged": {
"*": "prettier --write --ignore-unknown --cache",
- "*.{ts,tsx,mjs,js,jsx}": "eslint --cache --fix",
+ "*.{ts,tsx,mjs,js,jsx}": [
+ "prettier . --ignore-unknown --write",
+ "eslint --cache --fix"
+ ],
"*.toml": [
+ "prettier . --ignore-unknown --write",
"taplo format"
]
},