eslint-plugin-no-mistakes 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-no-mistakes",
3
- "version": "0.71.1",
3
+ "version": "0.72.0",
4
4
  "description": "ESLint and Oxlint rules that keep code static enough for no-mistakes analyzers and coding agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,6 +10,11 @@ const QUERY_PROPERTY = "query";
10
10
  const TRANSACTION_COMMAND = /^\s*(?:BEGIN|COMMIT|ROLLBACK)\b/i;
11
11
 
12
12
  function executorOptionDefaults(options = {}) {
13
+ if (!options.importSpecifier && !Array.isArray(options.executorNames)) {
14
+ throw new Error(
15
+ "PostgreSQL option importSpecifier: set importSpecifier (or executorNames) to select executor calls; set executorNames: [] to select no executor calls (see docs/migrations/explicit-postgres-executors.md)",
16
+ );
17
+ }
13
18
  return {
14
19
  importSpecifier: options.importSpecifier ?? DEFAULT_IMPORT_SPECIFIER,
15
20
  executorNames: options.executorNames ?? (options.importSpecifier ? DEFAULT_EXECUTOR_NAMES : []),