Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: update eslint and related dependencies across multiple packages
- Bumped eslint and eslint-config-preact versions to improve linting capabilities and compatibility.
- Updated eslint-plugin-vue and vue-eslint-parser to their latest versions for enhanced Vue support.
- Made adjustments in eslint configuration files to align with the new package versions.
  • Loading branch information
pavkam committed Sep 3, 2025
commit 3898f911407f989826f9f2ea32c077f7e5f3afdd
3 changes: 2 additions & 1 deletion packages/browser-sdk/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const base = require("@reflag/eslint-config");
const preactConfig = require("eslint-config-preact");

const preactConfig = import("eslint-config-preact");

const compatPlugin = require("eslint-plugin-compat");
const reactPlugin = require("eslint-plugin-react");
Expand Down
4 changes: 2 additions & 2 deletions packages/browser-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"@types/node": "^22.12.0",
"@vitest/coverage-v8": "^2.0.4",
"c8": "~10.1.3",
"eslint": "^9.21.0",
"eslint-config-preact": "^1.5.0",
"eslint": "^9.34.0",
"eslint-config-preact": "^2.0.0",
"http-server": "^14.1.1",
"jsdom": "^24.1.0",
"msw": "^2.3.4",
Expand Down
1 change: 0 additions & 1 deletion packages/browser-sdk/src/ui/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export const Dialog: FunctionComponent<OpenDialogOptions> = ({
window.removeEventListener("keydown", escapeHandler);
observer.disconnect();
};
// eslint-disable-next-line react-hooks/exhaustive-deps -- anchor only exists in popover
}, [position.type, close, (position as any).anchor, dismiss, containerId]);

function setDiagRef(node: HTMLDialogElement | null) {
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unused-imports": "^4.2.0",
"eslint-plugin-vue": "^10.4.0",
"globals": "^16.3.0",
"prettier": "^3.6.2",
"typescript": "^5.9.2"
"typescript": "^5.9.2",
"vue-eslint-parser": "^10.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/node": "^22.12.0",
"@vitest/coverage-v8": "~1.6.0",
"c8": "~10.1.0",
"eslint": "^9.21.0",
"eslint": "^9.34.0",
"flush-promises": "~1.0.2",
"prettier": "^3.5.2",
"ts-node": "~10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/openfeature-node-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@reflag/eslint-config": "^0.0.3",
"@reflag/tsconfig": "~0.0.2",
"@types/node": "^22.12.0",
"eslint": "^9.21.0",
"eslint": "^9.34.0",
"flush-promises": "~1.0.2",
"prettier": "^3.5.2",
"ts-node": "~10.9.2",
Expand Down
5 changes: 1 addition & 4 deletions packages/vue-sdk/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const base = require("@reflag/eslint-config");
const importsPlugin = require("eslint-plugin-import");
const vuePlugin = require("eslint-plugin-vue");
const vueParser = require("vue-eslint-parser");

Expand All @@ -13,7 +12,6 @@ module.exports = [
files: ["**/*.vue"],
plugins: {
vue: vuePlugin,
import: importsPlugin,
},
languageOptions: {
parser: vueParser,
Expand All @@ -37,8 +35,7 @@ module.exports = [
},
},
rules: {
...vuePlugin.configs.recommended.rules,
...vuePlugin.configs["vue3-recommended"].rules,
...vuePlugin.configs["flat/strongly-recommended"].rules,

// Vue specific rules
"vue/multi-word-component-names": "off",
Expand Down
7 changes: 4 additions & 3 deletions packages/vue-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@
"@reflag/tsconfig": "^0.0.2",
"@types/jsdom": "^21.1.6",
"@types/node": "^22.12.0",
"@typescript-eslint/parser": "^8.42.0",
"@vitejs/plugin-vue": "^5.2.4",
"@vue/test-utils": "^2.3.2",
"eslint": "^9.21.0",
"eslint-plugin-vue": "^9.28.0",
"eslint": "^9.34.0",
"eslint-plugin-vue": "^10.4.0",
"jsdom": "^24.1.0",
"msw": "^2.3.5",
"prettier": "^3.5.2",
Expand All @@ -60,6 +61,6 @@
"vite-plugin-dts": "^4.5.4",
"vitest": "^2.0.4",
"vue": "^3.5.16",
"vue-eslint-parser": "^9.4.2"
"vue-eslint-parser": "^10.2.0"
}
}
Loading
Loading