Hi all
I try to run ESlint for Typescript files in TypeScript mode. However, I get no result, and I can't find the reason (SlickEdit Pro 2021, v26.0.0.6, Project Type: Other, Language: .tsx TypeScript).
Live Error Profile configuration (Document > TypeScript Options > Live Error Profiles).
Program: /usr/local/bin/eslint
Command line: -f compact "%f"
Run from dir: %rw
I developed a custom regular expression for error parsing to ensure the error messages are understandable for SlickEdit:
^{#0:p}\:\s\bline\s{#1:i},\s\bcol\s{#2:i},\s{#3?+}$
The error messages looking like this:
/Users/theUser/Projects/node/src/server/components/HTML.tsx: line 8, col 1, Error - Delete `··` (prettier/prettier)
/Users/theUser/Projects/node/src/server/components/HTML.tsx: line 11, col 14, Warning - Missing return type on function. (@typescript-eslint/explicit-module-boundary-types)
/Users/theUser/Projects/node/src/server/components/HTML.tsx: line 11, col 16, Error - Replace `âŽÂ·Â·Â·Â·children,âŽÂ·Â·Â·Â·css·=·[],âŽÂ·Â·Â·Â·scripts·=·[],âŽÂ·Â·Â·Â·state·=·'{}',âŽÂ·Â·Â·Â·helmetContext:·{·helmet·},âŽ` with `·children,·css·=·[],·scripts·=·[],·state·=·'{}',·helmetContext:·{·helmet·}·` (prettier/prettier)
/Users/theUser/Projects/node/src/server/components/HTML.tsx: line 18, col 1, Error - Replace `····` with `··` (prettier/prettier)
I tested my custom regular expression in SlickEdit's "Regex Evaluator," and it looks good. Next, I added the Regex to Build > Configure Error Parsing in the section "User" and ran the validation. With the error messages above, I got four validated results:
Matched expression on line #1
Filename: /Users/theUser/Projects/node/src/server/components/HTML.tsx
Line #: 8
Column: 1
Message: Error - Delete `··` (prettier/prettier)
Finally, I disabled all expressions except the "User" category and restarted SlickEdit.
However, SlickEdit won't show me any message for my *.tsx-files. The Message List pane is always empty – but I see ESLint-errors when I run ESLint in the terminal. What did I do wrong?
Thank you very much for some helpful hints.