@webpros/tsxuserprofilevue 3.3.43 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,169 @@
1
+ import typescriptEslint from '@typescript-eslint/eslint-plugin'
2
+ import globals from 'globals'
3
+ import path from 'node:path'
4
+ import { fileURLToPath } from 'node:url'
5
+ import js from '@eslint/js'
6
+ import { FlatCompat } from '@eslint/eslintrc'
7
+
8
+ const currentFilePath = fileURLToPath(import.meta.url)
9
+ const currentDirPath = path.dirname(currentFilePath)
10
+ const compat = new FlatCompat({
11
+ baseDirectory: currentDirPath,
12
+ recommendedConfig: js.configs.recommended,
13
+ allConfig: js.configs.all
14
+ })
15
+
16
+ export default [...compat.extends(
17
+ 'plugin:@typescript-eslint/recommended',
18
+ 'plugin:vue/vue3-recommended',
19
+ 'eslint:recommended',
20
+ '@vue/typescript',
21
+ 'plugin:vue/base',
22
+ './.eslintrc-auto-import.json',
23
+ ), {
24
+ plugins: {
25
+ '@typescript-eslint': typescriptEslint
26
+ },
27
+
28
+ languageOptions: {
29
+ globals: {
30
+ ...globals.browser,
31
+ ...globals.node,
32
+ defineProps: 'readonly',
33
+ defineEmits: 'readonly',
34
+ defineExpose: 'readonly',
35
+ withDefaults: 'readonly'
36
+ },
37
+
38
+ ecmaVersion: 5,
39
+ sourceType: 'commonjs',
40
+
41
+ parserOptions: {
42
+ parser: '@typescript-eslint/parser',
43
+
44
+ ecmaFeatures: {
45
+ jsx: false
46
+ }
47
+ }
48
+ },
49
+
50
+ settings: {
51
+ 'import/resolver': {
52
+ typescript: {}
53
+ }
54
+ },
55
+
56
+ rules: {
57
+ 'multiline-ternary': ['error', 'always-multiline'],
58
+ 'no-multi-spaces': 'error',
59
+
60
+ 'newline-per-chained-call': ['error', {
61
+ ignoreChainWithDepth: 4
62
+ }],
63
+
64
+ 'no-whitespace-before-property': 'error',
65
+
66
+ indent: ['error', 2, {
67
+ CallExpression: {
68
+ arguments: 'first'
69
+ },
70
+
71
+ FunctionExpression: {
72
+ parameters: 'first'
73
+ },
74
+
75
+ offsetTernaryExpressions: true,
76
+ SwitchCase: 1,
77
+
78
+ FunctionDeclaration: {
79
+ body: 1,
80
+ parameters: 2
81
+ },
82
+
83
+ ImportDeclaration: 1,
84
+ ObjectExpression: 1
85
+ }],
86
+
87
+ 'array-bracket-spacing': ['error', 'never'],
88
+
89
+ 'comma-spacing': ['error', {
90
+ before: false,
91
+ after: true
92
+ }],
93
+
94
+ 'lines-between-class-members': ['error', 'always', {
95
+ exceptAfterSingleLine: true
96
+ }],
97
+
98
+ 'array-callback-return': ['error', {
99
+ allowImplicit: true
100
+ }],
101
+
102
+ '@typescript-eslint/no-empty-interface': 'off',
103
+
104
+ eqeqeq: [1, 'always', {
105
+ null: 'ignore'
106
+ }],
107
+
108
+ 'no-else-return': [1, {
109
+ allowElseIf: false
110
+ }],
111
+
112
+ quotes: [2, 'single', {
113
+ avoidEscape: true
114
+ }],
115
+
116
+ semi: [2, 'never'],
117
+
118
+ 'keyword-spacing': ['error', {
119
+ before: true
120
+ }],
121
+
122
+ 'max-params': ['error', 5],
123
+ 'max-statements': ['off', 10],
124
+ 'comma-dangle': ['error', 'never'],
125
+
126
+ 'object-curly-spacing': ['error', 'always', {
127
+ arraysInObjects: false
128
+ }],
129
+
130
+ 'no-multiple-empty-lines': ['error', {
131
+ max: 2,
132
+ maxEOF: 1
133
+ }],
134
+
135
+ 'no-unneeded-ternary': ['error', {
136
+ defaultAssignment: false
137
+ }],
138
+
139
+ '@typescript-eslint/no-non-null-assertion': 'off',
140
+ 'no-console': 'off',
141
+ 'no-debugger': 'off',
142
+ '@typescript-eslint/no-var-requires': 'off',
143
+ 'no-unused-vars': 'off',
144
+ '@typescript-eslint/no-explicit-any': 'off',
145
+ 'vue/no-unused-components': 'warn',
146
+ 'vue/multiline-html-element-content-newline': 'warn',
147
+ 'no-trailing-spaces': 'warn',
148
+ 'vue/no-unused-vars': 'off',
149
+ '@typescript-eslint/no-unused-vars': 'off',
150
+ 'vue/script-setup-uses-vars': 'error',
151
+ 'vue/no-mutating-props': 'off',
152
+ 'vue/no-v-html': 'off',
153
+ 'no-case-declarations': 'off',
154
+ 'vue/multi-word-component-names': 'off',
155
+ camelcase: 'off',
156
+ curly: 0,
157
+ 'dot-notation': 0,
158
+
159
+ 'vue/max-attributes-per-line': ['warn', {
160
+ singleline: {
161
+ max: 2
162
+ },
163
+
164
+ multiline: {
165
+ max: 1
166
+ }
167
+ }]
168
+ }
169
+ }]
package/package.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "main": "dist/tsxUserProfile.js",
5
5
  "author": "Sascha Fuchs <sascha.fuchs@webpros.com>",
6
6
  "license": "MIT",
7
- "version": "3.3.43",
7
+ "version": "3.4.1",
8
8
  "engines": {
9
- "node": "18.x"
9
+ "node": "22.x"
10
10
  },
11
11
  "publishConfig": {
12
12
  "registry": "https://registry.npmjs.org/"
@@ -36,53 +36,56 @@
36
36
  "@headlessui/vue": "^1.7.23",
37
37
  "@histoire/plugin-vue": "^0.17.17",
38
38
  "@tailwindcss/container-queries": "^0.1.1",
39
- "@vueuse/core": "^11.1.0",
40
- "@vueuse/integrations": "^11.1.0",
41
- "axios": "^1.7.7",
39
+ "@vueuse/core": "^12.4.0",
40
+ "@vueuse/integrations": "^12.4.0",
41
+ "axios": "^1.7.9",
42
42
  "container-query-polyfill": "^1.0.2",
43
43
  "marked": "^5.1.2",
44
44
  "mitt": "^3.0.1",
45
- "terser": "^5.34.1",
46
- "universal-cookie": "^7.2.1",
47
- "vue": "^3.5.11",
45
+ "terser": "^5.37.0",
46
+ "universal-cookie": "^7.2.2",
47
+ "vue": "^3.5.13",
48
48
  "vue-multiselect": "^3.1.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "^7.24.4",
52
- "@typescript-eslint/eslint-plugin": "^7.7.0",
53
- "@typescript-eslint/parser": "^7.7.0",
54
- "@vitejs/plugin-vue": "^5.0.4",
55
- "@vitest/ui": "^1.5.0",
51
+ "@babel/core": "^7.26.0",
52
+ "@eslint/eslintrc": "^3.2.0",
53
+ "@eslint/js": "^9.18.0",
54
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
55
+ "@typescript-eslint/parser": "^7.18.0",
56
+ "@vitejs/plugin-vue": "^5.2.1",
57
+ "@vitest/ui": "^3.0.1",
56
58
  "@vue/eslint-config-standard": "^8.0.1",
57
59
  "@vue/eslint-config-typescript": "^11.0.3",
58
- "@vue/test-utils": "^2.4.5",
59
- "autoprefixer": "^10.4.19",
60
- "babel-loader": "^9.1.3",
61
- "cross-fetch": "^4.0.0",
60
+ "@vue/test-utils": "^2.4.6",
61
+ "autoprefixer": "^10.4.20",
62
+ "babel-loader": "^9.2.1",
63
+ "cross-fetch": "^4.1.0",
62
64
  "cssnano": "^6.1.2",
63
- "eslint": "^9.0.0",
65
+ "eslint": "^9.18.0",
64
66
  "eslint-config-prettier": "^9.1.0",
65
- "eslint-import-resolver-typescript": "^3.6.1",
66
- "eslint-plugin-import": "^2.29.1",
67
+ "eslint-import-resolver-typescript": "^3.7.0",
68
+ "eslint-plugin-import": "^2.31.0",
67
69
  "eslint-plugin-node": "^11.1.0",
68
- "eslint-plugin-promise": "^6.1.1",
69
- "eslint-plugin-vue": "^9.25.0",
70
+ "eslint-plugin-promise": "^7.2.1",
71
+ "eslint-plugin-vue": "^9.32.0",
72
+ "globals": "^15.14.0",
70
73
  "histoire": "^0.17.17",
71
74
  "jsdom": "^22.1.0",
72
- "msw": "^2.2.14",
75
+ "msw": "^2.7.0",
73
76
  "plop": "^4.0.1",
74
- "postcss": "^8.4.38",
77
+ "postcss": "^8.5.1",
75
78
  "postcss-cli": "^10.1.0",
76
79
  "postcss-import": "^15.1.0",
77
- "postcss-nested": "^6.0.1",
78
- "tailwindcss": "^3.4.3",
79
- "typescript": "^5.6.3",
80
- "unplugin-auto-import": "^0.17.5",
80
+ "postcss-nested": "^7.0.2",
81
+ "tailwindcss": "^3.4.17",
82
+ "typescript": "^5.7.3",
83
+ "unplugin-auto-import": "^0.19.0",
81
84
  "unplugin-vue-components": "^0.25.2",
82
- "vite": "^5.2.9",
83
- "vitest": "^1.5.0",
85
+ "vite": "^6.0.7",
86
+ "vitest": "^3.0.1",
84
87
  "vue-loader": "^17.4.2",
85
- "vue-tsc": "^2.0.13",
88
+ "vue-tsc": "^2.2.0",
86
89
  "wait-on": "^7.2.0",
87
90
  "zod": "^4.0.0-beta.1"
88
91
  }