Skip to content

Commit 27f48e0

Browse files
authored
Merge pull request #247 from lazzzis/prettier-write
style: format with Prettier
2 parents d32b13e + 1e4a509 commit 27f48e0

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*-profile/
2+
dist/
3+
vscode-icons/

jest.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ module.exports = {
6464
maxWorkers: 8,
6565

6666
// An array of directory names to be searched recursively up from the requiring module's location
67-
moduleDirectories: [
68-
"src",
69-
"node_modules"
70-
],
67+
moduleDirectories: ['src', 'node_modules'],
7168

7269
// An array of file extensions your modules use
7370
// moduleFileExtensions: [

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"roll": "make release",
1818
"test": "yarn run test:parallel && yarn run test:non-parallel",
1919
"test:parallel": "NODE_ENV=test jest --config __tests__/jest.parallel.config.js",
20-
"test:non-parallel": "NODE_ENV=test jest --config __tests__/jest.non-parallel.config.js"
20+
"test:non-parallel": "NODE_ENV=test jest --config __tests__/jest.non-parallel.config.js",
21+
"format": "prettier --write '**/*.{js,jsx,ts,tsx}'"
2122
},
2223
"dependencies": {
2324
"@primer/components": "^22.0.2",
@@ -71,6 +72,7 @@
7172
"jest-puppeteer": "^6.1.0",
7273
"json-loader": "^0.5.7",
7374
"mini-css-extract-plugin": "^0.9.0",
75+
"prettier": "^2.7.1",
7476
"puppeteer": "^10.1.0",
7577
"raw-loader": "^4.0.0",
7678
"sass": "^1.26.2",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9113,6 +9113,11 @@ prepend-http@^2.0.0:
91139113
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
91149114
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
91159115

9116+
prettier@^2.7.1:
9117+
version "2.7.1"
9118+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
9119+
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
9120+
91169121
pretty-format@^24.3.0:
91179122
version "24.9.0"
91189123
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9"

0 commit comments

Comments
 (0)