Skip to content

Commit

Permalink
Merge pull request #2 from devthedevel/prettier
Browse files Browse the repository at this point in the history
Prettier
  • Loading branch information
devthedevel authored Jan 14, 2024
2 parents d4a05f9 + 2581ec3 commit 2ea09a0
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 2 deletions.
63 changes: 63 additions & 0 deletions package-lock.json

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

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"prettier": "prettier --write ."
},
"dependencies": {
"@astrojs/mdx": "^1.1.0",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"astro": "^3.1.2"
},
"devDependencies": {
"prettier": "^3.2.1",
"prettier-plugin-astro": "^0.12.3"
}
}
}
16 changes: 16 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @type {import("prettier").Config} */
const config = {
singleQuote: true,
jsxSingleQuote: true,
plugins: ['prettier-plugin-astro'],
overrides: [
{
files: '*.astro',
options: {
parser: 'astro',
},
},
],
};

export default config;

0 comments on commit 2ea09a0

Please sign in to comment.