@nitra/eslint-config 3.6.1 → 3.6.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/index.js +10 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -178,13 +178,7 @@ const all = [
|
|
|
178
178
|
* для них немає `defineTemplateBodyVisitor`, тож `sonarjs/unused-import` хибно скаржиться на імпорти лише для шаблону.
|
|
179
179
|
*/
|
|
180
180
|
{
|
|
181
|
-
files: [
|
|
182
|
-
'**/*.vue/**/*.js',
|
|
183
|
-
'**/*.vue/**/*.mjs',
|
|
184
|
-
'**/*.vue/**/*.cjs',
|
|
185
|
-
'**/*.vue/**/*.ts',
|
|
186
|
-
'**/*.vue/**/*.tsx'
|
|
187
|
-
],
|
|
181
|
+
files: ['**/*.vue/**/*.js', '**/*.vue/**/*.mjs', '**/*.vue/**/*.cjs', '**/*.vue/**/*.ts', '**/*.vue/**/*.tsx'],
|
|
188
182
|
rules: {
|
|
189
183
|
'sonarjs/unused-import': 'off'
|
|
190
184
|
}
|
|
@@ -243,7 +237,15 @@ const vueAllVite = [
|
|
|
243
237
|
ref: 'readonly',
|
|
244
238
|
useQuery: 'readonly',
|
|
245
239
|
watch: 'readonly',
|
|
246
|
-
computed: 'readonly'
|
|
240
|
+
computed: 'readonly',
|
|
241
|
+
// Макроси `<script setup>` і vue-macros (`defineOptions` тощо).
|
|
242
|
+
defineProps: 'readonly',
|
|
243
|
+
defineEmits: 'readonly',
|
|
244
|
+
defineExpose: 'readonly',
|
|
245
|
+
withDefaults: 'readonly',
|
|
246
|
+
defineSlots: 'readonly',
|
|
247
|
+
defineModel: 'readonly',
|
|
248
|
+
defineOptions: 'readonly'
|
|
247
249
|
}
|
|
248
250
|
}
|
|
249
251
|
}
|