@dimensional-innovations/tool-config 1.2.1 → 1.2.3
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimensional-innovations/tool-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Universal configuration package for ESLint, Prettier, Stylelint, and semantic-release with auto-detection for React, Vue, Svelte, Solid, Astro, Angular, and more",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
package/src/detectors.js
CHANGED
|
@@ -38,7 +38,7 @@ function detectSvelteMetaFramework(deps) {
|
|
|
38
38
|
*/
|
|
39
39
|
function detectBaseFramework(deps) {
|
|
40
40
|
if (deps.react || deps['react-dom']) return 'react'
|
|
41
|
-
if (deps.vue || deps['@vue/runtime-core']) return 'vue'
|
|
41
|
+
if (deps.vue || deps['@vue/runtime-core'] || deps['vue-router'] || deps.pinia) return 'vue'
|
|
42
42
|
if (deps['@angular/core']) return 'angular'
|
|
43
43
|
if (deps.svelte) return 'svelte'
|
|
44
44
|
if (deps['solid-js']) return 'solid'
|
|
@@ -130,8 +130,18 @@ export default function createVuePreset() {
|
|
|
130
130
|
},
|
|
131
131
|
|
|
132
132
|
// Disable TypeScript naming convention for Vue files (allows onUpdate:modelValue pattern)
|
|
133
|
+
// IMPORTANT: Must also set parser to maintain vue-eslint-parser
|
|
133
134
|
{
|
|
134
135
|
files: ['**/*.vue'],
|
|
136
|
+
languageOptions: {
|
|
137
|
+
parser: vueParser,
|
|
138
|
+
parserOptions: {
|
|
139
|
+
parser: tseslint.parser,
|
|
140
|
+
extraFileExtensions: ['.vue'],
|
|
141
|
+
ecmaVersion: 'latest',
|
|
142
|
+
sourceType: 'module'
|
|
143
|
+
}
|
|
144
|
+
},
|
|
135
145
|
rules: {
|
|
136
146
|
'@typescript-eslint/naming-convention': 'off'
|
|
137
147
|
}
|
|
@@ -59,6 +59,10 @@ test:
|
|
|
59
59
|
# Release job - runs semantic-release on main branch
|
|
60
60
|
release:
|
|
61
61
|
stage: release
|
|
62
|
+
before_script:
|
|
63
|
+
# Install git (required by semantic-release)
|
|
64
|
+
- apk add --no-cache git
|
|
65
|
+
- npm ci --cache .npm --prefer-offline
|
|
62
66
|
script:
|
|
63
67
|
- npm run release
|
|
64
68
|
only:
|