From 0e632d9be30b1827d880c3e23a66ea40503b6251 Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Wed, 19 Feb 2025 11:18:26 +0100 Subject: [PATCH 1/2] Use flat config for eslint 9 --- docs/started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/started.md b/docs/started.md index 6627fb3e..22a56440 100644 --- a/docs/started.md +++ b/docs/started.md @@ -31,7 +31,7 @@ export default [ // js.configs.recommended, // '@eslint/js' // ...vue.configs['flat/recommended'], // 'eslint-plugin-vue' - ...vueI18n.configs.recommended, + ...vueI18n.configs["flat/recommended"], { rules: { // Optional. From 74ca2d39d24efa4f20596a3a3995163a14b2a6d6 Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Wed, 19 Feb 2025 12:15:01 +0100 Subject: [PATCH 2/2] Add tip for those checking out v4 --- docs/started.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/started.md b/docs/started.md index 22a56440..268788ad 100644 --- a/docs/started.md +++ b/docs/started.md @@ -21,6 +21,12 @@ npm install --save-dev eslint @intlify/eslint-plugin-vue-i18n Use `eslint.config.[c|m]js` file to configure rules. This is the default in ESLint v9, but can be used starting from ESLint v8.57.0. See also: https://eslint.org/docs/latest/use/configure/configuration-files-new. +::: tip Requirements + +If you're already toe-tipping and checking out v4.0.0, you should use `vueI18n.configs.recommended` instead of `vueI18n.configs["flat/recommended"]` in the following example. + +::: + Example eslint.config.js: ```js