How to suppress “{variable} is better written in dot notation.”

后端 未结 3 1072
死守一世寂寞
死守一世寂寞 2021-02-01 00:41

Is there an option to and/or how do I suppress errors like the following?

175,14:[\'tracker\'] is better written in dot notation.

3条回答
  •  失恋的感觉
    2021-02-01 01:11

    I assume you are asking about Dreamweaver or another editor.

    Dreamweaver

    You may go to Edit -> Preferences -> Linting

    Select JS in the dropdown and hit Edit & Apply changes

    Find

     "sub": false,
    

    and change that to true. Save the file and that notice will disappear.

    If you have OTHER Linting things you wish to edit, you can find a helpful list of them all at https://jshint.com/docs/options/

提交回复
热议问题