@t2ca/gatsby-theme-showcase 1.0.89 → 1.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "prettier",
8
8
  "prettier/react"
9
9
  ],
10
- "plugins": ["react", "react-hooks", "import", "jsx-a11y", "emotion"],
10
+ "plugins": ["react", "react-hooks", "import", "jsx-a11y", "@emotion"],
11
11
  "parser": "babel-eslint",
12
12
  "parserOptions": {
13
13
  "ecmaVersion": 2018,
@@ -29,7 +29,10 @@
29
29
  "rules": {
30
30
  "react-hooks/rules-of-hooks": "error",
31
31
  "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
32
- "jsx-a11y/anchor-is-valid": ["error", { "components": ["Link"], "specialLink": ["to"] }],
32
+ "jsx-a11y/anchor-is-valid": [
33
+ "error",
34
+ { "components": ["Link"], "specialLink": ["to"] }
35
+ ],
33
36
  "no-console": "off",
34
37
  "react/prop-types": [0],
35
38
  "react/display-name": [0]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -8,7 +8,12 @@ export default ({ href, type = "basic", ...props }) => {
8
8
  const isExternal = isAbsoluteURL(href || "")
9
9
  if (isExternal) {
10
10
  return (
11
- <a href={href} sx={props.styles}>
11
+ <a
12
+ href={href}
13
+ sx={props.styles}
14
+ target="_blank"
15
+ rel="noopener noreferrer"
16
+ >
12
17
  {props}
13
18
  </a>
14
19
  )
package/.babelrc DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "plugins": [
3
- [
4
- "@babel/plugin-transform-react-jsx",
5
- {
6
- // TODO: This is to handle theme-ui pragma issues: https://github.com/system-ui/theme-ui/issues/1160
7
- "throwIfNamespace": true, // defaults to true
8
- "runtime": "classic", // defaults to classic
9
- "importSource": "react" // defaults to react
10
- }
11
- ]
12
- ]
13
- }