Disable Unnecessary escape character: \/ no-useless-escape

前端 未结 4 1785
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 15:38

I have this regex of mine that will check the string if it contains link or url (i.e. https://eslint.org/docs/rules/no-useless-escape). Using this regex /(\\b

4条回答
  •  野的像风
    2021-01-31 15:51

    //eslint-disable-next-line
    

    place this above the line of code

    OR

    /*eslint no-undef: 0*/
    

    place this on the first line of the file(or first line of the script tag) this would make eslint disabled on the whole file

提交回复
热议问题