@material-ui/codemod
Advanced tools
Comparing version 5.0.0-alpha.28 to 5.0.0-alpha.29
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74888
1347
238