Skip to content

Commit

Permalink
chore(cli): add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Jun 28, 2021
1 parent fab9b50 commit 20be603
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
packages/cdktf-cli/templates/*/cdktf.json
**/.gen
**/cdktf.out
*.js
*.d.ts
*.json
**/.jsii
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"build": "lerna run --scope cdktf* --scope @cdktf/* build",
"format": "prettier --write .",
"package": "lerna run package && tools/collect-dist.sh",
"package:python": "lerna run package:python && tools/collect-dist.sh",
"package:java": "lerna run package:java && tools/collect-dist.sh",
Expand All @@ -17,6 +18,7 @@
"examples:integration:python": "test/run-against-dist tools/build-examples.sh python",
"examples:integration:typescript": "test/run-against-dist tools/build-examples.sh typescript",
"examples:integration:go": "test/run-against-dist tools/build-examples-sequential.sh go",
"pretest": "prettier --check .",
"test": "lerna run --scope cdktf* --scope @cdktf* test",
"watch": "lerna run --parallel --stream --scope cdktf* watch-preserve-output",
"link-packages": "lerna exec --scope cdktf* --scope @cdktf* yarn link",
Expand Down Expand Up @@ -52,10 +54,15 @@
".yalc/*",
".yalc/@*/*"
],
"nohoist": ["archiver", "**/archiver", "**/archiver/**"]
"nohoist": [
"archiver",
"**/archiver",
"**/archiver/**"
]
},
"devDependencies": {
"changelog-parser": "^2.8.0",
"lerna": "^3.20.2"
"lerna": "^3.20.2",
"prettier": "^2.3.1"
}
}
4 changes: 3 additions & 1 deletion packages/cdktf-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
"plugin:react/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
Expand Down Expand Up @@ -95,6 +96,7 @@
"@typescript-eslint/eslint-plugin": "^2.20.0",
"@typescript-eslint/parser": "^2.20.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "^7.20.0",
"ink-testing-library": "^2.0.0",
"jest": "^26.6.3",
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3535,6 +3535,11 @@ escodegen@^1.14.1:
optionalDependencies:
source-map "~0.6.1"

eslint-config-prettier@^8.3.0:
version "8.3.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a"
integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==

eslint-plugin-react@^7.20.0:
version "7.20.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.20.0.tgz#f98712f0a5e57dfd3e5542ef0604b8739cd47be3"
Expand Down Expand Up @@ -7102,6 +7107,11 @@ prettier@^1.19.1:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==

prettier@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6"
integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==

pretty-format@^25.2.1, pretty-format@^25.5.0:
version "25.5.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a"
Expand Down

0 comments on commit 20be603

Please sign in to comment.