Skip to content

Commit

Permalink
fixing eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarbjorntvedt committed Dec 24, 2023
1 parent e6d37bd commit 8a91cb5
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 12 deletions.
4 changes: 1 addition & 3 deletions src/BankAccountValidation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import * as types from './types'
import defaultsDeep = require('lodash.defaultsdeep')
import defaultConfig from './defaultConfig'
import {AcceptanceType, IValidation, ValidationInput, ValidationsResult} from "./types"
import {AcceptanceType, IValidation, ValidationInput, ValidationsResult, IStrictValidation, ValidationResult} from "./types"
import {standarizeInput} from "./util/standarizeInput"
import {ValidationResult} from "./types"
import {IStrictValidation} from "./types"

class StrictValidationWrapper implements IValidation{
_strictValidation: types.IStrictValidation
Expand Down
3 changes: 0 additions & 3 deletions src/validators/AcceptValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import {IValidation, ValidationResult} from "../types"

export class AcceptValidation implements IValidation {

constructor() {
}

canValidate(): Boolean {
return true
}
Expand Down
3 changes: 1 addition & 2 deletions src/validators/IbanValidation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import defaultsDeep = require('lodash.defaultsdeep')
import * as types from "../types"
import {IStrictValidation, ValidationInput} from "../types"
import {IStrictValidation, ValidationInput, ValidationResult} from "../types"
import defaultConfig from "../defaultConfig"
import {standarizeInput} from "../util/standarizeInput"
import * as ibantools from "ibantools"
import {ValidationResult} from "../types"

export class IbanValidation implements IStrictValidation {
_config: types.BankAccountValidationConfig
Expand Down
3 changes: 0 additions & 3 deletions src/validators/RejectValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import {IValidation, ValidationResult} from "../types"

export class RejectValidation implements IValidation {

constructor() {
}

canValidate(): Boolean {
return true
}
Expand Down
3 changes: 2 additions & 1 deletion tool/generateAccountNumbers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const {calculate, calculateNext} = require('./helpers')
/* eslint-disable */
const {calculateNext} = require('./helpers')

for (let i=0; i<100; i++){
calculateNext('NO', '999999'+('0000' + i).substr(-2)+'000', 'bban',2)
Expand Down
1 change: 1 addition & 0 deletions tool/helpers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
const {createValidationWithAllAvailableValidators} = require('../dist/src/index')
let bankAccountValidation = createValidationWithAllAvailableValidators({})

Expand Down
1 change: 1 addition & 0 deletions tool/testValidate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
const {calculate, calculateNext} = require('./helpers')

calculate('EG', 'EG250010005400000100026173878', 'iban')
Expand Down

0 comments on commit 8a91cb5

Please sign in to comment.