eslint-plugin-baseui
Advanced tools
Comparing version
@@ -379,24 +379,2 @@ /* | ||
// Spinner | ||
{ | ||
code: ` | ||
import { Spinner } from "baseui/spinner" | ||
export default function() { | ||
return <Spinner /> | ||
} | ||
`, | ||
errors: [{ messageId: MESSAGES.deprecateSpinner.id }], | ||
}, | ||
// Spinner renamed | ||
{ | ||
code: ` | ||
import { Spinner as BaseSpinner } from "baseui/spinner" | ||
export default function() { | ||
return <BaseSpinner /> | ||
} | ||
`, | ||
errors: [{ messageId: MESSAGES.deprecateSpinner.id }], | ||
}, | ||
// Button - minimal kind | ||
@@ -403,0 +381,0 @@ // Prop as imported constant |
{ | ||
"name": "eslint-plugin-baseui", | ||
"version": "0.0.0-next-2141a82", | ||
"version": "0.0.0-next-223d118", | ||
"description": "ESLint rules for Base Web", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,3 +53,2 @@ /* | ||
[MESSAGES.replace.id]: MESSAGES.replace.message, | ||
[MESSAGES.deprecateSpinner.id]: MESSAGES.deprecateSpinner.message, | ||
[MESSAGES.buttonKindMinimal.id]: MESSAGES.buttonKindMinimal.message, | ||
@@ -117,14 +116,2 @@ [MESSAGES.modalBackdrop.id]: MESSAGES.modalBackdrop.message, | ||
) { | ||
// Spinner | ||
// Ex: import {Spinner} from "baseui/spinner"; | ||
// Note, we are not replacing Spinner because the new API | ||
// is not compatible. | ||
if (isImporting(specifier, 'Spinner', 'baseui/spinner')) { | ||
context.report({ | ||
node: specifier.imported, | ||
messageId: MESSAGES.deprecateSpinner.id, | ||
}); | ||
return; | ||
} | ||
// These can be referenced later on by instances of components. | ||
@@ -131,0 +118,0 @@ if (isImporting(specifier, 'Accordion', 'baseui/accordion')) return; |
@@ -23,6 +23,2 @@ /* | ||
}, | ||
deprecateSpinner: { | ||
id: 'deprecateSpinner', | ||
message: `The "Spinner" component has been deprecated in favor of "StyledSpinnerNext". In v11 of baseui, "Spinner" will be removed and "StyledSpinnerNext" will be renamed to "Spinner".`, | ||
}, | ||
styleOnBlock: { | ||
@@ -29,0 +25,0 @@ id: 'styleOnBlock', |
104011
-1.2%3359
-1.06%