Skip to content

Commit

Permalink
chore: add prettier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Votradovec committed Oct 1, 2019
1 parent f75bb70 commit 9d9506f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/fixtures/**/*
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"arrowParens": "always",
"trailingComma": "all",
"singleQuote": true,
"htmlWhitespaceSensitivity": "ignore"
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@
"build": "tsc",
"build-watch": "tsc -w",
"find-circular": "npm run build && madge --circular ./dist",
"format": "prettier --write '{src,test,scripts}/**/*.{js,ts}'",
"prepare": "npm run build",
"tap": "tap test/*.test.* test/acceptance/*.test.* test/system/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test": "npm run test-common && npm run tap",
"test-common": "npm run check-tests && npm run build && npm run lint && node --require ts-node/register src/cli test --org=snyk",
"lint": "eslint --color --cache 'src/**/*.{js,ts}'",
"lint": "run-p --aggregate-output lint:*",
"lint:js": "eslint --color --cache 'src/**/*.{js,ts}'",
"lint:formatting": "prettier --check '{src,test,scripts}/**/*.{js,ts}'",
"check-tests": "! grep 'test\\.only' test/*.test.js -n",
"snyk-auth": "node --require ts-node/register src/cli auth $SNYK_API_KEY",
"snyk-auth-windows": "node --require ts-node/register src/cli auth %SNYK_API_KEY%"
Expand Down Expand Up @@ -106,6 +109,7 @@
"eslint-config-prettier": "^6.1.0",
"madge": "^3.4.4",
"nock": "^10.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"proxyquire": "^1.7.4",
"restify": "^4.1.1",
Expand Down

0 comments on commit 9d9506f

Please sign in to comment.