eslint.rb 691 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Eslint < UrlScraper
  3. self.name = 'ESLint'
  4. self.type = 'simple'
  5. self.release = '4.19.0'
  6. self.base_url = 'https://eslint.org/docs/'
  7. self.root_path = 'user-guide/getting-started'
  8. self.links = {
  9. home: 'https://eslint.org/',
  10. code: 'https://github.com/eslint/eslint'
  11. }
  12. html_filters.push 'eslint/entries', 'eslint/clean_html'
  13. options[:skip_patterns] = [/maintainer-guide/]
  14. options[:skip] = %w(about about/ rules)
  15. options[:replace_paths] = { 'user-guide' => 'user-guide/' }
  16. options[:attribution] = <<-HTML
  17. &copy; JS Foundation and other contributors<br>
  18. Licensed under the MIT License.
  19. HTML
  20. end
  21. end