diff --git a/src/BankAccountValidation.ts b/src/BankAccountValidation.ts index 3d9cf88..ccdf509 100644 --- a/src/BankAccountValidation.ts +++ b/src/BankAccountValidation.ts @@ -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 diff --git a/src/validators/AcceptValidation.ts b/src/validators/AcceptValidation.ts index 8424dd4..a7153f6 100644 --- a/src/validators/AcceptValidation.ts +++ b/src/validators/AcceptValidation.ts @@ -2,9 +2,6 @@ import {IValidation, ValidationResult} from "../types" export class AcceptValidation implements IValidation { - constructor() { - } - canValidate(): Boolean { return true } diff --git a/src/validators/IbanValidation.ts b/src/validators/IbanValidation.ts index 6372e80..1488258 100644 --- a/src/validators/IbanValidation.ts +++ b/src/validators/IbanValidation.ts @@ -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 diff --git a/src/validators/RejectValidation.ts b/src/validators/RejectValidation.ts index 1b02829..95c4303 100644 --- a/src/validators/RejectValidation.ts +++ b/src/validators/RejectValidation.ts @@ -2,9 +2,6 @@ import {IValidation, ValidationResult} from "../types" export class RejectValidation implements IValidation { - constructor() { - } - canValidate(): Boolean { return true } diff --git a/tool/generateAccountNumbers.js b/tool/generateAccountNumbers.js index c6330c4..2b983bb 100644 --- a/tool/generateAccountNumbers.js +++ b/tool/generateAccountNumbers.js @@ -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) diff --git a/tool/helpers.js b/tool/helpers.js index 5fc7f8e..8d7df1a 100644 --- a/tool/helpers.js +++ b/tool/helpers.js @@ -1,3 +1,4 @@ +/* eslint-disable */ const {createValidationWithAllAvailableValidators} = require('../dist/src/index') let bankAccountValidation = createValidationWithAllAvailableValidators({}) diff --git a/tool/testValidate.js b/tool/testValidate.js index 4539dc2..52ffc3f 100644 --- a/tool/testValidate.js +++ b/tool/testValidate.js @@ -1,3 +1,4 @@ +/* eslint-disable */ const {calculate, calculateNext} = require('./helpers') calculate('EG', 'EG250010005400000100026173878', 'iban')