nodeca / eslint-plugin-nodeca

Indentation check rule for ESLint
MIT License
13 stars 2 forks source link

Nodeca throwing error when code is definitely correct.... #3

Open mikeerickson opened 8 years ago

mikeerickson commented 8 years ago

I have a simple gulp tasks which is throwing an error

import gulp   from 'gulp'
import msg    from 'gulp-messenger'
import run    from 'run-sequence'

msg.init({showPipeFile: false})

gulp.task('build', () => {
  run('clean:dist', 'babelify')
})

It is complaining the line where run is called is not indented with a single tab, when in fact is definitely is

8:3 warning Expected indentation of 1 tab character but found 0 indent 8:3 error Bad indentation (0 instead 1) nodeca/indent

So, to help matters, tried disabling the rules for this file but thinking this should still not throw errors

I have retyped this code several times to make sure it is accurate, still throws errors

puzrin commented 8 years ago

Looks correct. Could you create a test repo to easy reproduce?

Also, i'd recomment migrate to native indent rule in eslint 2.0+. At least, try it.