Skip to content

Add syntax highlighting to code example#291

Open
coderaiser wants to merge 1 commit into
joereynolds:typescriptfrom
coderaiser:patch-1
Open

Add syntax highlighting to code example#291
coderaiser wants to merge 1 commit into
joereynolds:typescriptfrom
coderaiser:patch-1

Conversation

@coderaiser
Copy link
Copy Markdown

@coderaiser coderaiser commented May 20, 2026

So it looks this way:

import sqlLint from 'sql-lint'

// using async/await

const errors = await sqlLint({
  sql: 'SELECT my_column FROM my_table',
})

// or using promise

sqlLint({ sql: 'SELECT my_column FROM my_table' }).then(errors => {
  for (const error of errors) {
    // do something
  }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant