Skip to content

Commit

Permalink
Format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Jan 27, 2018
1 parent dde93a3 commit 31b29fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
2 changes: 1 addition & 1 deletion app/scripts.babel/chromereload.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const LIVERELOAD_HOST = 'localhost:'
const LIVERELOAD_PORT = 35729
const connection = new WebSocket(
`ws://${LIVERELOAD_HOST}${LIVERELOAD_PORT}/livereload`
`ws://${LIVERELOAD_HOST}${LIVERELOAD_PORT}/livereload`,
)

connection.onerror = error => {
Expand Down
10 changes: 5 additions & 5 deletions app/scripts.babel/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function createOnError(name, url) {
strong(name),
', is this URL',
urlText,
' correct?'
' correct?',
)
}
}
Expand Down Expand Up @@ -89,7 +89,7 @@ function inject(
url,
beforeLoad = createBeforeLoad(url),
onload = createOnLoad(url),
onerror = createOnError(url)
onerror = createOnError(url),
) {
beforeLoad()

Expand All @@ -115,7 +115,7 @@ function cdnjs(name) {
logError(
'Sorry, ',
strong(name),
' not found, please try another keyword.'
' not found, please try another keyword.',
)
return
}
Expand All @@ -129,12 +129,12 @@ function cdnjs(name) {
url,
createBeforeLoad(exactName),
createOnLoad(exactName, url),
createOnError(exactName, url)
createOnError(exactName, url),
)
})
.catch(() => {
logError(
'There appears to be some trouble with your network. If you think this is a bug, please report an issue:'
'There appears to be some trouble with your network. If you think this is a bug, please report an issue:',
)
logError('https://github.com/pd4d10/console-importer/issues')
})
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"gulp-uglify": "^1.5.3",
"gulp-useref": "^3.0.8",
"gulp-zip": "^3.2.0",
"husky": "^0.13.4",
"jasmine-core": "^2.6.4",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.2.0",
Expand All @@ -44,7 +43,6 @@
"karma-rollup-preprocessor": "^4.0.1",
"karma-safari-launcher": "^1.0.0",
"main-bower-files": "^2.11.1",
"prettier": "^1.4.4",
"rollup": "^0.45.2",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-commonjs": "^8.0.2",
Expand Down
31 changes: 0 additions & 31 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,6 @@ chrome-manifest@^0.2.4:
sort-json "^1.2.0"
underscore.string "^3.0.3"

ci-info@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534"

circular-json@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d"
Expand Down Expand Up @@ -1975,10 +1971,6 @@ find-index@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4"

find-parent-dir@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54"

find-up@^1.0.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
Expand Down Expand Up @@ -2798,15 +2790,6 @@ http-signature@~1.1.0:
jsprim "^1.2.2"
sshpk "^1.7.0"

husky@^0.13.4:
version "0.13.4"
resolved "https://registry.yarnpkg.com/husky/-/husky-0.13.4.tgz#48785c5028de3452a51c48c12c4f94b2124a1407"
dependencies:
chalk "^1.1.3"
find-parent-dir "^0.3.0"
is-ci "^1.0.9"
normalize-path "^1.0.0"

iconv-lite@0.4.13:
version "0.4.13"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2"
Expand Down Expand Up @@ -2982,12 +2965,6 @@ is-bzip2@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-bzip2/-/is-bzip2-1.0.0.tgz#5ee58eaa5a2e9c80e21407bedf23ae5ac091b3fc"

is-ci@^1.0.9:
version "1.0.10"
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e"
dependencies:
ci-info "^1.0.0"

is-dotfile@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
Expand Down Expand Up @@ -3983,10 +3960,6 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
semver "2 || 3 || 4 || 5"
validate-npm-package-license "^3.0.1"

normalize-path@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"

normalize-path@^2.0.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
Expand Down Expand Up @@ -4358,10 +4331,6 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier@^1.4.4:
version "1.5.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.5.2.tgz#7ea0751da27b93bfb6cecfcec509994f52d83bb3"

pretty-bytes@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-2.0.1.tgz#155ec4d0036f41391e7045d6dbe4963d525d264f"
Expand Down

0 comments on commit 31b29fb

Please sign in to comment.