Description
What code were you trying to parse?
https://github.com/pelepelin/ts-eslint-bug
This is a stripped copy of a real project. There are only 2 files in src. And there are 2 override blocks in .eslintrc.js.
What did you expect to happen?
When running npm run lint
, the file https://github.com/pelepelin/ts-eslint-bug/blob/master/src/__tests__/e2e/utilities/helpers/BuggyClass.ts matches second override https://github.com/pelepelin/ts-eslint-bug/blob/f534c589d55ba09945c8b72609b2f22aaab98788/.eslintrc.js#L32 which has 'completed-docs': false
and so it should pass lint.
What actually happened?
When running npm run lint
on Linux, the file passes lint, but on Windows it prints
ts-eslint-bug\src\__tests__\e2e\utilities\helpers\BuggyClass.ts
1:1 error Documentation must exist for exported classes. (tslint:completed-docs) @typescript-eslint/tslint/config
✖ 1 problem (1 error, 0 warnings)
When running npm run lint:ref
which applies lint on another level of directories, lint passes both on Linux and Windows.
If the file src/index.ts
is removed, npm run lint
passes both on Linux and Windows.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin-tslint |
2.22.0 |
@typescript-eslint/parser |
2.22.0 |
TypeScript |
3.7.4 |
ESLint |
6.6.0 |
node |
Windows 12.13.1 , Linux 12.14.0 |
npm |
Windows 6.12.1 , Linux 6.13.7 |