@dimensional-innovations/tool-config 1.2.0 → 1.2.2
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.2",
|
|
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": {
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"eslint-plugin-svelte": "^3.12.4",
|
|
79
79
|
"eslint-plugin-vue": "^10.5.0",
|
|
80
80
|
"globals": "^16.4.0",
|
|
81
|
+
"postcss": "^8.4.49",
|
|
81
82
|
"postcss-scss": "^4.0.9",
|
|
82
83
|
"prettier": ">=3.0.0",
|
|
83
84
|
"prompts": "^2.4.2",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import vuePlugin from 'eslint-plugin-vue'
|
|
2
2
|
import tseslint from 'typescript-eslint'
|
|
3
|
+
import vueParser from 'vue-eslint-parser'
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Vue.js 3 custom rules
|
|
@@ -112,20 +113,35 @@ export default function createVuePreset() {
|
|
|
112
113
|
rules: vueCustomRules
|
|
113
114
|
},
|
|
114
115
|
|
|
115
|
-
// Vue-specific parser configuration
|
|
116
|
+
// Vue-specific parser configuration for TypeScript in <script> tags
|
|
117
|
+
// We must explicitly set vue-eslint-parser as the main parser, then configure
|
|
118
|
+
// it to use TypeScript parser for <script> blocks via parserOptions.parser
|
|
116
119
|
{
|
|
117
120
|
files: ['**/*.vue'],
|
|
118
121
|
languageOptions: {
|
|
122
|
+
parser: vueParser,
|
|
119
123
|
parserOptions: {
|
|
120
124
|
parser: tseslint.parser,
|
|
121
|
-
extraFileExtensions: ['.vue']
|
|
125
|
+
extraFileExtensions: ['.vue'],
|
|
126
|
+
ecmaVersion: 'latest',
|
|
127
|
+
sourceType: 'module'
|
|
122
128
|
}
|
|
123
129
|
}
|
|
124
130
|
},
|
|
125
131
|
|
|
126
132
|
// Disable TypeScript naming convention for Vue files (allows onUpdate:modelValue pattern)
|
|
133
|
+
// IMPORTANT: Must also set parser to maintain vue-eslint-parser
|
|
127
134
|
{
|
|
128
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
|
+
},
|
|
129
145
|
rules: {
|
|
130
146
|
'@typescript-eslint/naming-convention': 'off'
|
|
131
147
|
}
|