Skip to content

Commit

Permalink
chore(all): fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed Sep 6, 2024
1 parent 4e713a7 commit 1bf06a1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
4 changes: 3 additions & 1 deletion apps/knowii/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
"rules": {
"@nx/enforce-module-boundaries": 0
}
},
{
"files": ["*.ts", "*.tsx"],
Expand Down
4 changes: 2 additions & 2 deletions apps/knowii/src/Components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export default function Banner() {
<button
type="button"
className={classNames('-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition', {
'hover:bg-indigo-600 focus:bg-indigo-600': style == 'success',
'hover:bg-red-600 focus:bg-red-600': style == 'danger',
'hover:bg-indigo-600 focus:bg-indigo-600': style === 'success',
'hover:bg-red-600 focus:bg-red-600': style === 'danger',
})}
aria-label="Dismiss"
onClick={(e) => {
Expand Down
11 changes: 7 additions & 4 deletions apps/knowii/src/Pages/Auth/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,22 @@ export default function Register() {
id="terms"
checked={form.data.terms}
onChange={(e) => {
// @ts-expect-error
form.setData('terms', e.target.checked);
if (e.target && e.target.checked === true) {
form.setData('terms', true);
} else {
form.setData('terms', false);
}
}}
required
/>

<div className="ml-2">
I agree to the&nbsp;
<a target="_blank" href={route(TERMS_OF_SERVICE_URL)} className="simple-link">
<a target="_blank" rel="noreferrer" href={route(TERMS_OF_SERVICE_URL)} className="simple-link">
Terms of Service&nbsp;
</a>
and&nbsp;
<a target="_blank" href={route(PRIVACY_POLICY_URL)} className="simple-link">
<a target="_blank" rel="noreferrer" href={route(PRIVACY_POLICY_URL)} className="simple-link">
Privacy Policy
</a>
</div>
Expand Down
7 changes: 6 additions & 1 deletion apps/knowii/src/Pages/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ export default function Welcome(props: WelcomePageProps) {

<PageContentWrapper>
<div className="flex flex-col items-center">
<h1 className="text-primary-500">Welcome&nbsp;👋</h1>
<h1 className="text-primary-500">
Welcome&nbsp;
<span role={'img'} aria-label="waving hand">
👋
</span>
</h1>
<h2 className="mt-4">
Know<span className="text-primary-500">ii</span> is a place for your community's Knowledge, Ideas and Inspiration.
</h2>
Expand Down
4 changes: 3 additions & 1 deletion apps/knowii/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ createInertiaApp({
progress: {
color: '#4B5563',
},
}).then((_createdApp) => {});
}).then((_createdApp) => {
console.log('Welcome to Knowii ❤️');
});
7 changes: 3 additions & 4 deletions apps/knowii/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { Config } from 'tailwindcss';
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
const { join } = require('path');
import { createGlobPatternsForDependencies } from '@nx/react/tailwind';
import { join } from 'path';
import { theme } from './src/theme.mjs';
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';

import { theme } from './src/theme.mjs';

/** @type {import('tailwindcss').Config} */
export default {
content: [
Expand Down

0 comments on commit 1bf06a1

Please sign in to comment.