github ts-safeql/safeql @ts-safeql/eslint-plugin@0.0.8

latest releases: @ts-safeql/test-utils@0.0.30, @ts-safeql/shared@3.4.7, @ts-safeql/generate@3.4.7...
2 years ago

Patch Changes

  • c639958: - connections can now be a single connection object instead of an array of connections.

    • by setting {"useConfigFile": true }, the plugin will use the safeql.config.ts file to get the connection/s information:
    // .eslintrc.json
    {
      // ...
      "rules": {
        "@ts-safeql/check-sql": ["error", { "useConfigFile": true }]
      }
    }
    // safeql.config.ts
    import { defineConfig } from "@ts-safeql/eslint-plugin";
    
    export default defineConfig({
      connections: {
        // ...
      },
    });

    By moving the configuration into a .ts file, we get full auto-completion, which should help configure the connections and find errors.

    Please note that safeql.config.ts should be at the root of your project.

Don't miss a new safeql release

NewReleases is sending notifications on new releases.