rules/no-unsafe-query.js
function isSqlQuery(literal) {
  if (!literal) {
    return false;
  }

  try {
    parser.parse(literal);
  } catch (error) {
    return false;
  }

  return true;
}
function isSqlQuery(literal) {
  if (!literal) {
    return false;
  }

  try {
    parser.parse(literal);
  } catch (error) {
    return false;
  }

  return true;
}
function isSqlQuery ( literal ) { if ( ! literal ) { return false ; } try { parser . parse ( literal ) ; } catch ( error ) { return false ; } return true ; }
Check if `literal` is an SQL query.
Check if literal is an SQL query .