Skip to content

Commit 12a60af

Browse files
committed
refactor: update eslint config and fix issues
1 parent 96ad833 commit 12a60af

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
module.exports = {
22
extends: ['@shm-open/eslint-config-bundle'],
33
rules: {
4-
// temp disables - will be removed once we have all js files converted to ts
5-
'@typescript-eslint/no-var-requires': 'off',
6-
'import/no-unused-modules': 'off',
7-
84
'@typescript-eslint/naming-convention': [
95
'error',
106
{

src/core/utils/common.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,7 @@ export function copy(sourceDst: string, targertDst: string) {
113113
return fsextra.copy(sourceDst, targertDst, { overwrite: true });
114114
}
115115

116-
export function move(sourceDst: string, targertDst: string) {
117-
return fsextra.move(sourceDst, targertDst, { overwrite: true });
118-
}
119-
120-
export function deleteFolder(folderPath: string) {
116+
function deleteFolder(folderPath: string) {
121117
return fsextra.remove(folderPath);
122118
}
123119

src/models/deployments.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import _ from 'lodash';
22
import { DataTypes, Model } from 'sequelize';
3+
import { AppError } from '../core/app-error';
34
import { sequelize } from '../core/utils/connections';
45

5-
const { AppError } = require('../core/app-error');
6-
76
interface DeploymentsInterface extends Model {
87
id: number;
98
appid: number;

0 commit comments

Comments
 (0)