Skip to content

Commit d784714

Browse files
committed
fix: remove console.log and use prettier
1 parent b7bcf31 commit d784714

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5"
4+
}

lib/main.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cp = require('child_process');
2-
const {AutoLanguageClient} = require('atom-languageclient');
2+
const { AutoLanguageClient } = require('atom-languageclient');
33

44
class SourceKitLanguageClient extends AutoLanguageClient {
55
getGrammarScopes() {
@@ -15,10 +15,20 @@ class SourceKitLanguageClient extends AutoLanguageClient {
1515
}
1616

1717
startServerProcess() {
18-
this.supportedExtensions = ['*.c', '*.m', '*.cpp', '*.hh', '*.cc', '*.hpp', '*.h', '*.swift'];
19-
20-
const sourceKitServerPath = atom.config.get('ide-sourcekit.sourceKitServer.path');
21-
console.log('sourceKitServerPath', sourceKitServerPath);
18+
this.supportedExtensions = [
19+
'*.c',
20+
'*.m',
21+
'*.cpp',
22+
'*.hh',
23+
'*.cc',
24+
'*.hpp',
25+
'*.h',
26+
'*.swift',
27+
];
28+
29+
const sourceKitServerPath = atom.config.get(
30+
'ide-sourcekit.sourceKitServer.path'
31+
);
2232

2333
const childProcess = cp.spawn(sourceKitServerPath);
2434
this.captureServerErrors(childProcess);

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@semantic-release/apm-config": "^6.0.1",
3030
"commitlint": "^7.5.2",
3131
"husky": "^1.3.1",
32+
"prettier": "1.16.4",
3233
"semantic-release": "^15.13.3"
3334
},
3435
"configSchema": {

0 commit comments

Comments
 (0)