chore: add eslint

This commit is contained in:
Ayo Ayco 2024-12-25 18:34:54 +01:00
parent df1e3dad91
commit b318ba304e
3 changed files with 1845 additions and 48 deletions

13
eslint.config.mjs Normal file
View file

@ -0,0 +1,13 @@
import eslintPluginAstro from "eslint-plugin-astro";
export default [
// add more generic rule sets here, such as:
// js.configs.recommended,
...eslintPluginAstro.configs["recommended"],
...eslintPluginAstro.configs["jsx-a11y-recommended"],
{
rules: {
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error"
},
},
];

View file

@ -8,6 +8,7 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"lint": "eslint .",
"astro": "astro",
"build:preview": "astro build && astro preview",
"deploy": "astro build && scp -r dist ayo@ayco.io:~/ayco.io-flask/",
@ -18,9 +19,13 @@
"@astro-reactive/validator": "^0.5.0",
"@astrojs/sitemap": "^3.2.1",
"@ayco/astro-sw": "^0.8.8",
"@typescript-eslint/parser": "^8.18.2",
"astro": "^5.0.5",
"astro-github-stats": "^0.7.1",
"astro-iconify": "^1.2.0"
"astro-iconify": "^1.2.0",
"eslint": "^9.17.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2"
},
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}

File diff suppressed because it is too large Load diff