Skip to content

Commit

Permalink
fix: 🐛 eslintの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hatsu38 committed Apr 25, 2023
1 parent 14c1f20 commit 0c84a65
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"import/extensions": [".ts", ".tsx", ".js", ".jsx"]
},
"rules": {
"react/react-in-jsx-scope": "off", // Reactのimportを不要にする
"eqeqeq": [2, "smart"], // ===にする
"quotes": ["error", "double"], // ダブルオーテーションで文字列を囲う
"semi": ["error", "always"], // セミコロンを必須にする
Expand Down
150 changes: 149 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
"typescript": "5.0.4"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.59.1",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"prettier": "2.8.8"
"prettier": "^2.8.8",
"typescript-eslint": "^0.0.1-alpha.0"
}
}
18 changes: 9 additions & 9 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image";
import { Inter } from "next/font/google";
import Image from "next/image";

const inter = Inter({ subsets: ["latin"] });

Expand Down Expand Up @@ -51,13 +51,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 @@ -68,13 +68,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 @@ -85,13 +85,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"}>
Discover and deploy boilerplate example Next.js&nbsp;projects.
</p>
</a>
Expand All @@ -102,13 +102,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-sm opacity-50`}>
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Expand Down

0 comments on commit 0c84a65

Please sign in to comment.