Skip to content

Commit

Permalink
chore: 🚨 added no-console statement rule
Browse files Browse the repository at this point in the history
  • Loading branch information
meleklassoued committed Mar 26, 2024
1 parent 2b7b6c6 commit f360c62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
// JavaScript rules
'prefer-const': 'warn',
'no-var': 'warn',
'no-console': ['error', { allow: ['warn'] }],
'no-unused-vars': 'warn',
'object-shorthand': 'warn',
'quote-props': ['warn', 'as-needed'],
Expand Down
16 changes: 8 additions & 8 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
<h2 className={'mb-3 text-2xl font-semibold'}>
Docs{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
<p className={'m-0 max-w-[30ch] text-sm opacity-50'}>
Find in-depth information about Next.js features and API.
</p>
</a>
Expand All @@ -64,13 +64,13 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
<h2 className={'mb-3 text-2xl font-semibold'}>
Learn{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
<p className={'m-0 max-w-[30ch] text-sm opacity-50'}>
Learn about Next.js in an interactive course with&nbsp;quizzes!
</p>
</a>
Expand All @@ -81,13 +81,13 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
<h2 className={'mb-3 text-2xl font-semibold'}>
Templates{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
<p className={'m-0 max-w-[30ch] text-sm opacity-50'}>
Explore starter templates for Next.js.
</p>
</a>
Expand All @@ -98,13 +98,13 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
<h2 className={'mb-3 text-2xl font-semibold'}>
Deploy{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-balance text-sm opacity-50`}>
<p className={'m-0 max-w-[30ch] text-balance text-sm opacity-50'}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Expand Down

0 comments on commit f360c62

Please sign in to comment.