Merge pull request #13133 from backstage/rugvip/modulefixes

tweaks to improve module support
This commit is contained in:
Patrik Oldsberg
2022-08-13 11:45:48 +02:00
committed by GitHub
5 changed files with 15 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Linting is now ignored for any `.eslintrc.*` files, not just `.eslintrc.js`.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-graphiql': patch
---
Minor internal tweak to lazy loading in order to improve module compatibility.
+1 -1
View File
@@ -76,7 +76,7 @@ function createConfig(dir, extraConfig = {}) {
...parserOptions,
},
ignorePatterns: [
'.eslintrc.js',
'.eslintrc.*',
'**/dist/**',
'**/dist-types/**',
...(ignorePatterns ?? []),
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { withLogCollector } from '@backstage//test-utils';
import { withLogCollector } from '@backstage/test-utils';
import { AppIdentityProxy } from './AppIdentityProxy';
describe('AppIdentityProxy', () => {
@@ -22,7 +22,9 @@ import { GraphQLEndpoint } from '../../lib/api';
import { BackstageTheme } from '@backstage/theme';
import { Progress } from '@backstage/core-components';
const GraphiQL = React.lazy(() => import('graphiql'));
const GraphiQL = React.lazy(() =>
import('graphiql').then(m => ({ default: m.GraphiQL })),
);
const useStyles = makeStyles<BackstageTheme>(theme => ({
root: {