feat: implemented CRUD funnctioality to contractors
This commit is contained in:
@@ -0,0 +1,543 @@
|
||||
{
|
||||
"version": "2.1.0",
|
||||
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"driver": {
|
||||
"name": "ESLint",
|
||||
"informationUri": "https://eslint.org",
|
||||
"version": "8.57.1",
|
||||
"rules": [
|
||||
{
|
||||
"id": "@rushstack/no-new-null",
|
||||
"helpUri": "https://www.npmjs.com/package/@rushstack/eslint-plugin",
|
||||
"properties": {},
|
||||
"shortDescription": {
|
||||
"text": "Prevent usage of JavaScript's \"null\" keyword in new type declarations. To avoid hampering usage of preexisting APIs that require \"null\", the rule ignores declarations that are local variables, private members, or types that are not exported."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no-void",
|
||||
"helpUri": "https://eslint.org/docs/latest/rules/no-void",
|
||||
"properties": {},
|
||||
"shortDescription": {
|
||||
"text": "Disallow `void` operators"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"artifacts": [
|
||||
{
|
||||
"location": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorModal.tsx"
|
||||
}
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"uri": "src/webparts/contractorsList/components/DeleteModal.tsx"
|
||||
}
|
||||
},
|
||||
{
|
||||
"location": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx"
|
||||
}
|
||||
}
|
||||
],
|
||||
"results": [
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 5,
|
||||
"startColumn": 28,
|
||||
"endLine": 5,
|
||||
"endColumn": 32,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 6,
|
||||
"startColumn": 17,
|
||||
"endLine": 6,
|
||||
"endColumn": 21,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 7,
|
||||
"startColumn": 17,
|
||||
"endLine": 7,
|
||||
"endColumn": 21,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 8,
|
||||
"startColumn": 18,
|
||||
"endLine": 8,
|
||||
"endColumn": 22,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 9,
|
||||
"startColumn": 21,
|
||||
"endLine": 9,
|
||||
"endColumn": 25,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 10,
|
||||
"startColumn": 21,
|
||||
"endLine": 10,
|
||||
"endColumn": 25,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 11,
|
||||
"startColumn": 27,
|
||||
"endLine": 11,
|
||||
"endColumn": 31,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/models/IContractor.ts",
|
||||
"index": 0
|
||||
},
|
||||
"region": {
|
||||
"startLine": 12,
|
||||
"startColumn": 19,
|
||||
"endLine": 12,
|
||||
"endColumn": 23,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorModal.tsx",
|
||||
"index": 1
|
||||
},
|
||||
"region": {
|
||||
"startLine": 8,
|
||||
"startColumn": 29,
|
||||
"endLine": 8,
|
||||
"endColumn": 33,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorModal.tsx",
|
||||
"index": 1
|
||||
},
|
||||
"region": {
|
||||
"startLine": 25,
|
||||
"startColumn": 19,
|
||||
"endLine": 25,
|
||||
"endColumn": 23,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/DeleteModal.tsx",
|
||||
"index": 2
|
||||
},
|
||||
"region": {
|
||||
"startLine": 12,
|
||||
"startColumn": 19,
|
||||
"endLine": 12,
|
||||
"endColumn": 23,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Expected 'undefined' and instead saw 'void'."
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/DeleteModal.tsx",
|
||||
"index": 2
|
||||
},
|
||||
"region": {
|
||||
"startLine": 37,
|
||||
"startColumn": 52,
|
||||
"endLine": 37,
|
||||
"endColumn": 78,
|
||||
"snippet": {
|
||||
"text": "void this._handleConfirm()"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "no-void",
|
||||
"ruleIndex": 1
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx",
|
||||
"index": 3
|
||||
},
|
||||
"region": {
|
||||
"startLine": 49,
|
||||
"startColumn": 19,
|
||||
"endLine": 49,
|
||||
"endColumn": 23,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx",
|
||||
"index": 3
|
||||
},
|
||||
"region": {
|
||||
"startLine": 52,
|
||||
"startColumn": 36,
|
||||
"endLine": 52,
|
||||
"endColumn": 40,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Usage of \"null\" is deprecated except when describing legacy APIs; use \"undefined\" instead"
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx",
|
||||
"index": 3
|
||||
},
|
||||
"region": {
|
||||
"startLine": 53,
|
||||
"startColumn": 37,
|
||||
"endLine": 53,
|
||||
"endColumn": 41,
|
||||
"snippet": {
|
||||
"text": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "@rushstack/no-new-null",
|
||||
"ruleIndex": 0
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Expected 'undefined' and instead saw 'void'."
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx",
|
||||
"index": 3
|
||||
},
|
||||
"region": {
|
||||
"startLine": 78,
|
||||
"startColumn": 5,
|
||||
"endLine": 78,
|
||||
"endColumn": 38,
|
||||
"snippet": {
|
||||
"text": "void this._loadContractors(1, \"\")"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "no-void",
|
||||
"ruleIndex": 1
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Expected 'undefined' and instead saw 'void'."
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx",
|
||||
"index": 3
|
||||
},
|
||||
"region": {
|
||||
"startLine": 106,
|
||||
"startColumn": 7,
|
||||
"endLine": 106,
|
||||
"endColumn": 49,
|
||||
"snippet": {
|
||||
"text": "void this._loadContractors(1, searchInput)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "no-void",
|
||||
"ruleIndex": 1
|
||||
},
|
||||
{
|
||||
"level": "warning",
|
||||
"message": {
|
||||
"text": "Expected 'undefined' and instead saw 'void'."
|
||||
},
|
||||
"locations": [
|
||||
{
|
||||
"physicalLocation": {
|
||||
"artifactLocation": {
|
||||
"uri": "src/webparts/contractorsList/components/ContractorsList.tsx",
|
||||
"index": 3
|
||||
},
|
||||
"region": {
|
||||
"startLine": 112,
|
||||
"startColumn": 5,
|
||||
"endLine": 112,
|
||||
"endColumn": 64,
|
||||
"snippet": {
|
||||
"text": "void this._loadContractors(newPage, this.state.searchInput)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"ruleId": "no-void",
|
||||
"ruleIndex": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user