Permalink
Browse files

Fix mixed tabs and spaces and automate the process to discover it

  • Loading branch information...
zenorocha committed Nov 9, 2013
1 parent 0c2d6a7 commit d46a7d41898f32cbb9a6bd94b2155174ee17a30c
Showing with 38 additions and 8 deletions.
  1. +1 −1 .gitignore
  2. +19 −0 Gruntfile.js
  3. +7 −7 README.md
  4. +11 −0 package.json
View
@@ -1 +1 @@
.DS_Store
node_modules
View
@@ -0,0 +1,19 @@
module.exports = function(grunt) {
grunt.initConfig({
lintspaces: {
all: {
src: ['*'],
options: {
newline: false,
trailingspaces: true,
indentation: 'tabs',
spaces: 4
}
}
}
});
grunt.loadNpmTasks('grunt-lintspaces');
grunt.registerTask('default', ['lintspaces']);
};
View
@@ -171,9 +171,9 @@ ${1:myArray}.forEach(function (${2:elem}) {
```javascript
for (var ${1:prop} in ${2:obj}) {
if (${2:obj}.hasOwnProperty(${1:prop})) {
${0:// body...}
}
if (${2:obj}.hasOwnProperty(${1:prop})) {
${0:// body...}
}
}
```
@@ -278,22 +278,22 @@ require('${1:module}');
```javascript
describe('${1:description}', function () {
${0:// body...}
${0:// body...}
});
```
### [ita] it asynchronous
```javascript
it('${1:description}', function (done) {
${0:// body...}
${0:// body...}
});
```
### [its] it synchronous
```javascript
it('${1:description}', function () {
${0:// body...}
${0:// body...}
});
```
@@ -319,4 +319,4 @@ Check [Release](https://github.com/zenorocha/sublime-snippets-js/releases) list.
## License
[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha
[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha
View
@@ -0,0 +1,11 @@
{
"name": "sublime-snippets-js",
"repository": {
"type": "git",
"url": "https://github.com/zenorocha/sublime-snippets-js.git"
},
"devDependencies": {
"grunt": "0.4.1",
"grunt-lintspaces": "0.2.203"
}
}

0 comments on commit d46a7d4

Please sign in to comment.