Skip to content

Commit

Permalink
chore: react import not needed anymore (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Sep 19, 2023
1 parent ce2cbaa commit 6f8d374
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
}
],
"@babel/preset-typescript",
"@babel/preset-react"
"@babel/preset-react",
[
"babel-preset-gatsby",
{
"reactRuntime": "automatic"
}
]
],
"plugins": []
}
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"ignorePatterns": ["gatsby-*.js", "export-maps-resolver.js"],
"rules": {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": [
Expand Down
2 changes: 0 additions & 2 deletions src/components/Common/Typography/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react'

import classNames from 'classnames'

import './Text.css'
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/* Specify library files to be included in the compilation. */ "allowJs": true,
/* Allow javascript files to be compiled. */ "resolveJsonModule": true,
"skipLibCheck": true,
"jsx": "react",
"jsx": "react-jsx",
/* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ "outDir": "lib",
/* Redirect output structure to the directory. */ "rootDir": "src",
/* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "downlevelIteration": true,
Expand Down

0 comments on commit 6f8d374

Please sign in to comment.