Skip to content

Commit

Permalink
chore: add eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Jan 11, 2024
1 parent ce76705 commit 6ebf387
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const config = {
"plugin:astro/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:svelte/recommended",
],
overrides: [
{
Expand All @@ -30,6 +31,17 @@ const config = {
// "astro/no-set-html-directive": "error"
},
},
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
rules: {
// Have issues
"no-undef": "off",
},
},
],
};

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@fontsource/noto-sans-thai-looped": "5.0.8",
"astro": "4.1.2",
"sharp": "0.33.1",
"svelte": "4.2.8",
"tailwindcss": "3.4.1",
"typescript": "5.3.3"
},
Expand All @@ -35,10 +34,12 @@
"eslint": "8.56.0",
"eslint-plugin-astro": "0.31.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-svelte": "2.35.1",
"prettier": "3.1.1",
"prettier-plugin-astro": "0.12.3",
"prettier-plugin-organize-imports": "3.2.4",
"prettier-plugin-svelte": "3.1.2",
"prettier-plugin-tailwindcss": "0.5.11"
"prettier-plugin-tailwindcss": "0.5.11",
"svelte": "4.2.8"
}
}
100 changes: 96 additions & 4 deletions pnpm-lock.yaml

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

2 changes: 0 additions & 2 deletions src/components/navbar/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
let hoverProject = false;
let hoverJoin = false;
let hoverContact = false;
const RIGHT_ARROW = "./navbar/rightArrow.png";
</script>

<nav id="nav" class="z-50 w-full bg-primary px-4 text-white lg:px-10">
Expand Down

0 comments on commit 6ebf387

Please sign in to comment.