Add eslint-plugin-sonarjs (#20431)
We had this plugin before but it was removed as it became outdated, now it was updated again, so it's compatible again. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
3df33799c1
commit
bc17cba835
5 changed files with 58 additions and 4 deletions
|
@ -64,7 +64,7 @@ export function parseIssueHref(href) {
|
|||
export function strSubMatch(full, sub) {
|
||||
const res = [''];
|
||||
let i = 0, j = 0;
|
||||
for (; i < sub.length && j < full.length;) {
|
||||
while (i < sub.length && j < full.length) {
|
||||
while (j < full.length) {
|
||||
if (sub[i] === full[j]) {
|
||||
if (res.length % 2 !== 0) res.push('');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue