src/index.ts
PWSDK
has 28 functions (exceeds 20 allowed). Consider refactoring. Wontfix
Wontfix
export default class PWSDK {
public static init() {
const parentOrigin = getParameterByName('origin');
const instanceId = getParameterByName('instanceId');
const options: ISdkInitOptions = {
- Create a ticketCreate a ticket
File index.ts
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { version } from '../package.json';
import {
createEntityDataGenerator,
logActivityDataGenerator,
relateEntityDataGenerator,
- Create a ticketCreate a ticket
Array type using 'Array<t>' is forbidden. Use 'T[]' instead.</t> Open
Open
private deferredQueues: { [name: string]: Array<Deferred<IMessageData>> } = {};
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Rule: array-type
Requires using either 'T[]' or 'Array<t>' for arrays.</t>
Notes
- TypeScript Only
- Has Fix
Config
One of the following arguments must be provided:
-
"array"
enforces use ofT[]
for all types T. -
"generic"
enforces use ofArray<T>
for all types T. -
"array-simple"
enforces use ofT[]
ifT
is a simple type (primitive or type reference).
Examples
"array-type": true,array
"array-type": true,generic
"array-type": true,array-simple
Schema
{
"type": "string",
"enum": [
"array",
"generic",
"array-simple"
]
}
For more information see this page.
Array type using 'Array<t>' is forbidden. Use 'T[]' instead.</t> Open
Open
private events: { [name: string]: Array<() => any> } = {};
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Rule: array-type
Requires using either 'T[]' or 'Array<t>' for arrays.</t>
Notes
- TypeScript Only
- Has Fix
Config
One of the following arguments must be provided:
-
"array"
enforces use ofT[]
for all types T. -
"generic"
enforces use ofArray<T>
for all types T. -
"array-simple"
enforces use ofT[]
ifT
is a simple type (primitive or type reference).
Examples
"array-type": true,array
"array-type": true,generic
"array-type": true,array-simple
Schema
{
"type": "string",
"enum": [
"array",
"generic",
"array-simple"
]
}
For more information see this page.