Skip to content

Commit 4dfd9aa

Browse files
committed
feat: Added Prettier formatting
Formatted all .ts, .js, .jsx, .md and .json files (except some config json files) Added .prettierignore and .prettierrc with default settings Adjusted tslint configs to prevent conflicts with Prettier Enforce tabs over spaces, allow developers to set their desired tab width Add husky pre-commit hook Added .vscode/extensions.json and workspace settings.json file for Prettier
1 parent 40f9a4d commit 4dfd9aa

File tree

499 files changed

+66439
-65119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

499 files changed

+66439
-65119
lines changed

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
package.json
4+
yarn.lock
5+
package-lock.json
6+
.eslintrc.js

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"useTabs": true
5+
}

package.json

+68-65
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
{
2-
"name": "aws-amplify-monorepo",
3-
"private": true,
4-
"version": "0.1.30",
5-
"description": "",
6-
"scripts": {
7-
"setup-dev": "yarn && yarn bootstrap && yarn link-all && yarn build",
8-
"bootstrap": "lerna bootstrap",
9-
"test": "lerna run test",
10-
"cypress": "lerna run cypress",
11-
"cypress:open": "lerna run cypress:open",
12-
"coverage": "codecov || exit 0",
13-
"docs": "typedoc packages/**/src --name amplify-js --hideGenerator --excludePrivate --ignoreCompilerErrors --mode file --out docs/api --theme docs/amplify-theme/typedoc/",
14-
"build": "lerna run build",
15-
"clean": "lerna run clean",
16-
"format": "lerna run format",
17-
"lint": "lerna run lint",
18-
"link-all": "yarn unlink-all && lerna exec --parallel yarn link",
19-
"unlink-all": "lerna exec --parallel --bail=false yarn unlink",
20-
"publish:master": "lerna publish --canary --yes --dist-tag=unstable --preid=unstable --exact",
21-
"publish:beta": "lerna publish --canary --yes --dist-tag=beta --preid=beta --exact",
22-
"publish:release": "lerna publish --conventional-commits --yes --message 'chore(release): Publish [ci skip]'"
23-
},
24-
"husky": {
25-
"hooks": {}
26-
},
27-
"workspaces": [
28-
"packages/*"
29-
],
30-
"repository": {
31-
"type": "git",
32-
"url": "https://github.com/aws-amplify/amplify-js.git"
33-
},
34-
"author": "Amazon Web Services",
35-
"license": "Apache-2.0",
36-
"bugs": {
37-
"url": "https://github.com/aws-amplify/amplify-js/issues"
38-
},
39-
"homepage": "https://aws-amplify.github.io/",
40-
"devDependencies": {
41-
"@types/jest": "^20.0.7",
42-
"@types/node": "^8.9.5",
43-
"codecov": "^1.0.1",
44-
"compression-webpack-plugin": "^1.1.3",
45-
"cypress": "^3.2.0",
46-
"husky": "^1.3.1",
47-
"jest": "^22.4.3",
48-
"json-loader": "^0.5.7",
49-
"lerna": "^3.13.1",
50-
"rimraf": "^2.6.2",
51-
"source-map-loader": "^0.2.1",
52-
"ts-jest": "^22.0.0",
53-
"tslint": "^5.7.0",
54-
"tslint-config-airbnb": "^5.8.0",
55-
"typedoc": "^0.11.0",
56-
"typescript": "^2.9.2",
57-
"uglifyjs-webpack-plugin": "^0.4.6",
58-
"webpack": "^3.5.5"
59-
},
60-
"jest": {
61-
"transform": {
62-
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
63-
},
64-
"resetMocks": true,
65-
"verbose": true
66-
}
2+
"name": "aws-amplify-monorepo",
3+
"private": true,
4+
"version": "0.1.30",
5+
"description": "",
6+
"scripts": {
7+
"setup-dev": "yarn && yarn bootstrap && yarn link-all && yarn build",
8+
"bootstrap": "lerna bootstrap",
9+
"test": "lerna run test",
10+
"cypress": "lerna run cypress",
11+
"cypress:open": "lerna run cypress:open",
12+
"coverage": "codecov || exit 0",
13+
"docs": "typedoc packages/**/src --name amplify-js --hideGenerator --excludePrivate --ignoreCompilerErrors --mode file --out docs/api --theme docs/amplify-theme/typedoc/",
14+
"build": "lerna run build",
15+
"clean": "lerna run clean",
16+
"format": "lerna run format",
17+
"lint": "lerna run lint",
18+
"link-all": "yarn unlink-all && lerna exec --parallel yarn link",
19+
"unlink-all": "lerna exec --parallel --bail=false yarn unlink",
20+
"publish:master": "lerna publish --canary --yes --dist-tag=unstable --preid=unstable --exact",
21+
"publish:beta": "lerna publish --canary --yes --dist-tag=beta --preid=beta --exact",
22+
"publish:release": "lerna publish --conventional-commits --yes --message 'chore(release): Publish [ci skip]'"
23+
},
24+
"husky": {
25+
"hooks": {
26+
"pre-commit": "pretty-quick --staged"
27+
}
28+
},
29+
"workspaces": [
30+
"packages/*"
31+
],
32+
"repository": {
33+
"type": "git",
34+
"url": "https://github.com/aws-amplify/amplify-js.git"
35+
},
36+
"author": "Amazon Web Services",
37+
"license": "Apache-2.0",
38+
"bugs": {
39+
"url": "https://github.com/aws-amplify/amplify-js/issues"
40+
},
41+
"homepage": "https://aws-amplify.github.io/",
42+
"devDependencies": {
43+
"@types/jest": "^20.0.7",
44+
"@types/node": "^8.9.5",
45+
"codecov": "^1.0.1",
46+
"compression-webpack-plugin": "^1.1.3",
47+
"cypress": "^3.2.0",
48+
"husky": "^3.0.5",
49+
"jest": "^22.4.3",
50+
"json-loader": "^0.5.7",
51+
"lerna": "^3.13.1",
52+
"pretty-quick": "^1.11.1",
53+
"rimraf": "^2.6.2",
54+
"source-map-loader": "^0.2.1",
55+
"ts-jest": "^22.0.0",
56+
"tslint": "^5.7.0",
57+
"tslint-config-airbnb": "^5.8.0",
58+
"typedoc": "^0.11.0",
59+
"typescript": "^2.9.2",
60+
"uglifyjs-webpack-plugin": "^0.4.6",
61+
"webpack": "^3.5.5"
62+
},
63+
"jest": {
64+
"transform": {
65+
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
66+
},
67+
"resetMocks": true,
68+
"verbose": true
69+
}
6770
}

0 commit comments

Comments
 (0)