@dargmuesli/nuxt-vio 12.0.4 → 12.0.6

Sign up to get free protection for your applications and to get access to all the features.
package/.config/lint.js CHANGED
@@ -1,30 +1,37 @@
1
- // // TODO: add compat plugin when it supports flat config (https://github.com/amilajack/eslint-plugin-compat/issues/603)
2
- // import { FlatCompat } from '@eslint/eslintrc'
1
+ // @ts-check
2
+
3
+ import { fixupConfigRules } from '@eslint/compat'
4
+ // @ts-ignore
3
5
  import vueI18n from '@intlify/eslint-plugin-vue-i18n'
4
- import prettierRecommended from 'eslint-plugin-prettier/recommended'
6
+ import eslintPluginCompat from 'eslint-plugin-compat'
7
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5
8
  import eslintPluginYml from 'eslint-plugin-yml'
6
9
  import globals from 'globals'
7
10
  import jiti from 'jiti'
8
11
 
9
12
  const moduleFileUrl = new URL(import.meta.url)
10
- // const compat = new FlatCompat({
11
- // baseDirectory: moduleFileUrl.pathname,
12
- // })
13
13
  const JITI = jiti(moduleFileUrl.pathname)
14
14
  const POLYFILLS = JITI('../utils/constants.ts').POLYFILLS
15
15
 
16
+ const vueI18nConfiguration = vueI18n.configs['flat/recommended']
17
+ const compatConfiguration = fixupConfigRules(
18
+ eslintPluginCompat.configs['flat/recommended'],
19
+ )
20
+ const ymlConfiguration = eslintPluginYml.configs['flat/recommended']
21
+ const prettierConfiguration = eslintPluginPrettierRecommended
22
+
16
23
  export const VIO_ESLINT_CONFIG = [
17
- ...vueI18n.configs['flat/recommended'],
18
- // ...compat.extends('plugin:compat/recommended'),
19
- ...eslintPluginYml.configs['flat/recommended'],
20
- prettierRecommended, // must be last
24
+ ...vueI18nConfiguration,
25
+ ...compatConfiguration,
26
+ ...ymlConfiguration,
27
+ prettierConfiguration, // must be last
21
28
 
22
- // {
23
- // files: ['server/**/*'],
24
- // rules: {
25
- // 'compat/compat': 'off',
26
- // },
27
- // },
29
+ {
30
+ files: ['.config/lint.js'],
31
+ rules: {
32
+ 'compat/compat': 'off',
33
+ },
34
+ },
28
35
  {
29
36
  languageOptions: {
30
37
  globals: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "12.0.4",
3
+ "version": "12.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dargmuesli/vio.git"
@@ -12,7 +12,7 @@
12
12
  "engines": {
13
13
  "node": "20"
14
14
  },
15
- "packageManager": "pnpm@9.1.1",
15
+ "packageManager": "pnpm@9.3.0",
16
16
  "files": [
17
17
  ".config",
18
18
  "assets",
@@ -35,11 +35,11 @@
35
35
  ],
36
36
  "main": "nuxt.config.ts",
37
37
  "dependencies": {
38
- "@dargmuesli/nuxt-cookie-control": "8.3.2",
38
+ "@dargmuesli/nuxt-cookie-control": "8.4.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.12",
42
- "@nuxt/devtools": "1.3.1",
41
+ "@intlify/eslint-plugin-vue-i18n": "3.0.0",
42
+ "@nuxt/devtools": "1.3.3",
43
43
  "@nuxt/eslint": "0.3.13",
44
44
  "@nuxt/image": "1.7.0",
45
45
  "@nuxtjs/color-mode": "3.4.1",
@@ -51,58 +51,60 @@
51
51
  "@tailwindcss/forms": "0.5.7",
52
52
  "@tailwindcss/typography": "0.5.13",
53
53
  "@types/lodash-es": "4.17.12",
54
- "@urql/core": "5.0.3",
54
+ "@urql/core": "5.0.4",
55
55
  "@vuelidate/core": "2.0.3",
56
56
  "@vuelidate/validators": "2.0.4",
57
57
  "clipboardy": "4.0.0",
58
58
  "dayjs": "2.0.0-alpha.4",
59
- "eslint": "9.3.0",
59
+ "eslint": "9.4.0",
60
60
  "eslint-config-prettier": "9.1.0",
61
- "eslint-plugin-compat": "4.2.0",
61
+ "eslint-plugin-compat": "5.0.0",
62
62
  "eslint-plugin-prettier": "5.1.3",
63
63
  "eslint-plugin-yml": "1.14.0",
64
- "globals": "15.3.0",
65
- "jose": "5.3.0",
64
+ "globals": "15.4.0",
65
+ "jose": "5.4.0",
66
66
  "nuxt-gtag": "2.0.6",
67
67
  "nuxt-security": "1.4.3",
68
- "sweetalert2": "11.11.0"
68
+ "sweetalert2": "11.11.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@axe-core/playwright": "4.9.0",
72
- "@playwright/test": "1.44.0",
73
- "@unhead/vue": "1.9.10",
71
+ "@axe-core/playwright": "4.9.1",
72
+ "@eslint/compat": "1.0.3",
73
+ "@playwright/test": "1.44.1",
74
+ "@unhead/vue": "1.9.12",
74
75
  "@urql/devtools": "2.0.3",
75
- "@urql/exchange-graphcache": "7.1.0",
76
- "@urql/vue": "1.2.0",
76
+ "@urql/exchange-graphcache": "7.1.1",
77
+ "@urql/vue": "1.2.1",
77
78
  "consola": "3.2.3",
78
79
  "cookie-es": "1.1.0",
79
80
  "cross-env": "7.0.3",
80
81
  "defu": "6.1.4",
81
82
  "h3": "1.11.1",
82
- "jiti": "1.21.0",
83
- "lint-staged": "15.2.2",
83
+ "jiti": "1.21.6",
84
+ "lint-staged": "15.2.6",
84
85
  "lodash-es": "4.17.21",
85
86
  "nuxt": "3.11.2",
86
87
  "pinia": "2.1.7",
87
- "prettier": "3.2.5",
88
- "prettier-plugin-tailwindcss": "0.5.14",
88
+ "prettier": "3.3.2",
89
+ "prettier-plugin-tailwindcss": "0.6.3",
89
90
  "serve": "14.2.3",
90
91
  "sharp": "0.33.4",
91
- "stylelint": "16.5.0",
92
+ "stylelint": "16.6.1",
92
93
  "stylelint-config-recommended-vue": "1.5.0",
93
94
  "stylelint-config-standard": "36.0.0",
94
95
  "stylelint-no-unsupported-browser-features": "8.0.1",
95
- "tailwindcss": "3.4.3",
96
+ "tailwindcss": "3.4.4",
96
97
  "ufo": "1.5.3",
97
- "unhead": "1.9.10",
98
+ "unhead": "1.9.12",
98
99
  "vue": "3.4.27",
99
- "vue-router": "4.3.2"
100
+ "vue-router": "4.3.3",
101
+ "vue-tsc": "2.0.21"
100
102
  },
101
103
  "peerDependencies": {
102
- "nuxt": "3.11.2",
103
- "playwright-core": "1.44.0",
104
+ "nuxt": "3.12.1",
105
+ "playwright-core": "1.44.1",
104
106
  "vue": "3.4.27",
105
- "vue-router": "4.3.2"
107
+ "vue-router": "4.3.3"
106
108
  },
107
109
  "scripts": {
108
110
  "build": "pnpm run build:node",
@@ -95,6 +95,12 @@ export const GET_CSP = (siteUrl: string) =>
95
95
  },
96
96
  {
97
97
  // nuxt
98
+ ...(process.env.NODE_ENV === 'development'
99
+ ? {
100
+ 'frame-src':
101
+ 'http://localhost:3000/__nuxt_devtools__/client/modules/pinia',
102
+ }
103
+ : {}),
98
104
  'connect-src': [
99
105
  "'self'", // e.g. `/_nuxt/builds/meta/`, `/_payload.json`, `/privacy-policy/_payload.json`
100
106
  // ...(process.env.NODE_ENV === 'development'