eslint-plugin-vuetify
Advanced tools
Comparing version 2.0.0-beta.4 to 2.0.1
@@ -21,9 +21,4 @@ 'use strict'; | ||
VContent: 'v-main', | ||
VBannerActions: false, | ||
VBannerText: false, | ||
VBottomSheet: false, | ||
VCalendar: false, | ||
VData: false, | ||
VDataIterator: false, | ||
VDataTable: false, | ||
VDatePicker: false, | ||
@@ -38,3 +33,2 @@ VListItemGroup: false, | ||
VSimpleCheckbox: 'v-checkbox-btn', | ||
VSkeletonLoader: false, | ||
VSparkline: false, | ||
@@ -48,4 +42,3 @@ VSpeedDial: false, | ||
VTimePicker: false, | ||
VTreeview: false, | ||
VVirtualScroll: false | ||
VTreeview: false | ||
}; | ||
@@ -67,2 +60,3 @@ | ||
replacedWith: `'{{ a }}' has been replaced with '{{ b }}'`, | ||
replacedWithCustom: `'{{ a }}' has been replaced with {{ b }}`, | ||
removed: `'{{ name }}' has been removed` | ||
@@ -78,5 +72,14 @@ } | ||
const replacement = replacements[tag]; | ||
if (replacement) { | ||
if (typeof replacement === 'object' && 'custom' in replacement) { | ||
context.report({ | ||
node: element, | ||
messageId: 'replacedWithCustom', | ||
data: { | ||
a: hyphenate(tag), | ||
b: replacement.custom | ||
} | ||
}); | ||
} else if (typeof replacement === 'string') { | ||
context.report({ | ||
node: element, | ||
messageId: 'replacedWith', | ||
@@ -97,3 +100,3 @@ data: { | ||
}); | ||
} else { | ||
} else if (!replacement) { | ||
context.report({ | ||
@@ -100,0 +103,0 @@ node: element, |
{ | ||
"name": "eslint-plugin-vuetify", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.1", | ||
"description": "An eslint plugin for Vuetify", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
47509
1658
0