CSSLint: start ignoring from the comment's line number
This commit is contained in:
parent
113547b917
commit
27b3d3a834
|
@ -231,7 +231,7 @@ var CSSLint = (() => {
|
||||||
|
|
||||||
/* csslint ignore:start */
|
/* csslint ignore:start */
|
||||||
// the chunk of code where errors won't be reported
|
// the chunk of code where errors won't be reported
|
||||||
// the chunk's start is hardwired to the next line after the opening comment
|
// the chunk's start is hardwired to the line of the opening comment
|
||||||
// the chunk's end is hardwired to the line of the closing comment
|
// the chunk's end is hardwired to the line of the closing comment
|
||||||
/* csslint ignore:end */
|
/* csslint ignore:end */
|
||||||
|
|
||||||
|
@ -288,9 +288,7 @@ var CSSLint = (() => {
|
||||||
|
|
||||||
case 'ignore':
|
case 'ignore':
|
||||||
if (ovr.includes('start')) {
|
if (ovr.includes('start')) {
|
||||||
if (ignoreStart === null) {
|
ignoreStart = ignoreStart || lineno;
|
||||||
ignoreStart = lineno + 1;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ovr.includes('end')) {
|
if (ovr.includes('end')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user