Skip to content

Commit b3078f7

Browse files
committed
chore: format
1 parent e49b613 commit b3078f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1891
-1719
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: npm install
7474

7575
# - name: Build and Commit
76-
# run: npm run build-commit
76+
# run: npm run build-commit
7777

7878
- name: Release 🎉
7979
uses: cycjimmy/semantic-release-action@v2

CONTRIBUTING.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
# Contributing
2+
23
See [Atom's Contributing guidelines](https://atom.io/docs/latest/contributing).
34

45
## Reporting an issue
6+
57
Please use [GitHub's Issue Search](https://help.github.com/articles/using-search-to-filter-issues-and-pull-requests/) to help reduce the number of duplicate issues reported.
68
If you find an issue you're facing, feel free to comment on the open issues you're facing to raise with any details that could help debugging the problem.
79

810
When reporting an issue include information such as:
9-
* **Reproduction steps** if possible.
10-
* The Platform (Operating System) you're on.
11-
* The Atom version you're running.
12-
* The Script package version.
13-
* The Grammar you're attempting to run.
14-
* Consider adding a failing spec, with an Atom package this isn't as simple but could really help speed up debugging the issue.
11+
12+
- **Reproduction steps** if possible.
13+
- The Platform (Operating System) you're on.
14+
- The Atom version you're running.
15+
- The Script package version.
16+
- The Grammar you're attempting to run.
17+
- Consider adding a failing spec, with an Atom package this isn't as simple but could really help speed up debugging the issue.
1518

1619
The more information available when we take a look at your issue the more likely we can deal with it in a quick manner.
1720

1821
## Developing
22+
1923
We love pull requests! If you're reading this section thanks in advance.
2024

2125
To help accelerate the review process:
22-
* Consider adding specs.
23-
* Passing tests give reviewers confidence.
24-
* Consider adding verification steps for reviewers.
26+
27+
- Consider adding specs.
28+
- Passing tests give reviewers confidence.
29+
- Consider adding verification steps for reviewers.

README.md

Lines changed: 193 additions & 193 deletions
Large diffs are not rendered by default.

examples/greeter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
class Greeter {
2-
constructor(public greeting: string) { }
2+
constructor(public greeting: string) {}
33
greet() {
4-
return this.greeting;
4+
return this.greeting
55
}
6-
};
6+
}
77

8-
var greeter = new Greeter("Hello, world!");
8+
var greeter = new Greeter("Hello, world!")
99

10-
console.log(greeter.greet());
10+
console.log(greeter.greet())

examples/hello.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<!DOCTYPE html>
22
<html>
3-
<body>
3+
<body>
4+
<h1>Atom Script</h1>
45

5-
<h1>Atom Script</h1>
6-
7-
<p>Hello World</p>
8-
9-
</body>
6+
<p>Hello World</p>
7+
</body>
108
</html>

examples/jxa.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env osascript -l JavaScript
22

3-
test = Application.currentApplication();
3+
test = Application.currentApplication()
44

5-
test.includeStandardAdditions = true;
5+
test.includeStandardAdditions = true
66

7-
test.displayDialog('Hello world');
7+
test.displayDialog("Hello world")

examples/longrun.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
let i = 1;
1+
let i = 1
22
const run = setInterval(() => {
3-
console.log(`line ${i}`);
4-
i++;
3+
console.log(`line ${i}`)
4+
i++
55
if (i === 20) {
6-
stop();
6+
stop()
77
}
8-
}, 1000);
8+
}, 1000)
99
function stop() {
10-
clearInterval(run);
10+
clearInterval(run)
1111
}

examples/longrun.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var i: number = 1;
2-
var run = setInterval(function() {
3-
console.log("line " + i);
4-
i++;
1+
var i: number = 1
2+
var run = setInterval(function () {
3+
console.log("line " + i)
4+
i++
55
if (i === 20) {
6-
stop();
6+
stop()
77
}
8-
}, 1000);
8+
}, 1000)
99
function stop(): void {
10-
clearInterval(run);
10+
clearInterval(run)
1111
}

examples/modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {exec} from 'child_process'
1+
import { exec } from "child_process"
22

3-
const timeout = s => new Promise(resolve => setTimeout(resolve, s * 1000)) // ms
3+
const timeout = (s) => new Promise((resolve) => setTimeout(resolve, s * 1000)) // ms
44

5-
const sleep = async(s, message) => {
5+
const sleep = async (s, message) => {
66
console.log("Awaiting Promise…") // This selected line should run.
77
await timeout(s)
88
return console.log(message)

examples/mongodb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
print('Hello world!');
1+
print("Hello world!")

0 commit comments

Comments
 (0)