Code Monkey home page Code Monkey logo

eslint-plugin-sql's People

Contributors

clap404 avatar dustinblackman avatar frysztak avatar gajus avatar ivanjov avatar mrswitch avatar npdev453 avatar

eslint-plugin-sql's Issues

Add a way to customize the tag name

Is your feature request related to a problem? Please describe.
sql`<sql query>` is fine most of the time, but it'd be nice to customize it.

Usecases are :

  • creating your own custom tag
  • checking several dialects inside the same project using two different tags

Describe the solution you'd like
make each config linked to a tag

Describe alternatives you've considered
maybe eslint-plugin-sql could have its own tag ? this seems suboptimal as it would force to include eslint-plugin-sql as a normal dependency for no good reason?

Trailing spaces

Describe the bug
The formatter inserts trailing spaces at the end of the line

To Reproduce
use test request :

INSERT    INTO "table" ("col")
      SELECT    *
      FROM      "othertable"
      ON        CONFLICT ("id") DO
      UPDATE    --here are the trailing spaces
      SET       "col" = true 

Expected behavior
no spaces

Add a way to preserve inline queries

Is your feature request related to a problem? Please describe.
Single line sql statements are not formatted at all if ignoreInline: true is set, yet it'd be usefull to have some things like uppercase keytwords working.

Describe the solution you'd like
add a config like preserveInline to format inline queries without adding newlines

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.