Closed m-v-novikov closed 5 years ago
@megamysterion it looks like the crash is happening within tslint-webpack-plugin
. Does this issue happen if you lint with the tslint
command on your terminal?
Sorry, I can't check. Maybe you right.
` sudo yarn global add tslint typescript [sudo] пароль для mvnovikov: yarn global v1.6.0 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... warning Your current version of Yarn is out of date. The latest version is "1.13.0", while you're on "1.6.0". info To upgrade, run the following command: $ sudo apt-get update && sudo apt-get install yarn success Installed "tslint@5.13.0" with binaries:
folder$ tslint -c tslint.json No files specified. Use --project to lint a project folder. folder$ tslint 'src/*/.ts?(x)' folder$ tslint 'src/js///*.ts?(x)' folder$ ls create_users helpers index.html jest.config.json package.json README.md src tslint.json webpack.config.js gruntfile.js icons.font.js jest.config.js node_modules package-lock.json server tsconfig.json webApp
folder$ tslint -c tslint.json 'src/js///*.ts'
` I install tslint globally, and it is don't do anything.
@megamysterion it looks like you might not be including any files in your tslint
command; try this one?
tslint -c tslint.json src/**/*.tsx
At any rate, since this looks like it isn't a problem with TSLint itself, closing this issue as external. You might want to file a bug on tslint-webpack-plugin.
If you're having problems running the globally installed tslint, feel free to ping me on Gitter!
Bug Report
"tslint": "^5.12.1", "tslint-webpack-plugin": "^2.0.2", "typescript": "^3.3.3", "webpack": "^4.19.0",
TypeScript code being linted
Actual behavior
I assume, when errors too much(like in example data - no whitespaces between items in the array), linter task crashes with an error: SyntaxError: Unexpected end of JSON input.
Expected behavior
Maybe don't crash task, and show first max counts messages(and ignore others, not show them when them too much)