Add prettier configuration

This commit is contained in:
Ravinou 2023-09-10 15:54:21 +02:00
parent 81682ac2a2
commit 8198c5462b
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7
3 changed files with 40 additions and 2 deletions

21
.prettierrc.json Normal file
View file

@ -0,0 +1,21 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"useTabs": false,
"embeddedLanguageFormatting": "auto"
}

18
package-lock.json generated
View file

@ -25,7 +25,8 @@
},
"devDependencies": {
"eslint": "8.23.1",
"eslint-config-next": "^13.4.9"
"eslint-config-next": "^13.4.9",
"prettier": "^3.0.3"
}
},
"node_modules/@aashutoshrathi/word-wrap": {
@ -3496,6 +3497,21 @@
"node": ">= 0.8.0"
}
},
"node_modules/prettier": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/pretty-format": {
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-3.8.0.tgz",

View file

@ -26,6 +26,7 @@
},
"devDependencies": {
"eslint": "8.23.1",
"eslint-config-next": "^13.4.9"
"eslint-config-next": "^13.4.9",
"prettier": "^3.0.3"
}
}