Skip to content

Commit 5493465

Browse files
committed
linting rules added
1 parent 25968d5 commit 5493465

44 files changed

Lines changed: 12399 additions & 8485 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:solid/typescript",
10+
],
11+
overrides: [
12+
{
13+
env: {
14+
node: true,
15+
},
16+
files: [".eslintrc.{js,cjs}"],
17+
parserOptions: {
18+
sourceType: "script",
19+
},
20+
},
21+
],
22+
parser: "@typescript-eslint/parser",
23+
parserOptions: {
24+
ecmaVersion: "latest",
25+
sourceType: "module",
26+
},
27+
plugins: ["@typescript-eslint", "solid"],
28+
rules: {
29+
indent: ["error", "tab"],
30+
"linebreak-style": ["error", "unix"],
31+
quotes: ["error", "double"],
32+
semi: ["warn", "never"],
33+
},
34+
}

content/[...404].tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { HttpStatusCode } from "solid-start/server";
1+
import { HttpStatusCode } from "solid-start/server"
22

33
export default function () {
4-
return (
5-
<div class="h-full mt-12 flex flex-col justify-center items-center text-center">
6-
<div class="font-bold text-xl">404</div>
7-
<div class="font-bold text-xl">This page doesn't quite exist yet</div>
8-
<HttpStatusCode code={404} />
9-
</div>
10-
);
4+
return (
5+
<div class="h-full mt-12 flex flex-col justify-center items-center text-center">
6+
<div class="font-bold text-xl">404</div>
7+
<div class="font-bold text-xl">This page doesn't quite exist yet</div>
8+
<HttpStatusCode code={404} />
9+
</div>
10+
)
1111
}

content/start.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { onMount } from "solid-js";
2-
import { Navigate, Outlet } from "solid-start";
1+
import { onMount } from "solid-js"
2+
import { Navigate, Outlet } from "solid-start"
33

44
export default () => {
5-
onMount(()=>{
6-
window.location.replace('https://start.solidjs.com/')
7-
})
8-
return <Outlet/>;
9-
};
5+
onMount(()=>{
6+
window.location.replace("https://start.solidjs.com/")
7+
})
8+
return <Outlet/>
9+
}

0 commit comments

Comments
 (0)