old_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Dan Flettre
  # Copyright (c) 2015 Dan Flettre
  #
  # License: MIT
  #
  
  """This module exports the Standard plugin class."""
  
  from SublimeLinter.lint import NodeLinter
  import re
  
  
  class Standard(NodeLinter):
      """Provides an interface to standard."""
  
      syntax = ('javascript', 'html', 'javascriptnext', 'javascript 6to5', 'javascript (babel)')
      cmd = 'standard --stdin --verbose'
      version_args = '--version'
      version_re = r'(?P<version>\d+\.\d+\.\d+)'
      version_requirement = '>= 3.7.2'
      regex = r'^\s.+:(?P<line>\d+):(?P<col>\d+):(?P<message>.+)'
      selectors = {
          'html': 'source.js.embedded.html'
      }
  
      html_pattern = re.compile(r'(^.*\n)\s+$', re.DOTALL)
  
      npm_name = 'standard'
      defaults = {
          'enable_if_dependency': True,
          'disable_if_not_dependency': False
      }
  
      def run(self, cmd, code):
          """
          If HTML syntax and the last line is just whitespace then remove it.
  
          Its probably just space before closing.
          script tag
          """
          if code and self.syntax == 'html':
              match = self.html_pattern.match(code)
              if match:
                  code = match.group(1)
          return super(Standard, self).run(cmd, code)
  
new_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Dan Flettre
  # Copyright (c) 2015 Dan Flettre
  #
  # License: MIT
  #
  
  """This module exports the Standard plugin class."""
  
  from SublimeLinter.lint import NodeLinter
  
  
  class Standard(NodeLinter):
      """Provides an interface to standard."""
  
      cmd = 'standard --stdin --verbose'
      name = 'Standard'
      regex = r'^\s.+:(?P<line>\d+):(?P<col>\d+):(?P<message>.+)'
  
      defaults = {
          'enable_if_dependency': True,
          'disable_if_not_dependency': False,
          'selector': 'source.js, source.jsx'
      }
  
subject: adjust linter plugin to match sublime linter v4