Skip to content

Commit

Permalink
FIX linter issues, missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RecuencoJones committed Dec 1, 2022
1 parent 839dca1 commit d89829d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@
"sourceType": "module"
},
"rules": {
"semi": [ "error", "always" ]
}
"semi": [ "error", "always" ],
"no-undef": "error",
"no-unused-vars": "error"
},
"overrides": [
{
"files": [ "src/foreground/**/*" ],
"env": {
"browser": true
},
"globals": {
"api": false
}
},
{
"files": [ "src/background/**/*", "*.config.js" ],
"env": {
"es6": true,
"node": true,
"commonjs": true
}
}
]
}
1 change: 1 addition & 0 deletions src/background/handlers/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { resolve } = require('path');
const { readdir } = require('fs/promises');
const { KubeConfig } = require("@kubernetes/client-node");
const { kubeDir } = require('../constants');

/**
* @param {import('electron').IpcMain} ipc bus
Expand Down
1 change: 1 addition & 0 deletions src/background/handlers/resources.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { getContextForName, loadKubeConfig, apiForResourceType, methodForResourceType, getLogEmitter, stopLogEmitter } = require('../services/kubernetes');
const { logger } = require('../logger');

/**
* @param {import('electron').IpcMain} ipc bus
Expand Down

0 comments on commit d89829d

Please sign in to comment.