Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/codemod

Package Overview
Dependencies
Maintainers
7
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/codemod - npm Package Compare versions

Comparing version 5.0.0-alpha.28 to 5.0.0-alpha.29

node/v5.0.0/variant-prop.js

4

package.json
{
"name": "@material-ui/codemod",
"version": "5.0.0-alpha.28",
"version": "5.0.0-alpha.29",
"private": false,

@@ -41,4 +41,4 @@ "author": "Material-UI Team",

"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
}
}

@@ -59,5 +59,5 @@ # @material-ui/codemod

#### `textfield-variant-prop`
#### `variant-prop`
Add the TextField `variant="standard` prop when `variant` is undefined.
Add the TextField, Select, and FormControl `variant="standard"` prop when `variant` is undefined.
The diff should look like this:

@@ -68,4 +68,12 @@

-<TextField value="Outlined" variant="outlined" />
-<Select value="Standard" />
-<Select value="Outlined" variant="outlined" />
-<FormControl value="Standard" />
-<FormControl value="Outlined" variant="outlined" />
+<TextField value="Standard" variant="standard" />
+<TextField value="Outlined" />
+<Select value="Standard" variant="standard" />
+<Select value="Outlined" />
+<FormControl value="Standard" variant="standard" />
+<FormControl value="Outlined" />
```

@@ -76,3 +84,3 @@

```sh
npx jscodeshift --extensions js,ts,jsx,tsx --parser tsx -t node_modules/@material-ui/codemod/v5.0.0/textfield-variant-prop.js ./src
npx jscodeshift --extensions js,ts,jsx,tsx --parser tsx -t node_modules/@material-ui/codemod/v5.0.0/variant-prop.js ./src
```

@@ -79,0 +87,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc