It took to connect the library Mansonry in js . According to the documentation, you need to create an object. As soon as I insert this code into my project, an error appears in the console:

Masonry is not defined no-undef.

Googling, found a solution. It is necessary to add a comment before creating the object //eslint-disable-next-line I did it. It all worked.

Tell me why and what this comment means?

    1 answer 1

     //eslint-disable-next-line 

    Disable eslint checking of all rules in the next line.

    Masonry is not defined no-undef.

    To avoid this error, add Masonry to the list of allowed global variables: https://eslint.org/docs/user-guide/configuring#specifying-globals