Skip to content

Commit

Permalink
added prettier tool
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 10, 2020
1 parent 5c4fb6e commit 2690f37
Show file tree
Hide file tree
Showing 32 changed files with 933 additions and 905 deletions.
14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
git fetch --prune --unshallow
- run: |
npm install
npm run format-check
npm run build:github
npm run build:azure
name: Build code
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
src/*/node_modules/
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}
199 changes: 20 additions & 179 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
},
"main": "main.js",
"scripts": {
"format": "prettier --write src/**/*.ts",
"format-check": "prettier --check src/**/*.ts",
"build:mock": "webpack --config webpack.config.js --env.agent=mock",
"build:azure": "webpack --config webpack.config.js --env.agent=azure",
"build:github": "webpack --config webpack.config.js --env.agent=github",
Expand Down Expand Up @@ -39,13 +41,12 @@
"@types/q": "^1.5.2",
"@types/semver-compare": "^1.0.1",
"@types/uuid": "^3.4.7",
"json-update": "^5.3.0",
"prettier": "^1.19.1",
"reflect-metadata": "^0.1.13",
"replace-in-file-webpack-plugin": "^1.0.6",
"terser-webpack-plugin": "^2.3.5",
"tfx-cli": "^0.7.11",
"ts-loader": "^6.2.1",
"tslint": "^6.0.0",
"typescript": "^3.8.3",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
Expand Down
Loading

0 comments on commit 2690f37

Please sign in to comment.