AntonNiklasson / eslint-plugin-knex

Lint rule(s) for Knex.js
9 stars 8 forks source link

feat: config a builder name pattern in settings to avoid irrelevant cases #11

Closed AntonNiklasson closed 3 years ago

AntonNiklasson commented 3 years ago

This adress the problem seen in #7. By specifying a regex pattern for what builders will be named, any false negatives and/or positives can be avoided.

The idea is to configure eslint something like this:

{
  settings: {
    knex: {
      builderName: /(knex|transaction|trx)/i
    }      
  }
}