refactor(gui): update eslint rules

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-19 16:40:49 +05:30
parent fa00be39b8
commit 59f55e4595
249 changed files with 2358 additions and 2353 deletions

View File

@@ -1,10 +1,10 @@
export default class SqlQueryParser {
static getType (query) {
static getType(query) {
query = query.trim().toLowerCase()
return query.split(/\W+/)[0]
}
static getColorForQueryType (queryType) {
static getColorForQueryType(queryType) {
switch (queryType.toLowerCase()) {
case 'select':
return 'success'