You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

eslint-plugin-baseui

Package Overview
Dependencies
Maintainers
1
Versions
711
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-baseui - npm Package Compare versions

Comparing version

to
0.0.0-next-223d118

22

__tests__/deprecated-component-api.test.js

@@ -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

2

package.json
{
"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',