Skip to content

Commit

Permalink
app.js: Fixes lint errors
Browse files Browse the repository at this point in the history
src/js/app.js --> Fixed lint errors
  • Loading branch information
SerekKiri committed Nov 7, 2018
1 parent 9aafddc commit 4a2bb19
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python
python: 3.6


before_install:
- npm i pnpm -g
- pnpm install
Expand All @@ -10,7 +9,9 @@ before_install:
- cd libs
- REPO=https://github.com/santhoshtr/CLDRPluralRuleParser.git
- git clone --recurse-submodules $REPO
- ls
- cd ../../..
- ls
- pnpm install
- pip3 install coala-bears
- export PATH=$PATH:./node_modules/.bin
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@
"find-rss": "^1.6.4",
"glob": "^7.1.2",
"graphql-client": "^2.0.0",
"iconv-lite": "^0.4.24",
"jquery": "^3.2.1",
"jquery.i18n": "git+https://github.com/wikimedia/jquery.i18n.git",
"json2yaml": "^1.1.0",
"lodash.mapkeys": "^4.6.0",
"mustache": "^2.3.0",
"netlify-env": "^0.0.4",
"node-fetch": "^1.7.3",
"pnpm": "2.17.7",
"rss": "^1.2.2",
"sort-keys": "^2.0.0",
"valid-github-username": "0.0.1",
"wikidata-sdk": "^5.5.0"
"wikidata-sdk": "^5.5.0",
"iconv-lite": "^0.4.24"
},
"devDependencies": {
"autoprefixer": "^7.2.3",
Expand Down
3 changes: 2 additions & 1 deletion pnpmfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {
function readPackage(pkg) {
switch (pkg.name) {
case 'webpack':
pkg.dependencies['jquery-i18n'] = 'github:wikimedia/jquery.i18n'
pkg.dependencies['jquery.i18n'] = 'github:wikimedia/jquery.i18n'
pkg.dependencies['iconv-lite'] = 'github:ashtuchkin/iconv-lite'
break
}
return pkg
Expand Down
9 changes: 0 additions & 9 deletions shrinkwrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies:
mustache: 2.3.2
netlify-env: 0.0.4
node-fetch: 1.7.3
pnpm: 2.17.7
rss: 1.2.2
sort-keys: 2.0.0
valid-github-username: 0.0.1
Expand Down Expand Up @@ -5668,13 +5667,6 @@ packages:
dev: true
resolution:
integrity: sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==
/pnpm/2.17.7:
dev: false
engines:
node: '>=6'
hasBin: true
resolution:
integrity: sha512-FwZFpKSL4BNu1IGIScveHqZALpm6jSF7QR90CZXW4RfKaLpNYcIkkFC9iPBT4AdpPSv1UR/gYUWyQdTZBx2a5g==
/portfinder/1.0.19:
dependencies:
async: 1.5.2
Expand Down Expand Up @@ -8184,7 +8176,6 @@ specifiers:
mustache: ^2.3.0
netlify-env: ^0.0.4
node-fetch: ^1.7.3
pnpm: 2.17.7
postcss-loader: ^2.0.9
prettier: ^1.9.1
rss: ^1.2.2
Expand Down
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function init() {
const noClaims = new Date(progress.noclaims)
const current = new Date()
const percentagePassed =
100 - (noClaims - current) / (noClaims - competitionOpen) * 100
100 - ((noClaims - current) / (noClaims - competitionOpen)) * 100

if (percentagePassed > 100) {
progressOuter.style.display = 'none'
Expand Down

0 comments on commit 4a2bb19

Please sign in to comment.