@@ -2,9 +2,9 @@ module Docs
22 class Eslint < UrlScraper
33 self . name = 'ESLint'
44 self . type = 'simple'
5- self . release = '8.56 .0'
5+ self . release = '9.15 .0'
66 self . base_url = 'https://eslint.org/docs/latest/'
7- self . root_path = 'user-guide/getting-started '
7+ self . root_path = '/ '
88 self . links = {
99 home : 'https://eslint.org/' ,
1010 code : 'https://github.com/eslint/eslint'
@@ -14,7 +14,22 @@ class Eslint < UrlScraper
1414
1515 options [ :skip_patterns ] = [ /maintain/ , /migrating/ , /migrate/ , /\A versions/ , /rule-deprecation/ ]
1616 options [ :skip ] = %w( about about/ versions )
17- options [ :replace_paths ] = { 'user-guide' => 'user-guide/' }
17+ # A number of paths have a trailing slash, causing them to be suffixed by "index" during the NormalizePathsFilter
18+ options [ :replace_paths ] = {
19+ 'configure/' => 'configure' ,
20+ 'contribute/' => 'contribute' ,
21+ 'contribute/architecture/' => 'contribute/architecture' ,
22+ 'extend/' => 'extend' ,
23+ 'flags/' => 'flags' ,
24+ 'integrate/' => 'integrate' ,
25+ 'rules/' => 'rules' ,
26+ 'use/' => 'use' ,
27+ 'use/formatters/' => 'use/formatters' ,
28+ 'use/configure/' => 'use/configure' ,
29+ 'use/configure/rules/' => 'use/configure/rules' ,
30+ 'use/core-concepts/' => 'use/core-concepts' ,
31+ 'use/troubleshooting/' => 'use/troubleshooting' ,
32+ }
1833
1934 options [ :attribution ] = <<-HTML
2035 © OpenJS Foundation and other contributors< br >
0 commit comments