mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
627 B
24 lines
627 B
module Docs
|
|
class Eslint < UrlScraper
|
|
self.name = 'ESLint'
|
|
self.type = 'simple'
|
|
self.release = '4.15.0'
|
|
self.base_url = 'https://eslint.org/docs/'
|
|
self.root_path = 'user-guide/getting-started'
|
|
self.links = {
|
|
home: 'https://eslint.org/',
|
|
code: 'https://github.com/eslint/eslint'
|
|
}
|
|
|
|
html_filters.push 'eslint/entries', 'eslint/clean_html'
|
|
|
|
options[:skip_patterns] = [/maintainer-guide/]
|
|
options[:skip] = %w(about about/ rules)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© JS Foundation and other contributors<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|