@@ -16,7 +16,6 @@ import type { Json } from "@repo/database/dbTypes";
1616 */
1717const getNodeExtraData = (
1818 file : TFile ,
19- /* eslint-disable @typescript-eslint/naming-convention */
2019 author_id : number ,
2120) : {
2221 author_id : number ;
@@ -28,7 +27,6 @@ const getNodeExtraData = (
2827 created : new Date ( file . stat . ctime ) . toISOString ( ) ,
2928 last_modified : new Date ( file . stat . mtime ) . toISOString ( ) ,
3029 } ;
31- /* eslint-enable @typescript-eslint/naming-convention */
3230} ;
3331
3432export const discourseNodeSchemaToLocalConcept = ( {
@@ -50,7 +48,6 @@ export const discourseNodeSchemaToLocalConcept = ({
5048 importedFromRid,
5149 ...otherData
5250 } = node ;
53- /* eslint-disable @typescript-eslint/naming-convention */
5451 const literal_content : Record < string , Json > = {
5552 label : name ,
5653 source_data : otherData ,
@@ -68,7 +65,6 @@ export const discourseNodeSchemaToLocalConcept = ({
6865 last_modified : new Date ( modified ) . toISOString ( ) ,
6966 description : description ,
7067 literal_content,
71- /* eslint-enable @typescript-eslint/naming-convention */
7268 } ;
7369} ;
7470
@@ -89,18 +85,15 @@ export const discourseRelationTypeToLocalConcept = (
8985 status, //destructuring status to not upload it to the database
9086 ...otherData
9187 } = relationType ;
92- // eslint-disable-next-line @typescript-eslint/naming-convention
9388 const literal_content : Record < string , Json > = {
9489 roles : STANDARD_ROLES ,
9590 label,
9691 complement,
97- // eslint-disable-next-line @typescript-eslint/naming-convention
9892 source_data : otherData ,
9993 } ;
10094 if ( importedFromRid ) literal_content . importedFromRid = importedFromRid ;
10195
10296 return {
103- /* eslint-disable @typescript-eslint/naming-convention */
10497 space_id : context . spaceId ,
10598 name : label ,
10699 source_local_id : id ,
@@ -109,7 +102,6 @@ export const discourseRelationTypeToLocalConcept = (
109102 created : new Date ( created ) . toISOString ( ) ,
110103 last_modified : new Date ( modified ) . toISOString ( ) ,
111104 literal_content,
112- /* eslint-enable @typescript-eslint/naming-convention */
113105 } ;
114106} ;
115107
@@ -138,7 +130,6 @@ export const discourseRelationTripleSchemaToLocalConcept = ({
138130 const relationType = relationTypesById [ relationshipTypeId ] ;
139131 if ( ! relationType ) return null ;
140132 const { label, complement } = relationType ;
141- // eslint-disable-next-line @typescript-eslint/naming-convention
142133 const literal_content : Record < string , Json > = {
143134 roles : STANDARD_ROLES ,
144135 label,
@@ -147,7 +138,6 @@ export const discourseRelationTripleSchemaToLocalConcept = ({
147138 if ( importedFromRid ) literal_content . importedFromRid = importedFromRid ;
148139
149140 return {
150- /* eslint-disable @typescript-eslint/naming-convention */
151141 space_id : context . spaceId ,
152142 name : `${ sourceName } -${ label } -> ${ destinationName } ` ,
153143 source_local_id : id ,
@@ -161,7 +151,6 @@ export const discourseRelationTripleSchemaToLocalConcept = ({
161151 source : sourceId ,
162152 destination : destinationId ,
163153 } ,
164- /* eslint-enable @typescript-eslint/naming-convention */
165154 } ;
166155} ;
167156
@@ -175,23 +164,19 @@ export const discourseNodeInstanceToLocalConcept = (
175164 const extraData = getNodeExtraData ( nodeData . file , context . userId ) ;
176165 const { nodeInstanceId, nodeTypeId, importedFromRid, ...otherData } =
177166 nodeData . frontmatter ;
178- // eslint-disable-next-line @typescript-eslint/naming-convention
179167 const literal_content : Record < string , Json > = {
180168 label : nodeData . file . basename ,
181- // eslint-disable-next-line @typescript-eslint/naming-convention
182169 source_data : otherData as unknown as Json ,
183170 } ;
184171 if ( importedFromRid && typeof importedFromRid === "string" )
185172 literal_content . importedFromRid = importedFromRid ;
186173 return {
187- /* eslint-disable @typescript-eslint/naming-convention */
188174 space_id : context . spaceId ,
189175 name : nodeData . file . path ,
190176 source_local_id : nodeInstanceId as string ,
191177 schema_represented_by_local_id : nodeTypeId as string ,
192178 is_schema : false ,
193179 literal_content,
194- /* eslint-enable @typescript-eslint/naming-convention */
195180 ...extraData ,
196181 } ;
197182} ;
@@ -222,7 +207,6 @@ export const relationInstanceToLocalConcept = ({
222207 return null ;
223208 }
224209
225- /* eslint-disable @typescript-eslint/naming-convention */
226210 const literal_content : Record < string , Json > = { } ;
227211 if ( importedFromRid ) literal_content . importedFromRid = importedFromRid ;
228212 return {
@@ -243,7 +227,6 @@ export const relationInstanceToLocalConcept = ({
243227 ( destinationNode . frontmatter . importedFromRid as string | undefined ) ??
244228 destination ,
245229 } ,
246- /* eslint-enable @typescript-eslint/naming-convention */
247230 } ;
248231} ;
249232
0 commit comments