Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 1, 2024
1 parent 52ca506 commit 2b175d4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions javascript/p0000_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* critque.
*
* This paragraph should be replaced by the problem description, excluding images.
*
* @returns {number}
**/

exports.p0000 = function() {
Expand Down
24 changes: 13 additions & 11 deletions javascript/p0001.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
/**
* Project Euler Problem 1
*
* Did this the old fashioned way, because this was before I figured out the closed form solution
*
* Problem:
*
* If we list all the natural numbers below 10 that are multiples of 3 or 5, we
* get 3, 5, 6 and 9. The sum of these multiples is 23.
*
* Find the sum of all the multiples of 3 or 5 below 1000.
*/
* Project Euler Problem 1
*
* Did this the old fashioned way, because this was before I figured out the closed form solution
*
* Problem:
*
* If we list all the natural numbers below 10 that are multiples of 3 or 5, we
* get 3, 5, 6 and 9. The sum of these multiples is 23.
*
* Find the sum of all the multiples of 3 or 5 below 1000.
*
* @returns {number}

Check failure on line 13 in javascript/p0001.js

View workflow job for this annotation

GitHub Actions / javascript-lint

Use @return instead
*/
exports.p0001 = function() {
let answer = 0;
for (let i = 3; i < 1000; i += 3) {
Expand Down
2 changes: 2 additions & 0 deletions javascript/p0002.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*
* By considering the terms in the Fibonacci sequence whose values do not exceed
* four million, find the sum of the even-valued terms.
*
* @returns {number}

Check failure on line 16 in javascript/p0002.js

View workflow job for this annotation

GitHub Actions / javascript-lint

Use @return instead
**/
exports.p0002 = function() {
// for a proof on why this formulation works, see python/p0002.py
Expand Down

0 comments on commit 2b175d4

Please sign in to comment.