C
C
ch-aqwer2018-02-28 13:10:24
JavaScript
ch-aqwer, 2018-02-28 13:10:24

How to connect eslint with webstorm?

Good afternoon! Please tell me who knows how to set up webstorm so that it works with eslint?
i.e. when I format( ctrl+alt+F ) a piece of code so that it becomes what eslint wants it to be.
For example this code

const Modal = ({
                       invalid,
                       closeModal,
                       handleSubmit,
                       change,
                       reset,
                     }) => {

Eslint wants him to be like this
const Modal = ({
  invalid,
  closeModal,
  handleSubmit,
  change,
  reset,
}) => {

But it doesn't work...
I tried it https://www.themarketingtechnologist.co/how-to-get...
I would be grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2018-02-28
@k12th

Ctrl+Enter on the underlined part andjqkb7c-yhahyzshmmww_t83hyww.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question