diff --git a/lib/rules/property-no-unknown/__tests__/index.js b/lib/rules/property-no-unknown/__tests__/index.js index 9df57aca9b..010c409985 100644 --- a/lib/rules/property-no-unknown/__tests__/index.js +++ b/lib/rules/property-no-unknown/__tests__/index.js @@ -229,6 +229,16 @@ testRule(rule, { }, { code: "const Component = styled.a`\n\t${rule}: 1;\n`" + }, + { + code: ` + import glm from 'glamorous'; + const Component = glm.a({ + overflowX: 'auto', + overflowWrap: 'auto', + flexDirection: 'row', + }); + ` } ], @@ -251,6 +261,17 @@ testRule(rule, { message: messages.rejected("rule"), line: 2, column: 2 + }, + { + code: ` + import glm from 'glamorous'; + const Component = glm.a({ + overflwX: 'auto', + }); + `, + message: messages.rejected("overflw-x"), + line: 4, + column: 12 } ] }); diff --git a/package.json b/package.json index 1471835fc5..3802952b98 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "pify": "^4.0.1", "postcss": "^7.0.14", "postcss-html": "^0.36.0", - "postcss-jsx": "^0.36.2", + "postcss-jsx": "^0.36.3", "postcss-less": "^3.1.4", "postcss-markdown": "^0.36.0", "postcss-media-query-parser": "^0.2.3",