File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = parse
5
5
var dot = '.' . charCodeAt ( 0 )
6
6
var hash = '#' . charCodeAt ( 0 )
7
7
8
- /* Parse a simple CSS selector into a HAST node. */
8
+ // Create a hast element from a simple CSS selector.
9
9
function parse ( selector , defaultTagName ) {
10
10
var value = selector || ''
11
11
var name = defaultTagName || 'div'
@@ -26,6 +26,7 @@ function parse(selector, defaultTagName) {
26
26
27
27
if ( subvalue ) {
28
28
if ( type === dot ) {
29
+ // eslint-disable-next-line max-depth
29
30
if ( className ) {
30
31
className . push ( subvalue )
31
32
} else {
Original file line number Diff line number Diff line change 51
51
"xo" : {
52
52
"prettier" : true ,
53
53
"esnext" : false ,
54
- "rules" : {
55
- "max-depth" : " off"
56
- },
57
54
"ignores" : [
58
55
" hast-util-parse-selector.js"
59
56
]
You can’t perform that action at this time.
0 commit comments