We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81bb712 commit 89d15ddCopy full SHA for 89d15dd
src/validations/css/prettycss.js
@@ -71,19 +71,20 @@ const errorMap = {
71
column: previousLine.length - 1,
72
};
73
}
74
- if (/,(?=\s*,)/.test(thisLine)) {
75
- return {
76
- reason: 'extra-commas',
77
- row: lineNumber - 1,
78
- column: errorToken.charNum,
79
- };
80
- }
81
- if (
82
- errorToken.content === ',' &&
83
- errorToken.charNum - 1 !== /,/.exec(thisLine).index &&
84
- endsWith(trim(thisLine), ';')
85
- ) {
86
- return null;
+ if (errorToken.content === ',') {
+ if (/,(?=\s*,)/.test(thisLine)) {
+ return {
+ reason: 'extra-commas',
+ row: lineNumber - 1,
+ column: errorToken.charNum,
+ };
+ }
+ if (
+ errorToken.charNum - 1 !== /,/.exec(thisLine).index &&
+ endsWith(trim(thisLine), ';')
+ ) {
+ return null;
87
88
89
90
0 commit comments