DEV Community

Discussion on: How to set up ESLint with StandardJS for a new React Native/TypeScript project

Collapse
 
cseelus profile image
Chrıs Seelus

@risafj Thanks for your reply. I tried both approches, and they didn't work, so I checked out your referenced repo (github.com/risafj/StorybookExample...), to see if the problem was with my project.

With or without both changes from your comment, same as before:

Linting errors are shown, but StandardJS stuff (like extra semicolons, double quotes, …) is not getting linted (VSCode, NeoVim) unfortunately.

VSCode

Thread Thread
 
risafj profile image
Risa Fujii

Sorry for the late response - I checked, and semicolons are linted in my environment 😞 So I don't know what the issue could be. I use VSCode and lint on save with the config below:

  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
risafj profile image
Risa Fujii

@Chrıs Seelus

Hi, it's been a few months but I realized that now you need to add the below in your ESLint rules to disable semicolons!

    semi: ['error', 'never'],
Enter fullscreen mode Exit fullscreen mode