diff --git a/.prettierrc.json5 b/.prettierrc.json5 new file mode 100644 index 0000000..d60ae3d --- /dev/null +++ b/.prettierrc.json5 @@ -0,0 +1,8 @@ +{ + tabWidth: 2, + semi: true, + useTabs: false, + singleQuote: false, + trailingComma: "es5", + printWidth: 80, +} diff --git a/package-lock.json b/package-lock.json index f0e3b10..0f835f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@types/styled-components": "^5.1.26", "eslint": "8.26.0", "eslint-config-next": "12.3.1", + "prettier": "^2.7.1", "typescript": "4.8.4" } }, @@ -4287,6 +4288,21 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -8297,6 +8313,12 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true + }, "prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", diff --git a/package.json b/package.json index c8683ba..1e2856d 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@types/styled-components": "^5.1.26", "eslint": "8.26.0", "eslint-config-next": "12.3.1", + "prettier": "^2.7.1", "typescript": "4.8.4" } }