@dargmuesli/nuxt-vio 11.1.0 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,14 +6,12 @@ import eslintPluginYml from 'eslint-plugin-yml'
6
6
  import globals from 'globals'
7
7
  import jiti from 'jiti'
8
8
 
9
- import withNuxt from './.nuxt/eslint.config.mjs'
10
-
11
9
  const moduleFileUrl = new URL(import.meta.url)
12
10
  // const compat = new FlatCompat({
13
11
  // baseDirectory: moduleFileUrl.pathname,
14
12
  // })
15
13
  const JITI = jiti(moduleFileUrl.pathname)
16
- const POLYFILLS = JITI('./utils/constants.ts').POLYFILLS
14
+ const POLYFILLS = JITI('../utils/constants.ts').POLYFILLS
17
15
 
18
16
  export const VIO_ESLINT_CONFIG = [
19
17
  ...vueI18n.configs['flat/recommended'],
@@ -79,5 +77,3 @@ export const VIO_ESLINT_CONFIG = [
79
77
  },
80
78
  }, // TODO: remove once `@intlify/eslint-plugin-vue-i18n` accounts for translation usage in composables]
81
79
  ]
82
-
83
- export default withNuxt(VIO_ESLINT_CONFIG)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "11.1.0",
3
+ "version": "11.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dargmuesli/vio.git"
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "packageManager": "pnpm@8.15.7",
16
16
  "files": [
17
+ ".config",
17
18
  "assets",
18
19
  "components",
19
20
  "composables",
@@ -27,7 +28,6 @@
27
28
  "utils",
28
29
  "app.config.ts",
29
30
  "error.vue",
30
- "eslint.config.js",
31
31
  "i18n.config.ts",
32
32
  "nuxt.config.ts",
33
33
  "playwright.config.ts",
@@ -38,7 +38,9 @@
38
38
  "@dargmuesli/nuxt-cookie-control": "8.1.2",
39
39
  "@heroicons/vue": "2.1.3",
40
40
  "@http-util/status-i18n": "0.8.1",
41
+ "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.11",
41
42
  "@nuxt/devtools": "1.1.5",
43
+ "@nuxt/eslint": "0.3.7",
42
44
  "@nuxt/image": "1.5.0",
43
45
  "@nuxtjs/color-mode": "3.4.0",
44
46
  "@nuxtjs/html-validator": "1.7.1",
@@ -54,6 +56,12 @@
54
56
  "@vuelidate/validators": "2.0.4",
55
57
  "clipboardy": "4.0.0",
56
58
  "dayjs": "2.0.0-alpha.4",
59
+ "eslint": "9.0.0",
60
+ "eslint-config-prettier": "9.1.0",
61
+ "eslint-plugin-compat": "4.2.0",
62
+ "eslint-plugin-prettier": "5.1.3",
63
+ "eslint-plugin-yml": "1.14.0",
64
+ "globals": "15.0.0",
57
65
  "jose": "5.2.4",
58
66
  "nuxt-gtag": "2.0.5",
59
67
  "nuxt-security": "1.3.2",
@@ -61,8 +69,6 @@
61
69
  },
62
70
  "devDependencies": {
63
71
  "@axe-core/playwright": "4.9.0",
64
- "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.11",
65
- "@nuxt/eslint": "0.3.7",
66
72
  "@playwright/test": "1.43.1",
67
73
  "@unhead/vue": "1.9.5",
68
74
  "@urql/devtools": "2.0.3",
@@ -72,12 +78,6 @@
72
78
  "cookie-es": "1.1.0",
73
79
  "cross-env": "7.0.3",
74
80
  "defu": "6.1.4",
75
- "eslint": "9.0.0",
76
- "eslint-config-prettier": "9.1.0",
77
- "eslint-plugin-compat": "4.2.0",
78
- "eslint-plugin-prettier": "5.1.3",
79
- "eslint-plugin-yml": "1.14.0",
80
- "globals": "15.0.0",
81
81
  "h3": "1.11.1",
82
82
  "jiti": "1.21.0",
83
83
  "lint-staged": "15.2.2",
@@ -85,7 +85,7 @@
85
85
  "nuxt": "3.11.2",
86
86
  "pinia": "2.1.7",
87
87
  "prettier": "3.2.5",
88
- "prettier-plugin-tailwindcss": "0.5.13",
88
+ "prettier-plugin-tailwindcss": "0.5.14",
89
89
  "serve": "14.2.1",
90
90
  "stylelint": "16.3.1",
91
91
  "stylelint-config-recommended-vue": "1.5.0",
@@ -112,7 +112,7 @@
112
112
  "dev": "pnpm run start:dev",
113
113
  "generate": "pnpm run build:static",
114
114
  "lint:fix": "pnpm run lint:js --fix && pnpm run lint:ts --fix && pnpm run lint:style --fix",
115
- "lint:js": "eslint --cache .",
115
+ "lint:js": "eslint --cache",
116
116
  "lint:staged": "lint-staged",
117
117
  "lint:style": "stylelint --cache \"**/*.{vue,css}\" --ignore-path .gitignore",
118
118
  "lint:ts": "nuxt typecheck",
package/types/api.d.ts CHANGED
@@ -6,4 +6,7 @@ export type ApiData = ComputedRef<{
6
6
  isFetching: boolean
7
7
  }>
8
8
 
9
- export type BackendError = CombinedError | { errcode: string; message: string }
9
+ // if an `originalError` property seems to be required, consider https://github.com/maevsi/maevsi/pull/1182/files#diff-3011f5fc2745796b181fe633b2590cfeb2e976aec95b8e94630bba0cc6163c1cL8
10
+ export type BackendError = {
11
+ graphQLErrors: (GraphQLError & { errcode?: string })[]
12
+ } & CombinedError