4.4.22.1.6package.json configuration:
"lint": "./node_modules/.bin/tslint src/**/*.ts test/**/*.ts -e **/*.d.ts"
tslint.json configuration:
"max-line-length": [true, 100],
On a Linux environment (https://travis-ci.org/a8m/ng-pipes/builds/201461345#L775) the following error occurs:
src/boolean/index.ngfactory.d.ts[3, 1]: Exceeds maximum line length of 100
Locally on my windows 10 the tslint script does not produce any errors.
The before mentioned error should not occur because the -e **/*.d.ts part of the script excludes files with extension .d.ts.
index.ngfactory.d.ts exists and on both environments line 3 has a length longer than 100.That might be because your shell expands the glob pattern and doesn't recognise the globstar (**).
If you wrap all patterns in single quotes they will be passed to tslint as is and tslint will do the glob expansion for you (including globstar).
So for your example, try this:
"lint": "./node_modules/.bin/tslint 'src/**/*.ts' 'test/**/*.ts' -e '**/*.d.ts'"
or even simpler:
"lint": "tslint '{src,test}/**/*.ts' -e '**/*.d.ts'"
That is exactly what went wrong, many thanks
Most helpful comment
That might be because your shell expands the glob pattern and doesn't recognise the globstar (**).
If you wrap all patterns in single quotes they will be passed to tslint as is and tslint will do the glob expansion for you (including globstar).
So for your example, try this:
or even simpler: