Skip to content

Commit ce55cc0

Browse files
committed
chore(prettier): fix format
1 parent 86bb86f commit ce55cc0

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

packages/babel-plugin-transform-svg-component/src/index.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,10 @@ describe('plugin', () => {
341341
it('allows to specify a custom "classic" jsxRuntime using "defaultSpecifier"', () => {
342342
const { code } = testPlugin(language)('<svg><g /></svg>', {
343343
jsxRuntime: 'classic',
344-
jsxRuntimeImport: { defaultSpecifier: 'h', source: 'hyperapp-jsx-pragma' },
344+
jsxRuntimeImport: {
345+
defaultSpecifier: 'h',
346+
source: 'hyperapp-jsx-pragma',
347+
},
345348
})
346349
expect(code).toMatchSnapshot()
347350
})

website/pages/docs/next.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ module.exports = {
3030
webpack(config) {
3131
// Grab the existing rule that handles SVG imports
3232
const fileLoaderRule = config.module.rules.find((rule) =>
33-
rule.test?.test?.(".svg")
34-
);
33+
rule.test?.test?.('.svg'),
34+
)
3535

3636
config.module.rules.push(
3737
// Reapply the existing rule, but only for svg imports ending in ?url
@@ -45,18 +45,18 @@ module.exports = {
4545
test: /\.svg$/i,
4646
issuer: /\.[jt]sx?$/,
4747
resourceQuery: { not: /url/ }, // exclude if *.svg?url
48-
use: ["@svgr/webpack"],
48+
use: ['@svgr/webpack'],
4949
},
50-
);
50+
)
5151

5252
// Modify the file loader rule to ignore *.svg, since we have it handled now.
53-
fileLoaderRule.exclude = /\.svg$/i;
53+
fileLoaderRule.exclude = /\.svg$/i
5454

55-
return config;
55+
return config
5656
},
5757

5858
// ...other config
59-
};
59+
}
6060
```
6161
6262
**Your code**

0 commit comments

Comments
 (0)