old_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Anton Lavrenov
  # Copyright (c) 2014 Anton Lavrenov
  #
  # License: MIT
  #
  
  """This module exports the Tslint plugin class."""
  
  from SublimeLinter.lint import NodeLinter, util
  
  
  class Tslint(NodeLinter):
  
      """Provides an interface to tslint."""
  
      syntax = ('typescript', 'typescriptreact')
      cmd = ('tslint', '@')
      npm_name = 'tslint'
      regex = (
          r'^.+?\[(?P<line>\d+), (?P<col>\d+)\]: '
          r'(?P<message>.+)'
      )
      error_stream = util.STREAM_BOTH
      config_file = ('--config', 'tslint.json', '~')
      tempfile_suffix = {'typescript': 'ts', 'typescriptreact': 'tsx'}
      version_args = '--version'
      version_requirement = '>= 0.4.0'
      version_re = r'(?P<version>\d+\.\d+\.\d+)'
  
      def build_args(self, settings=None):
          """Override build_args to allow setting a custom config filename."""
          backup = self.config_file
          if 'config_filename' in settings and self.filename:
              self.config_file = self.config_file[:1] + (settings['config_filename'],) + self.config_file[2:]
  
          out = super().build_args(settings)
  
          # Reset the value of config_file so that this can apply per-project.
          self.config_file = backup
  
          return out
  
new_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Anton Lavrenov
  # Copyright (c) 2014 Anton Lavrenov
  #
  # License: MIT
  #
  
  """This module exports the Tslint plugin class."""
  
  from SublimeLinter.lint import NodeLinter, util
  
  
  class Tslint(NodeLinter):
      """Provides an interface to tslint."""
  
      syntax = ('typescript', 'typescriptreact')
      cmd = ('tslint', '@')
      npm_name = 'tslint'
      regex = (
          r'^.+?\[(?P<line>\d+), (?P<col>\d+)\]: '
          r'(?P<message>.+)'
      )
      error_stream = util.STREAM_BOTH
      config_file = ('--config', 'tslint.json', '~')
      tempfile_suffix = {'typescript': 'ts', 'typescriptreact': 'tsx'}
      version_args = '--version'
      version_requirement = '>= 0.4.0'
      version_re = r'(?P<version>\d+\.\d+\.\d+)'
  
      def build_args(self, settings=None):
          """Override build_args to allow setting a custom config filename."""
          backup = self.config_file
          if 'config_filename' in settings and self.filename:
              self.config_file = self.config_file[:1] + (settings['config_filename'],) + self.config_file[2:]
  
          out = super().build_args(settings)
  
          # Reset the value of config_file so that this can apply per-project.
          self.config_file = backup
  
          return out
  
subject: Remove empty line before docstring