浏览代码

Update ESLint documentation (8.10.0)

Simon Legner 3 年之前
父节点
当前提交
bc92b0c409
共有 2 个文件被更改,包括 1 次插入6 次删除
  1. 0 5
      lib/docs/filters/eslint/entries.rb
  2. 1 1
      lib/docs/scrapers/eslint.rb

+ 0 - 5
lib/docs/filters/eslint/entries.rb

@@ -3,11 +3,6 @@ module Docs
     class EntriesFilter < Docs::EntriesFilter
       def get_name
         name = at_css('h1').content.strip
-
-        if subpath.start_with?('rules/') && subpath != 'rules/'
-          name = name[/\(([\w\-]+?)\)\z/, 1] || name[/\A([\w\-]+?):/, 1]
-        end
-
         name
       end
 

+ 1 - 1
lib/docs/scrapers/eslint.rb

@@ -2,7 +2,7 @@ module Docs
   class Eslint < UrlScraper
     self.name = 'ESLint'
     self.type = 'simple'
-    self.release = '8.7.0'
+    self.release = '8.10.0'
     self.base_url = 'https://eslint.org/docs/'
     self.root_path = 'user-guide/getting-started'
     self.links = {