@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.
Files changed (2) hide show
  1. package/index.js +10 -8
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "An ESLint shareable config for projects using Vue and Node",
5
5
  "keywords": [
6
6
  "eslint",