From 0d7efac9b6ab5cc183f4b5f7394eb98135a593e8 Mon Sep 17 00:00:00 2001 From: Jonas Holland Date: Thu, 4 Mar 2021 18:05:27 +0100 Subject: [PATCH] chore: rename files which use JSX syntax to have the .jsx extension --- ...ponent-loading.js.snap => import-component-loading.jsx.snap} | 0 ...import-component-loading.js => import-component-loading.jsx} | 0 .../{import-component-mocked.js => import-component-mocked.jsx} | 0 packages/spec/integration/hops/{index.js => index.jsx} | 0 packages/spec/integration/hops/{text.js => text.jsx} | 0 .../__tests__/{index.js => index.spec.jsx} | 0 .../typescript-unit-testing/{headline.js => headline.jsx} | 0 packages/template-graphql/src/home/{index.js => index.jsx} | 0 .../__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} | 0 .../src/home/spec/{index.spec.js => index.spec.jsx} | 0 packages/template-react/src/counter/{index.js => index.jsx} | 0 .../__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} | 0 .../src/counter/spec/{index.spec.js => index.spec.jsx} | 0 packages/template-react/src/home/{index.js => index.jsx} | 0 .../__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} | 0 .../src/home/spec/{index.spec.js => index.spec.jsx} | 0 packages/template-redux/src/counter/{counter.js => counter.jsx} | 0 .../{counter.spec.js.snap => counter.spec.jsx.snap} | 0 .../__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} | 0 .../src/counter/spec/{counter.spec.js => counter.spec.jsx} | 0 .../src/counter/spec/{index.spec.js => index.spec.jsx} | 2 +- packages/template-redux/src/home/{index.js => index.jsx} | 0 .../__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} | 0 .../src/home/spec/{index.spec.js => index.spec.jsx} | 0 24 files changed, 1 insertion(+), 1 deletion(-) rename packages/spec/integration/hops/__tests__/__snapshots__/{import-component-loading.js.snap => import-component-loading.jsx.snap} (100%) rename packages/spec/integration/hops/__tests__/{import-component-loading.js => import-component-loading.jsx} (100%) rename packages/spec/integration/hops/__tests__/{import-component-mocked.js => import-component-mocked.jsx} (100%) rename packages/spec/integration/hops/{index.js => index.jsx} (100%) rename packages/spec/integration/hops/{text.js => text.jsx} (100%) rename packages/spec/integration/typescript-unit-testing/__tests__/{index.js => index.spec.jsx} (100%) rename packages/spec/integration/typescript-unit-testing/{headline.js => headline.jsx} (100%) rename packages/template-graphql/src/home/{index.js => index.jsx} (100%) rename packages/template-graphql/src/home/spec/__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} (100%) rename packages/template-graphql/src/home/spec/{index.spec.js => index.spec.jsx} (100%) rename packages/template-react/src/counter/{index.js => index.jsx} (100%) rename packages/template-react/src/counter/spec/__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} (100%) rename packages/template-react/src/counter/spec/{index.spec.js => index.spec.jsx} (100%) rename packages/template-react/src/home/{index.js => index.jsx} (100%) rename packages/template-react/src/home/spec/__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} (100%) rename packages/template-react/src/home/spec/{index.spec.js => index.spec.jsx} (100%) rename packages/template-redux/src/counter/{counter.js => counter.jsx} (100%) rename packages/template-redux/src/counter/spec/__snapshots__/{counter.spec.js.snap => counter.spec.jsx.snap} (100%) rename packages/template-redux/src/counter/spec/__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} (100%) rename packages/template-redux/src/counter/spec/{counter.spec.js => counter.spec.jsx} (100%) rename packages/template-redux/src/counter/spec/{index.spec.js => index.spec.jsx} (95%) rename packages/template-redux/src/home/{index.js => index.jsx} (100%) rename packages/template-redux/src/home/spec/__snapshots__/{index.spec.js.snap => index.spec.jsx.snap} (100%) rename packages/template-redux/src/home/spec/{index.spec.js => index.spec.jsx} (100%) diff --git a/packages/spec/integration/hops/__tests__/__snapshots__/import-component-loading.js.snap b/packages/spec/integration/hops/__tests__/__snapshots__/import-component-loading.jsx.snap similarity index 100% rename from packages/spec/integration/hops/__tests__/__snapshots__/import-component-loading.js.snap rename to packages/spec/integration/hops/__tests__/__snapshots__/import-component-loading.jsx.snap diff --git a/packages/spec/integration/hops/__tests__/import-component-loading.js b/packages/spec/integration/hops/__tests__/import-component-loading.jsx similarity index 100% rename from packages/spec/integration/hops/__tests__/import-component-loading.js rename to packages/spec/integration/hops/__tests__/import-component-loading.jsx diff --git a/packages/spec/integration/hops/__tests__/import-component-mocked.js b/packages/spec/integration/hops/__tests__/import-component-mocked.jsx similarity index 100% rename from packages/spec/integration/hops/__tests__/import-component-mocked.js rename to packages/spec/integration/hops/__tests__/import-component-mocked.jsx diff --git a/packages/spec/integration/hops/index.js b/packages/spec/integration/hops/index.jsx similarity index 100% rename from packages/spec/integration/hops/index.js rename to packages/spec/integration/hops/index.jsx diff --git a/packages/spec/integration/hops/text.js b/packages/spec/integration/hops/text.jsx similarity index 100% rename from packages/spec/integration/hops/text.js rename to packages/spec/integration/hops/text.jsx diff --git a/packages/spec/integration/typescript-unit-testing/__tests__/index.js b/packages/spec/integration/typescript-unit-testing/__tests__/index.spec.jsx similarity index 100% rename from packages/spec/integration/typescript-unit-testing/__tests__/index.js rename to packages/spec/integration/typescript-unit-testing/__tests__/index.spec.jsx diff --git a/packages/spec/integration/typescript-unit-testing/headline.js b/packages/spec/integration/typescript-unit-testing/headline.jsx similarity index 100% rename from packages/spec/integration/typescript-unit-testing/headline.js rename to packages/spec/integration/typescript-unit-testing/headline.jsx diff --git a/packages/template-graphql/src/home/index.js b/packages/template-graphql/src/home/index.jsx similarity index 100% rename from packages/template-graphql/src/home/index.js rename to packages/template-graphql/src/home/index.jsx diff --git a/packages/template-graphql/src/home/spec/__snapshots__/index.spec.js.snap b/packages/template-graphql/src/home/spec/__snapshots__/index.spec.jsx.snap similarity index 100% rename from packages/template-graphql/src/home/spec/__snapshots__/index.spec.js.snap rename to packages/template-graphql/src/home/spec/__snapshots__/index.spec.jsx.snap diff --git a/packages/template-graphql/src/home/spec/index.spec.js b/packages/template-graphql/src/home/spec/index.spec.jsx similarity index 100% rename from packages/template-graphql/src/home/spec/index.spec.js rename to packages/template-graphql/src/home/spec/index.spec.jsx diff --git a/packages/template-react/src/counter/index.js b/packages/template-react/src/counter/index.jsx similarity index 100% rename from packages/template-react/src/counter/index.js rename to packages/template-react/src/counter/index.jsx diff --git a/packages/template-react/src/counter/spec/__snapshots__/index.spec.js.snap b/packages/template-react/src/counter/spec/__snapshots__/index.spec.jsx.snap similarity index 100% rename from packages/template-react/src/counter/spec/__snapshots__/index.spec.js.snap rename to packages/template-react/src/counter/spec/__snapshots__/index.spec.jsx.snap diff --git a/packages/template-react/src/counter/spec/index.spec.js b/packages/template-react/src/counter/spec/index.spec.jsx similarity index 100% rename from packages/template-react/src/counter/spec/index.spec.js rename to packages/template-react/src/counter/spec/index.spec.jsx diff --git a/packages/template-react/src/home/index.js b/packages/template-react/src/home/index.jsx similarity index 100% rename from packages/template-react/src/home/index.js rename to packages/template-react/src/home/index.jsx diff --git a/packages/template-react/src/home/spec/__snapshots__/index.spec.js.snap b/packages/template-react/src/home/spec/__snapshots__/index.spec.jsx.snap similarity index 100% rename from packages/template-react/src/home/spec/__snapshots__/index.spec.js.snap rename to packages/template-react/src/home/spec/__snapshots__/index.spec.jsx.snap diff --git a/packages/template-react/src/home/spec/index.spec.js b/packages/template-react/src/home/spec/index.spec.jsx similarity index 100% rename from packages/template-react/src/home/spec/index.spec.js rename to packages/template-react/src/home/spec/index.spec.jsx diff --git a/packages/template-redux/src/counter/counter.js b/packages/template-redux/src/counter/counter.jsx similarity index 100% rename from packages/template-redux/src/counter/counter.js rename to packages/template-redux/src/counter/counter.jsx diff --git a/packages/template-redux/src/counter/spec/__snapshots__/counter.spec.js.snap b/packages/template-redux/src/counter/spec/__snapshots__/counter.spec.jsx.snap similarity index 100% rename from packages/template-redux/src/counter/spec/__snapshots__/counter.spec.js.snap rename to packages/template-redux/src/counter/spec/__snapshots__/counter.spec.jsx.snap diff --git a/packages/template-redux/src/counter/spec/__snapshots__/index.spec.js.snap b/packages/template-redux/src/counter/spec/__snapshots__/index.spec.jsx.snap similarity index 100% rename from packages/template-redux/src/counter/spec/__snapshots__/index.spec.js.snap rename to packages/template-redux/src/counter/spec/__snapshots__/index.spec.jsx.snap diff --git a/packages/template-redux/src/counter/spec/counter.spec.js b/packages/template-redux/src/counter/spec/counter.spec.jsx similarity index 100% rename from packages/template-redux/src/counter/spec/counter.spec.js rename to packages/template-redux/src/counter/spec/counter.spec.jsx diff --git a/packages/template-redux/src/counter/spec/index.spec.js b/packages/template-redux/src/counter/spec/index.spec.jsx similarity index 95% rename from packages/template-redux/src/counter/spec/index.spec.js rename to packages/template-redux/src/counter/spec/index.spec.jsx index 878499b04f..69e081dd88 100644 --- a/packages/template-redux/src/counter/spec/index.spec.js +++ b/packages/template-redux/src/counter/spec/index.spec.jsx @@ -1,4 +1,4 @@ -import React from 'react'; +import * as React from 'react'; import { Provider } from 'react-redux'; import renderer from 'react-test-renderer'; import CounterContainer, { mapStateToProps } from '../'; diff --git a/packages/template-redux/src/home/index.js b/packages/template-redux/src/home/index.jsx similarity index 100% rename from packages/template-redux/src/home/index.js rename to packages/template-redux/src/home/index.jsx diff --git a/packages/template-redux/src/home/spec/__snapshots__/index.spec.js.snap b/packages/template-redux/src/home/spec/__snapshots__/index.spec.jsx.snap similarity index 100% rename from packages/template-redux/src/home/spec/__snapshots__/index.spec.js.snap rename to packages/template-redux/src/home/spec/__snapshots__/index.spec.jsx.snap diff --git a/packages/template-redux/src/home/spec/index.spec.js b/packages/template-redux/src/home/spec/index.spec.jsx similarity index 100% rename from packages/template-redux/src/home/spec/index.spec.js rename to packages/template-redux/src/home/spec/index.spec.jsx