-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add eslint config and prettier (#1025)
- Loading branch information
1 parent
e4db769
commit 8abe6b3
Showing
11 changed files
with
101 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": ["next/core-web-vitals"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": ["error"], | ||
"react/no-children-prop": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"semi": false, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"printWidth": 80, | ||
"singleQuote": false, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
"use client"; | ||
"use client" | ||
|
||
import { startReactDsfr } from "@codegouvfr/react-dsfr/next-appdir"; | ||
import { defaultColorScheme } from "./defaultColorScheme"; | ||
import Link from "next/link"; | ||
import { startReactDsfr } from "@codegouvfr/react-dsfr/next-appdir" | ||
import { defaultColorScheme } from "./defaultColorScheme" | ||
import Link from "next/link" | ||
|
||
declare module "@codegouvfr/react-dsfr/next-appdir" { | ||
interface RegisterLink { | ||
Link: typeof Link; | ||
interface RegisterLink { | ||
Link: typeof Link | ||
} | ||
} | ||
|
||
startReactDsfr({ defaultColorScheme, Link }); | ||
startReactDsfr({ defaultColorScheme, Link }) | ||
|
||
export function StartDsfr(){ | ||
export function StartDsfr() { | ||
//Yes, leave null here. | ||
return null; | ||
return null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { DefaultColorScheme } from "@codegouvfr/react-dsfr/next-appdir"; | ||
import type { DefaultColorScheme } from "@codegouvfr/react-dsfr/next-appdir" | ||
|
||
export const defaultColorScheme: DefaultColorScheme = "system"; | ||
export const defaultColorScheme: DefaultColorScheme = "system" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { fr } from "@codegouvfr/react-dsfr"; | ||
import { fr } from "@codegouvfr/react-dsfr" | ||
|
||
export default function Home() { | ||
return ( | ||
<main id="contenu" className="flex min-h-screen flex-col items-center justify-between p-24"> | ||
<main | ||
id="contenu" | ||
className="flex min-h-screen flex-col items-center justify-between p-24" | ||
> | ||
<section className={fr.cx("fr-h1")}> | ||
<h1>Santé, Solidarité, Travail: nos startups à votre service</h1> | ||
</section> | ||
</main> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters