Skip to content

Commit

Permalink
feat: ✨ add astro support (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman authored Apr 16, 2024
1 parent 150685a commit 2c1ccda
Show file tree
Hide file tree
Showing 16 changed files with 3,125 additions and 41 deletions.
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.experimental.useFlatConfig": true
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"astro"
]
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ export default jimmyDotCodes({
* @default false
*/
react: true,
/**
* Are Astro rules are enabled?
* @default false
*/
astro: true,
/**
* Are testing rules are enabled?
* @default false
Expand Down
4 changes: 4 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"version": "0.2",
"words": [
"antfu",
"astro",
"canonicalurl",
"cicd",
"commitlint",
"commitlintrc",
Expand All @@ -12,6 +14,8 @@
"esbuild",
"eslintconfig",
"espree",
"fetchcontent",
"getentrybyslug",
"gitzy",
"gruntfuggly",
"Hiroki",
Expand Down
4 changes: 4 additions & 0 deletions fixtures/astro.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

<div />
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@
"@eslint/js": "^8.57.0",
"@tanstack/eslint-plugin-query": "^5.28.11",
"@typescript-eslint/utils": "^7.6.0",
"astro-eslint-parser": "0.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-astro": "0.34.0",
"eslint-plugin-import-x": "0.5.0",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-jest-dom": "^5.2.0",
Expand Down Expand Up @@ -83,6 +85,7 @@
"@types/node": "20.12.7",
"@types/react": "18.2.78",
"@vitest/coverage-v8": "1.5.0",
"astro": "4.6.1",
"clean-pkg-json": "1.2.0",
"commitlint": "19.2.2",
"eslint": "8.57.0",
Expand Down
Loading

0 comments on commit 2c1ccda

Please sign in to comment.