eslint.rb 627 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Eslint < UrlScraper
  3. self.name = 'ESLint'
  4. self.type = 'simple'
  5. self.release = '4.18.1'
  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[:attribution] = <<-HTML
  16. &copy; JS Foundation and other contributors<br>
  17. Licensed under the MIT License.
  18. HTML
  19. end
  20. end