mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 12:19:10 +02:00
style(eslint): match operator-linebreak preferences
This commit is contained in:
committed by
Julian Lam
parent
89c025d102
commit
ba619c7ec8
@@ -18,10 +18,10 @@ function filterDirectories(directories) {
|
||||
// exclude partials
|
||||
// only include subpaths
|
||||
// exclude category.tpl, group.tpl, category-analytics.tpl
|
||||
return !dir.endsWith('.js')
|
||||
&& !dir.includes('/partials/')
|
||||
&& /\/.*\//.test(dir)
|
||||
&& !/manage\/(category|group|category-analytics)$/.test(dir);
|
||||
return !dir.endsWith('.js') &&
|
||||
!dir.includes('/partials/') &&
|
||||
/\/.*\//.test(dir) &&
|
||||
!/manage\/(category|group|category-analytics)$/.test(dir);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -139,10 +139,10 @@ function initDict(language, callback) {
|
||||
title = '[[admin/menu:general/dashboard]]';
|
||||
} else {
|
||||
title = title.match(/admin\/(.+?)\/(.+?)$/);
|
||||
title = '[[admin/menu:section-'
|
||||
+ (title[1] === 'development' ? 'advanced' : title[1])
|
||||
+ ']]' + (title[2] ? (' > [[admin/menu:'
|
||||
+ title[1] + '/' + title[2] + ']]') : '');
|
||||
title = '[[admin/menu:section-' +
|
||||
(title[1] === 'development' ? 'advanced' : title[1]) +
|
||||
']]' + (title[2] ? (' > [[admin/menu:' +
|
||||
title[1] + '/' + title[2] + ']]') : '');
|
||||
}
|
||||
|
||||
translator.translate(title).then(function (title) {
|
||||
|
||||
Reference in New Issue
Block a user