Remove using Webpack import syntax such as: `js-yaml-loader!@/..`. It's a non-standard syntax that couples the code to Webpack. Configure instead by specifying Webpack loader in Vue configuration file. Enable related ESLint rules. Remove unused dependency `raw-loader` and refactor `NoUnintendedInlining` test to load files using file system (dropping webpack dependency). Refactor to use `import type` for type imports to show the indent clearly and satisfy failing ESLint rules.
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
import type { FunctionCallData, FunctionCallParametersData } from '@/application/collections/';
|
|
|
|
export class FunctionCallDataStub implements FunctionCallData {
|
|
public function = 'callDatStubCalleeFunction';
|
|
|
|
public parameters: { [index: string]: string } = { testParameter: 'testArgument' };
|
|
|
|
public withName(functionName: string) {
|
|
this.function = functionName;
|
|
return this;
|
|
}
|
|
|
|
public withParameters(parameters: FunctionCallParametersData) {
|
|
this.parameters = parameters;
|
|
return this;
|
|
}
|
|
}
|