Skip to content

Site.js default layout script's code is not compliant with eslint #840

Description

@yamgent

Tell us about your environment

  • MarkBind Version: 2.2.0

What did you do? Please include the actual source code causing the issue.

markbind/src/Site.js

Lines 170 to 172 in cf57489

const LAYOUT_SCRIPTS_DEFAULT = 'MarkBind.afterSetup(() => {\n'
+ ' // Include code to be called after MarkBind setup here.\n'
+ '});\n';

The default content needs a // eslint-disable-next-line no-undef. In other words, it should be like this:

 const LAYOUT_SCRIPTS_DEFAULT = '// eslint-disable-next-line no-undef\n'
   + 'MarkBind.afterSetup(() => {\n' 
   + '  // Include code to be called after MarkBind setup here.\n' 
   + '});\n'; 

Otherwise, projects that uses eslint (such as MarkBind) will complain about a no-undef error.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions