Skip to content

Commit

Permalink
feat: ✨ add astro support
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Apr 15, 2024
1 parent 150685a commit ba05ecb
Show file tree
Hide file tree
Showing 17 changed files with 39,353 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",
"astro", // Enable .astro
"typescript", // Enable .ts
"typescriptreact" // Enable .tsx
]
}
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: false,
/**
* Are testing rules are enabled?
* @default false
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"version": "0.2",
"words": [
"antfu",
"astro",
"cicd",
"commitlint",
"commitlintrc",
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 ba05ecb

Please sign in to comment.