Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit abda661

Browse files
authored
Jsx runtime (#101) 🚀
* Migrating to new react 17 jsx runtime - part 1 🚀 * Fix runtime for jest 🚀 * Migration to jsx runtime React 17 -part 2 🚀 * Migration to jsx runtime React 17 -part 3 🚀
1 parent 58048cc commit abda661

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+660
-238
lines changed

.eslintrc.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
"eslint:recommended",
55
"plugin:react/recommended",
66
"plugin:prettier/recommended",
7-
"plugin:testing-library/react"
7+
"plugin:testing-library/react",
88
],
99
settings: {
1010
react: {
@@ -26,17 +26,19 @@ module.exports = {
2626
sourceType: "module", // Allows for the use of imports
2727
},
2828
rules: {
29-
"react/prop-types": "off", // Disable prop-types as we use TypeScript for type checking
29+
"react/prop-types": "off",
3030
"@typescript-eslint/explicit-function-return-type": "off",
3131
"no-unused-vars": "off",
3232
"@typescript-eslint/no-unused-vars": "error",
33+
"react/jsx-uses-react": "off",
34+
"react/react-in-jsx-scope": "off",
3335
},
3436
overrides: [
3537
// Override some TypeScript rules just for .js files
3638
{
3739
files: ["*.js"],
3840
rules: {
39-
"@typescript-eslint/no-var-requires": "off", //
41+
"@typescript-eslint/no-var-requires": "off",
4042
},
4143
},
4244
{

.idea/chicio.github.io.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/menu-item-with-tracking.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { fireEvent, render, screen } from "@testing-library/react";
32
import { trackWith } from "../src/logic/tracking";
43
import { BlogThemePage } from "../src/components/design-system/templates/blog-theme-page";

gatsby-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface GatsbyPluginFeed {
1010
}
1111

1212
const config: GatsbyConfig = {
13+
jsxRuntime: "automatic",
1314
siteMetadata: {
1415
title:
1516
"Fabrizio Duroni | Fabrizio Duroni ‘Chicio Coding’ official site with profile details. Official blog chicio coding. Main skills: mobile application development, computer graphics, web development.",

0 commit comments

Comments
 (0)