Skip to content

Commit

Permalink
Fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Oct 1, 2024
1 parent a20f62a commit 4b45028
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 10 deletions.
8 changes: 4 additions & 4 deletions apps/react-app/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export function App() {
<main>
<header>React SVG Loaders</header>

{loaderTypes.map((loaderType, index) => (
<section key={index}>
{loaderTypes.map((loaderType) => (
<section key={loaderType}>
<h1>{loaderType} Loaders</h1>

<div>
{sizes.map((size, sizeIndex) => (
<React.Fragment key={sizeIndex}>
{sizes.map((size) => (
<React.Fragment key={size}>
{loaderType === 'Audio' && (
<NxAudioLoader isLoading={true} size={size} />
)}
Expand Down
5 changes: 2 additions & 3 deletions apps/react-app/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {},
},
plugins: [],
}

};
8 changes: 8 additions & 0 deletions apps/react-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ export default defineConfig({
transformMixedEsModules: true,
},
},

css: {
preprocessorOptions: {
scss: {
api: "modern",
},
},
},
});
8 changes: 8 additions & 0 deletions apps/svelte-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ export default defineConfig({
environment: "jsdom",
include: ["src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
},

css: {
preprocessorOptions: {
scss: {
api: "modern",
},
},
},
});
2 changes: 1 addition & 1 deletion apps/vue-app/src/app/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ export default {
</script>

<style scoped>
@import './../../libs/utils/nx-svg-shared-utils/src/styles/app.component.scss';
@import './../../../../libs/utils/nx-svg-shared-utils/src/styles/app.component.scss';
</style>
8 changes: 8 additions & 0 deletions apps/vue-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ export default defineConfig({
provider: "v8",
},
},

css: {
preprocessorOptions: {
scss: {
api: "modern",
},
},
},
});
4 changes: 2 additions & 2 deletions libs/utils/nx-svg-shared-utils/src/styles/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ main {
}

section {
@apply flex flex-col gap-y-3 border-[1.5px] border-dashed
@apply flex flex-col gap-y-3 border-[1.5px] border-dashed px-3 pt-3
border-gray-400/60 p-2 rounded-lg text-center
transition-all duration-200 ease-in-out;

Expand All @@ -20,7 +20,7 @@ main {
}

div {
@apply flex flex-row gap-3 items-center;
@apply flex flex-row h-full gap-3 items-center;
}
}
}

0 comments on commit 4b45028

Please sign in to comment.