-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from merative/ab/fix-linting-issues
Fix linting issues
- Loading branch information
Showing
20 changed files
with
180 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
cookbook/public/** | ||
cookbook/src/gatsby-theme-carbon/** | ||
dist/** | ||
node_modules/** | ||
reports/** | ||
storybook-static/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* Copyright Merative US L.P. 2020 | ||
* Copyright Merative US L.P. 2020, 2024 | ||
*/ | ||
|
||
import PersonFolio from './PersonFolio'; | ||
import Logo from './Logo'; | ||
import PersonFolio from "./personFolio"; | ||
import Logo from "./logo"; | ||
|
||
export default { PersonFolio, Logo }; |
10 changes: 4 additions & 6 deletions
10
packages/carbon-addons-devenv/sample_renderers/logo/LogoRenderer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable no-console */ | ||
/* | ||
* Copyright Merative US L.P. 2022 | ||
* Copyright Merative US L.P. 2022, 2024 | ||
*/ | ||
/* eslint import/no-unresolved: [2, { ignore: ['devenv_pkg*.'] }] */ | ||
// NOTE: from custom-carbon-addons package reference to Renderer would be he following | ||
// import { Renderer } from 'devenv_pkg/src/apollo-client-hooks'; | ||
import { Renderer } from 'devenv_pkg/src/apollo-client-hooks'; | ||
// eslint-disable-next-line import/no-unresolved | ||
import { Renderer } from "devenv_pkg/src/apollo-client-hooks"; | ||
|
||
const render = async (containerId, config) => { | ||
Renderer.create(containerId, config, 'LogoComponentApolloClientHook'); | ||
Renderer.create(containerId, config, "LogoComponentApolloClientHook"); | ||
}; | ||
|
||
export default render; |
10 changes: 4 additions & 6 deletions
10
packages/carbon-addons-devenv/sample_renderers/personFolio/PersonFolioRenderer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable no-console */ | ||
/* | ||
* Copyright Merative US L.P. 2021, 2022 | ||
* Copyright Merative US L.P. 2021, 2024 | ||
*/ | ||
/* eslint import/no-unresolved: [2, { ignore: ['devenv_pkg*.'] }] */ | ||
// NOTE: from custom-carbon-addons package reference to Renderer would be he following | ||
// import { Renderer } from 'devenv_pkg/src/apollo-client-hooks'; | ||
import { Renderer } from 'devenv_pkg/src/apollo-client-hooks'; | ||
// eslint-disable-next-line import/no-unresolved | ||
import { Renderer } from "devenv_pkg/src/apollo-client-hooks"; | ||
|
||
const render = async (containerId, config) => { | ||
Renderer.create(containerId, config, 'PersonComponentApolloClientHook'); | ||
Renderer.create(containerId, config, "PersonComponentApolloClientHook"); | ||
}; | ||
|
||
export default render; |
23 changes: 11 additions & 12 deletions
23
packages/carbon-addons-devenv/src/apollo-client-hooks/hook_samples/Logo/LogoDataProvider.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
/* | ||
* Copyright Merative US L.P. 2021, 2022 | ||
* Copyright Merative US L.P. 2021, 2024 | ||
*/ | ||
/* eslint import/no-unresolved: [2, { ignore: ['devenv_pkg*.'] }] */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
// NOTE: | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
// NOTE: | ||
// from custom-carbon-addons package reference to ApolloClientDataProvider would be he following | ||
// import { ApolloClientDataProvider } from 'devenv_pkg/src/apollo-client-hooks'; | ||
import ApolloClientDataProvider from 'devenv_pkg/src/apollo-client-hooks/core/ApolloClientDataProvider'; | ||
import LogoQueryProvider from './LogoQueryProvider'; | ||
|
||
// eslint-disable-next-line import/no-unresolved | ||
import ApolloClientDataProvider from "devenv_pkg/src/apollo-client-hooks/core/ApolloClientDataProvider"; | ||
import LogoQueryProvider from "./LogoQueryProvider"; | ||
|
||
const LogoDataProvider = ({ configuration, apolloClient }) => { | ||
return ( | ||
<ApolloClientDataProvider apolloClient={apolloClient} > | ||
<LogoQueryProvider configuration={configuration}/> | ||
<ApolloClientDataProvider apolloClient={apolloClient}> | ||
<LogoQueryProvider configuration={configuration} /> | ||
</ApolloClientDataProvider> | ||
); | ||
}; | ||
|
||
LogoDataProvider.propTypes = { | ||
configuration: PropTypes.object.isRequired, | ||
apolloClient: PropTypes.object.isRequired | ||
} | ||
apolloClient: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default LogoDataProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/carbon-addons-devenv/src/apollo-client-hooks/hook_samples/Logo/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
...es/carbon-addons-devenv/src/apollo-client-hooks/hook_samples/Person/PersonDataProvider.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
/* | ||
* Copyright Merative US L.P. 2021, 2022 | ||
* Copyright Merative US L.P. 2021, 2024 | ||
*/ | ||
/* eslint import/no-unresolved: [2, { ignore: ['devenv_pkg*.'] }] */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
// NOTE: | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
// NOTE: | ||
// from custom-carbon-addons package reference to ApolloClientDataProvider would be he following | ||
// import { ApolloClientDataProvider } from 'devenv_pkg/src/apollo-client-hooks'; | ||
import ApolloClientDataProvider from 'devenv_pkg/src/apollo-client-hooks/core/ApolloClientDataProvider'; | ||
import PersonFolioQueryProvider from './PersonFolioQueryProvider'; | ||
// eslint-disable-next-line import/no-unresolved | ||
import ApolloClientDataProvider from "devenv_pkg/src/apollo-client-hooks/core/ApolloClientDataProvider"; | ||
import PersonFolioQueryProvider from "./PersonFolioQueryProvider"; | ||
|
||
const PersonDataProvider = ({ configuration, apolloClient }) => { | ||
return ( | ||
<ApolloClientDataProvider apolloClient={apolloClient} > | ||
<PersonFolioQueryProvider configuration={configuration}/> | ||
<ApolloClientDataProvider apolloClient={apolloClient}> | ||
<PersonFolioQueryProvider configuration={configuration} /> | ||
</ApolloClientDataProvider> | ||
); | ||
}; | ||
|
||
PersonDataProvider.propTypes = { | ||
configuration: PropTypes.object.isRequired, | ||
apolloClient: PropTypes.object.isRequired | ||
} | ||
apolloClient: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default PersonDataProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/carbon-addons-devenv/src/apollo-client-hooks/hook_samples/Person/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/* | ||
* Copyright Merative US L.P. 2021, 2022 | ||
* Copyright Merative US L.P. 2021, 2024 | ||
*/ | ||
/* eslint import/no-unresolved: [2, { ignore: ['devenv_pkg*.'] }] */ | ||
import { ApolloClientHookTemplate } from 'devenv_pkg/src/apollo-client-hooks'; | ||
import PersonDataProvider from './PersonDataProvider'; | ||
// eslint-disable-next-line import/no-unresolved | ||
import { ApolloClientHookTemplate } from "devenv_pkg/src/apollo-client-hooks"; | ||
import PersonDataProvider from "./PersonDataProvider"; | ||
|
||
const PersonComponentApolloClientHook = (container, config) => { | ||
ApolloClientHookTemplate(container, config, PersonDataProvider); | ||
} | ||
}; | ||
|
||
export default PersonComponentApolloClientHook; |
Oops, something went wrong.