Skip to content

Commit 3898f91

Browse files
committed
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.
1 parent b5e43ad commit 3898f91

9 files changed

Lines changed: 150 additions & 124 deletions

File tree

packages/browser-sdk/eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const base = require("@reflag/eslint-config");
2-
const preactConfig = require("eslint-config-preact");
2+
3+
const preactConfig = import("eslint-config-preact");
34

45
const compatPlugin = require("eslint-plugin-compat");
56
const reactPlugin = require("eslint-plugin-react");

packages/browser-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"@types/node": "^22.12.0",
5050
"@vitest/coverage-v8": "^2.0.4",
5151
"c8": "~10.1.3",
52-
"eslint": "^9.21.0",
53-
"eslint-config-preact": "^1.5.0",
52+
"eslint": "^9.34.0",
53+
"eslint-config-preact": "^2.0.0",
5454
"http-server": "^14.1.1",
5555
"jsdom": "^24.1.0",
5656
"msw": "^2.3.4",

packages/browser-sdk/src/ui/Dialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export const Dialog: FunctionComponent<OpenDialogOptions> = ({
170170
window.removeEventListener("keydown", escapeHandler);
171171
observer.disconnect();
172172
};
173-
// eslint-disable-next-line react-hooks/exhaustive-deps -- anchor only exists in popover
174173
}, [position.type, close, (position as any).anchor, dismiss, containerId]);
175174

176175
function setDiagRef(node: HTMLDialogElement | null) {

packages/eslint-config/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
"eslint-plugin-react-hooks": "^5.2.0",
1717
"eslint-plugin-simple-import-sort": "^12.1.1",
1818
"eslint-plugin-unused-imports": "^4.2.0",
19+
"eslint-plugin-vue": "^10.4.0",
1920
"globals": "^16.3.0",
2021
"prettier": "^3.6.2",
21-
"typescript": "^5.9.2"
22+
"typescript": "^5.9.2",
23+
"vue-eslint-parser": "^10.2.0"
2224
}
2325
}

packages/node-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/node": "^22.12.0",
3535
"@vitest/coverage-v8": "~1.6.0",
3636
"c8": "~10.1.0",
37-
"eslint": "^9.21.0",
37+
"eslint": "^9.34.0",
3838
"flush-promises": "~1.0.2",
3939
"prettier": "^3.5.2",
4040
"ts-node": "~10.9.2",

packages/openfeature-node-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@reflag/eslint-config": "^0.0.3",
4141
"@reflag/tsconfig": "~0.0.2",
4242
"@types/node": "^22.12.0",
43-
"eslint": "^9.21.0",
43+
"eslint": "^9.34.0",
4444
"flush-promises": "~1.0.2",
4545
"prettier": "^3.5.2",
4646
"ts-node": "~10.9.2",

packages/vue-sdk/eslint.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const base = require("@reflag/eslint-config");
2-
const importsPlugin = require("eslint-plugin-import");
32
const vuePlugin = require("eslint-plugin-vue");
43
const vueParser = require("vue-eslint-parser");
54

@@ -13,7 +12,6 @@ module.exports = [
1312
files: ["**/*.vue"],
1413
plugins: {
1514
vue: vuePlugin,
16-
import: importsPlugin,
1715
},
1816
languageOptions: {
1917
parser: vueParser,
@@ -37,8 +35,7 @@ module.exports = [
3735
},
3836
},
3937
rules: {
40-
...vuePlugin.configs.recommended.rules,
41-
...vuePlugin.configs["vue3-recommended"].rules,
38+
...vuePlugin.configs["flat/strongly-recommended"].rules,
4239

4340
// Vue specific rules
4441
"vue/multi-word-component-names": "off",

packages/vue-sdk/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@
4545
"@reflag/tsconfig": "^0.0.2",
4646
"@types/jsdom": "^21.1.6",
4747
"@types/node": "^22.12.0",
48+
"@typescript-eslint/parser": "^8.42.0",
4849
"@vitejs/plugin-vue": "^5.2.4",
4950
"@vue/test-utils": "^2.3.2",
50-
"eslint": "^9.21.0",
51-
"eslint-plugin-vue": "^9.28.0",
51+
"eslint": "^9.34.0",
52+
"eslint-plugin-vue": "^10.4.0",
5253
"jsdom": "^24.1.0",
5354
"msw": "^2.3.5",
5455
"prettier": "^3.5.2",
@@ -60,6 +61,6 @@
6061
"vite-plugin-dts": "^4.5.4",
6162
"vitest": "^2.0.4",
6263
"vue": "^3.5.16",
63-
"vue-eslint-parser": "^9.4.2"
64+
"vue-eslint-parser": "^10.2.0"
6465
}
6566
}

0 commit comments

Comments
 (0)