build: update lint to remove patch (#3047)
This commit is contained in:
parent
94d3eb6dfb
commit
f29bedc005
|
|
@ -10,9 +10,6 @@ import noDebug from "./plugins/eslint/eslint-no-debug.js"
|
|||
import packageJsonExtend from "./plugins/eslint/eslint-package-json.js"
|
||||
import recursiveSort from "./plugins/eslint/eslint-recursive-sort.js"
|
||||
|
||||
// for nativewind preset
|
||||
process.env.TAILWIND_MODE = "build"
|
||||
|
||||
export default defineConfig(
|
||||
{
|
||||
formatting: false,
|
||||
|
|
@ -57,7 +54,6 @@ export default defineConfig(
|
|||
"You can use `useLocaltion` or `getReadonlyRoute` to get the route info.",
|
||||
},
|
||||
],
|
||||
"@eslint-react/naming-convention/use-state": "off",
|
||||
},
|
||||
},
|
||||
// use correct tailwind config for eslint
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
"cross-env": "7.0.3",
|
||||
"cssnano": "7.0.6",
|
||||
"eslint": "9.22.0",
|
||||
"eslint-config-hyoban": "4.0.0",
|
||||
"eslint-config-hyoban": "4.0.1",
|
||||
"eslint-plugin-react-native": "5.0.0",
|
||||
"fast-glob": "3.3.3",
|
||||
"lint-staged": "15.4.3",
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
diff --git a/lib/util/customConfig.js b/lib/util/customConfig.js
|
||||
index 1ab15994a1e236b11fe8f3fd03404cea32c7099c..8bee7957027129f2ed555b0d128fd51f85aa0a64 100644
|
||||
--- a/lib/util/customConfig.js
|
||||
+++ b/lib/util/customConfig.js
|
||||
@@ -14,8 +14,8 @@ try {
|
||||
const CHECK_REFRESH_RATE = 1_000;
|
||||
let previousConfig = null;
|
||||
let lastCheck = null;
|
||||
-let mergedConfig = null;
|
||||
-let lastModifiedDate = null;
|
||||
+let mergedConfig = new Map();
|
||||
+let lastModifiedDate = new Map();
|
||||
|
||||
/**
|
||||
* @see https://stackoverflow.com/questions/9210542/node-js-require-cache-possible-to-invalidate
|
||||
@@ -48,9 +48,9 @@ function loadConfig(config) {
|
||||
if (stats === null) {
|
||||
// Default to no config
|
||||
loadedConfig = {};
|
||||
- } else if (lastModifiedDate !== mtime) {
|
||||
+ } else if (lastModifiedDate.get(resolvedPath) !== mtime) {
|
||||
// Load the config based on path
|
||||
- lastModifiedDate = mtime;
|
||||
+ lastModifiedDate.set(resolvedPath, mtime);
|
||||
loadedConfig = requireUncached(resolvedPath);
|
||||
} else {
|
||||
// Unchanged config
|
||||
@@ -91,10 +91,10 @@ function resolve(twConfig) {
|
||||
const userConfig = loadConfig(twConfig);
|
||||
// userConfig is null when config file was not modified
|
||||
if (userConfig !== null) {
|
||||
- mergedConfig = resolveConfig(userConfig);
|
||||
+ mergedConfig.set(twConfig, resolveConfig(userConfig));
|
||||
}
|
||||
}
|
||||
- return mergedConfig;
|
||||
+ return mergedConfig.get(twConfig);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
572
pnpm-lock.yaml
572
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue