add prettier to the project

main
Yanick Champoux 2023-01-11 16:45:41 -05:00
parent ca7c3d44eb
commit 19f2bb9177
3 changed files with 37 additions and 0 deletions

13
.prettierignore Normal file
View File

@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock

12
.prettierrc.cjs Normal file
View File

@ -0,0 +1,12 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 4,
useTabs: true,
plugins: ['prettier-plugin-svelte'],
svelteSortOrder: 'options-markup-scripts-styles',
svelteStrictMode: false,
svelteAllowShorthand: true,
};

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "under-falling-skies",
"version": "0.0.1",
"private": true,
"scripts": {},
"devDependencies": {
"prettier": "^2.8.2",
"prettier-plugin-svelte": "^2.8.1"
},
"type": "module",
"dependencies": {}
}