Skip to content

Commit

Permalink
Update packages; Update lint config and prettier; Fix errors after up…
Browse files Browse the repository at this point in the history
…dates
  • Loading branch information
tordans committed Jul 13, 2024
1 parent 209c7b2 commit 5da3ebb
Show file tree
Hide file tree
Showing 17 changed files with 6,817 additions and 4,999 deletions.
91 changes: 0 additions & 91 deletions .eslintrc.cjs

This file was deleted.

12 changes: 12 additions & 0 deletions .eslintrc.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"
},
},
]
4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# npm run type-check # Too many Errors ATM
# npm run lint # Too many Errors ATM
npm run type-check
npm run format
npm run lint
npm run build
8 changes: 7 additions & 1 deletion .prettierrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ export default {
singleQuote: true,
arrowParens: 'always',
printWidth: 100,
plugins: ['prettier-plugin-astro', 'prettier-plugin-tailwindcss'],
plugins: [
'prettier-plugin-astro',
'prettier-plugin-organize-imports',
'prettier-plugin-tailwindcss',
],
overrides: [
{
files: '*.astro',
Expand All @@ -13,4 +17,6 @@ export default {
},
},
],
tailwindFunctions: ['clsx'],
tailwindAttributes: ['className', 'class:list', 'class'],
}
Loading

0 comments on commit 5da3ebb

Please sign in to comment.