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.

build: fix the directory path on webstorm

himself6514db45ae9532
diff --git a/.eslintrc.js b/.eslintrc.js
index 4e46209668..bbc9fe9e2c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,4 +1,5 @@
-const { readdirSync, statSync } = require('fs');
+const { resolve } = require('node:path');
+const { readdirSync, statSync } = require('node:fs');
const createPattern = packageName => [
{
@@ -23,10 +24,11 @@ const createPattern = packageName => [
},
];
-const pkgs = readdirSync('./packages').filter(pkg => {
+const pkgs = readdirSync(resolve(__dirname, './packages')).filter(pkg => {
return statSync(`./packages/${pkg}`).isDirectory();
});
-const apps = readdirSync('./apps').filter(pkg => {
+
+const apps = readdirSync(resolve(__dirname, './apps')).filter(pkg => {
return statSync(`./apps/${pkg}`).isDirectory();
});