mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
chore: ran linting
This commit is contained in:
parent
b44b4497a6
commit
f1ce17bde4
15 changed files with 285 additions and 338 deletions
|
|
@ -41,9 +41,7 @@ const nextConfig: NextConfig = {
|
|||
}
|
||||
|
||||
// SVGR: import *.svg as React components
|
||||
const fileLoaderRule = config.module.rules.find(
|
||||
(rule: any) => rule.test?.test?.(".svg"),
|
||||
);
|
||||
const fileLoaderRule = config.module.rules.find((rule: any) => rule.test?.test?.(".svg"));
|
||||
config.module.rules.push(
|
||||
// Re-apply the existing file loader for *.svg?url imports
|
||||
{
|
||||
|
|
@ -57,7 +55,7 @@ const nextConfig: NextConfig = {
|
|||
issuer: fileLoaderRule.issuer,
|
||||
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
|
||||
use: ["@svgr/webpack"],
|
||||
},
|
||||
}
|
||||
);
|
||||
fileLoaderRule.exclude = /\.svg$/i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue