Skip to content

Commit acfb10c

Browse files
actions-userdayhaysoos
authored andcommitted
style: format code
1 parent 13937c3 commit acfb10c

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

package/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"main": "./dist/index.js",
77
"browser": "./dist/client.browser.js",
88
"types": "./dist/index.d.ts",
9-
"include": ["src", "types"],
9+
"include": [
10+
"src",
11+
"types"
12+
],
1013
"exports": {
1114
".": {
1215
"types": "./dist/index.d.ts",

package/shnippet.config.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export const config = {
2-
rootDirectory: './src',
3-
snippetOutputDirectory: './snippets',
4-
fileExtensions: ['.js', '.ts', '.kt', '.gradle', '.xml', '.bash', '.swift', '.py'],
5-
exclude: [],
6-
snippetTags: {
7-
start: ':snippet-start:',
8-
end: ':snippet-end:',
9-
prependStart: ':prepend-start:',
10-
prependEnd: ':prepend-end:',
11-
},
12-
outputDirectoryStructure: 'byLanguage',
13-
version: '1.0.0',
2+
rootDirectory: './src',
3+
snippetOutputDirectory: './snippets',
4+
fileExtensions: ['.js', '.ts', '.kt', '.gradle', '.xml', '.bash', '.swift', '.py'],
5+
exclude: [],
6+
snippetTags: {
7+
start: ':snippet-start:',
8+
end: ':snippet-end:',
9+
prependStart: ':prepend-start:',
10+
prependEnd: ':prepend-end:',
11+
},
12+
outputDirectoryStructure: 'byLanguage',
13+
version: '1.0.0',
1414
};

package/src/types/shnippet.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

package/test/__fixtures__/example.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
"use strict";
1+
'use strict';
22
// Example TypeScript file with snippets
33
//:snippet-start: example1
44
function sayHello() {
5-
console.log('Hello from TypeScript!');
5+
console.log('Hello from TypeScript!');
66
}
77
//:snippet-end:
88
//:snippet-start: example2
99
class Example {
10-
constructor() {
11-
this.message = 'This is a TypeScript class';
12-
}
13-
getMessage() {
14-
return this.message;
15-
}
10+
constructor() {
11+
this.message = 'This is a TypeScript class';
12+
}
13+
getMessage() {
14+
return this.message;
15+
}
1616
}
1717
//:snippet-end:

0 commit comments

Comments
 (0)