old_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Sindre Sorhus
  # Copyright (c) 2015 Sindre Sorhus
  #
  # License: MIT
  #
  
  from SublimeLinter.lint import NodeLinter
  
  
  class XO(NodeLinter):
      npm_name = 'xo'
      cmd = ('xo', '--stdin', '--reporter', 'compact', '--filename', '@')
      regex = (
          r'^.+?: line (?P<line>\d+), col (?P<col>\d+), '
          r'(?:(?P<error>Error)|(?P<warning>Warning)) - '
          r'(?P<message>.+)'
      )
      selectors = {
          'html': 'source.js.embedded.html'
      }
      syntax = (
          'javascript',
          'html',
          'javascriptnext',
          'javascript (babel)',
          'javascript (jsx)',
          'jsx-real'
      )
      version_args = '--version'
      version_re = r'(?P<version>\d+\.\d+\.\d+)'
      version_requirement = '>=0.5.0'
  
new_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Sindre Sorhus
  # Copyright (c) 2015 Sindre Sorhus
  #
  # License: MIT
  #
  
  from SublimeLinter.lint import NodeLinter
  
  
  class XO(NodeLinter):
      npm_name = 'xo'
      cmd = ('xo', '--stdin', '--reporter', 'compact', '--filename', '@')
      regex = (
          r'^.+?: line (?P<line>\d+), col (?P<col>\d+), '
          r'(?:(?P<error>Error)|(?P<warning>Warning)) - '
          r'(?P<message>.+)'
      )
      selectors = {
          'html': 'source.js.embedded.html'
      }
      syntax = (
          'javascript',
          'html',
          'javascriptnext',
          'javascript (babel)',
          'javascript (jsx)',
          'jsx-real'
      )
      defaults = {
          'enable_if_dependency': True,
          'disable_if_not_dependency': True
      }
      version_args = '--version'
      version_re = r'(?P<version>\d+\.\d+\.\d+)'
      version_requirement = '>=0.5.0'
  
subject: Set `disable_if_not_dependency` to avoid linting projects not using XO (#6)