facebook

Codemix+React+Typescript+ESlint validation not working

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #668418 Reply

    enorvaisa
    Participant

    Hello,

    previously we used TSLint validation in our project and it was working normally.
    Recently we moved to ESlint as TSLint is deprecated now and is not working in my environment.
    Same configuration works normally in VSCode editor, but not in Eclipse.

    Validation config seems to be working. For Example if I make some mistake in .eslintrc.js file and start codemix validation I get ESLint error that for example there is unexpected top-level property.
    But I dont see any errors/warnings in .ts or .tsx files.

    Can you help me somehow to make ESLint rules work?

    #668473 Reply

    support-swapna
    Moderator

    Hi,

    Can you please check if the TypeScript language is added for ESLint to validate? By default, JavaScript and JavaScriptReact types validated with ESLint.

    Please go to Window > Preferences > CodeMix > Extensions > ESLint > ESLint Common. Scroll down for the validate box and add typescript to it. Apply the changes and you should now see the TS files being validated using ESLint.

    Hope this helps. Please let us know how this works for you.

    –Swapna
    Genuitec Support

    #668529 Reply

    enorvaisa
    Participant

    Looks like it helped. I added typescript and typescriptreact (looks like typescriptreact is what really helped)

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Codemix+React+Typescript+ESlint validation not working

You must be logged in to post in the forum log in