File tree 4 files changed +38
-8
lines changed
4 files changed +38
-8
lines changed Original file line number Diff line number Diff line change 1
- .DS_Store
1
+ node_modules
Original file line number Diff line number Diff line change
1
+ module . exports = function ( grunt ) {
2
+ grunt . initConfig ( {
3
+ lintspaces : {
4
+ all : {
5
+ src : [ '*' ] ,
6
+ options : {
7
+ newline : false ,
8
+ trailingspaces : true ,
9
+ indentation : 'tabs' ,
10
+ spaces : 4
11
+ }
12
+ }
13
+ }
14
+ } ) ;
15
+
16
+ grunt . loadNpmTasks ( 'grunt-lintspaces' ) ;
17
+
18
+ grunt . registerTask ( 'default' , [ 'lintspaces' ] ) ;
19
+ } ;
Original file line number Diff line number Diff line change @@ -171,9 +171,9 @@ ${1:myArray}.forEach(function (${2:elem}) {
171
171
172
172
` ` ` javascript
173
173
for (var ${1 : prop} in ${2 : obj}) {
174
- if (${2 : obj}.hasOwnProperty (${1 : prop})) {
175
- ${0 : // body...}
176
- }
174
+ if (${2 : obj}.hasOwnProperty (${1 : prop})) {
175
+ ${0 : // body...}
176
+ }
177
177
}
178
178
` ` `
179
179
@@ -278,22 +278,22 @@ require('${1:module}');
278
278
279
279
` ` ` javascript
280
280
describe (' ${1:description}' , function () {
281
- ${0 : // body...}
281
+ ${0 : // body...}
282
282
});
283
283
` ` `
284
284
### [ita] it asynchronous
285
285
286
286
` ` ` javascript
287
287
it (' ${1:description}' , function (done ) {
288
- ${0 : // body...}
288
+ ${0 : // body...}
289
289
});
290
290
` ` `
291
291
292
292
### [its] it synchronous
293
293
294
294
` ` ` javascript
295
295
it (' ${1:description}' , function () {
296
- ${0 : // body...}
296
+ ${0 : // body...}
297
297
});
298
298
` ` `
299
299
@@ -319,4 +319,4 @@ Check [Release](https://github.com/zenorocha/sublime-snippets-js/releases) list.
319
319
320
320
## License
321
321
322
- [MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha
322
+ [MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " sublime-snippets-js" ,
3
+ "repository" : {
4
+ "type" : " git" ,
5
+ "url" : " https://github.com/zenorocha/sublime-snippets-js.git"
6
+ },
7
+ "devDependencies" : {
8
+ "grunt" : " 0.4.1" ,
9
+ "grunt-lintspaces" : " 0.2.203"
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments