Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardjs installation and running #47

Merged
merged 11 commits into from
Oct 31, 2024
5 changes: 0 additions & 5 deletions test/iroh.js

This file was deleted.

16 changes: 16 additions & 0 deletions test/standardjs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict'

Check failure on line 1 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Missing semicolon

// Generated by ChatGPT

function isEven (num) {

Check failure on line 5 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Unexpected space before function parentheses
return num % 2 === 0

Check failure on line 6 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Expected indentation of 1 tab but found 2 spaces

Check failure on line 6 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Missing semicolon
}

const numbers = [1, 2, 3, 4, 5]

Check failure on line 9 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Missing semicolon
const evenNumbers = numbers.filter(isEven)

Check failure on line 10 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Missing semicolon

console.log('Even numbers:', evenNumbers)

Check failure on line 12 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Missing semicolon

for (let i = 0; i < numbers.length; i++) {
console.log(`Number ${numbers[i]} is ${isEven(numbers[i]) ? 'even' : 'odd'}`)

Check failure on line 15 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Expected indentation of 1 tab but found 2 spaces

Check failure on line 15 in test/standardjs.js

View workflow job for this annotation

GitHub Actions / test

Missing semicolon
}
Loading