0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-26 06:28:40 +00:00

lint client

This commit is contained in:
Víctor Losada Hernández
2026-05-18 16:21:57 +02:00
parent 4a565b929b
commit 15db3c9f66
3 changed files with 30 additions and 33 deletions
@@ -30,18 +30,17 @@ import cm5Themes from 'codemirror-5-themes';
const themes = { default: defaultCM5Theme, ...cm5Themes, darkbrewery };
const themeNames = Object.entries(themes)
.filter(([name, value]) =>
Array.isArray(value) &&
.filter(([name, value])=>Array.isArray(value) &&
!name.endsWith('Init') &&
!name.endsWith('Style')
)
.map(([name]) => name);
.map(([name])=>name);
const EditorThemes = [
'default',
...themeNames
.filter(name => name !== 'default')
.sort((a, b) => a.localeCompare(b))
'default',
...themeNames
.filter((name)=>name !== 'default')
.sort((a, b)=>a.localeCompare(b))
];
const execute = function(val, props){