Skip to content

Commit

Permalink
Lint/ cleanup (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
daogrady authored Nov 21, 2024
1 parent f5523e3 commit 30e777d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const addCLIParamsToConfig = params => {
}
}

// when changing/ adding anything in here, make sure to adjust scripts/write-cds-typer-schema.js accordingly!
const flags = enrichFlagSchema({
outputDirectory: {
desc: 'Root directory to write the generated files to.',
Expand Down
1 change: 0 additions & 1 deletion lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const { proxyAccessFunction } = require('./components/javascript')
const { createObjectOf, stringIdent } = require('./printers/wrappers')
const { configuration } = require('./config')
const { CJSPrinter, ESMPrinter } = require('./printers/javascript')
const { getProjectTargetType } = require('./util')

const AUTO_GEN_NOTE = '// This is an automatically generated file. Please do not change its contents manually!'

Expand Down
2 changes: 1 addition & 1 deletion lib/printers/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class JavaScriptPrinter {
/**
* @abstract
* @param {string} alias - what the import should be known as within the importing file
* @param {string} from - the package/ location to import from
* @param {string} from - the package/ location to import from
* @returns {string}
*/
// eslint-disable-next-line no-unused-vars
Expand Down
2 changes: 1 addition & 1 deletion lib/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { SourceFile, FileRepository, Buffer, Path } = require('./file')
const { FlatInlineDeclarationResolver, StructuredInlineDeclarationResolver } = require('./components/inline')
const { Resolver } = require('./resolution/resolver')
const { LOG } = require('./logging')
const { docify, createPromiseOf, createUnionOf, createKeysOf, createElementsOf, stringIdent, createDraftsOf, createDraftOf, createIntersectionOf, createReturnTypeOf } = require('./printers/wrappers')
const { docify, createPromiseOf, createUnionOf, createKeysOf, createElementsOf, stringIdent, createDraftsOf, createDraftOf, createIntersectionOf } = require('./printers/wrappers')
const { csnToEnumPairs, propertyToInlineEnumName, isInlineEnumType, stringifyEnumType } = require('./components/enum')
const { isReferenceType } = require('./components/reference')
const { empty } = require('./components/typescript')
Expand Down

0 comments on commit 30e777d

Please sign in to comment.