Skip to content

Commit

Permalink
Eslint: Add missing config and package
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Nov 21, 2024
1 parent c39ee7c commit 85ef4f4
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 18 deletions.
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import eslintPluginAstro from 'eslint-plugin-astro'

// An alternative config would be https://github.com/withastro/docs/blob/main/.eslintrc.js
export default [
...eslintPluginAstro.configs.recommended,
{
rules: {
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error"
},
},
]
79 changes: 61 additions & 18 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"devDependencies": {
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@typescript-eslint/parser": "^8.15.0",
"eslint": "^9.15.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
Expand Down

0 comments on commit 85ef4f4

Please sign in to comment.