@open-turo/eslint-config-typescript 23.0.14 → 23.1.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/index.js CHANGED
@@ -198,6 +198,18 @@ const typescriptConfig = () =>
198
198
  argsIgnorePattern: "^_",
199
199
  },
200
200
  ],
201
+ "@typescript-eslint/restrict-template-expressions": [
202
+ "error",
203
+ {
204
+ allowAny: false,
205
+ allowBoolean: false,
206
+ allowNever: false,
207
+ allowNullish: false,
208
+ /** Strict type-checked configuration doesn't allow number, but we often interpolate numbers for convenience */
209
+ allowNumber: true,
210
+ allowRegExp: false,
211
+ },
212
+ ],
201
213
  "@typescript-eslint/unbound-method": "error",
202
214
  },
203
215
  });
package/package.json CHANGED
@@ -55,6 +55,6 @@
55
55
  "access": "public"
56
56
  },
57
57
  "repository": "https://github.com/open-turo/eslint-config-typescript",
58
- "version": "23.0.14",
58
+ "version": "23.1.0",
59
59
  "packageManager": "npm@11.17.0"
60
60
  }
@@ -821,7 +821,7 @@ exports[`validate config the flat config is correct for index.js 1`] = `
821
821
  "allowBoolean": false,
822
822
  "allowNever": false,
823
823
  "allowNullish": false,
824
- "allowNumber": false,
824
+ "allowNumber": true,
825
825
  "allowRegExp": false,
826
826
  },
827
827
  ],
@@ -4111,7 +4111,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4111
4111
  "allowBoolean": false,
4112
4112
  "allowNever": false,
4113
4113
  "allowNullish": false,
4114
- "allowNumber": false,
4114
+ "allowNumber": true,
4115
4115
  "allowRegExp": false,
4116
4116
  },
4117
4117
  ],
@@ -7401,7 +7401,7 @@ exports[`validate config the flat config with vitest is correct for index.js 1`]
7401
7401
  "allowBoolean": false,
7402
7402
  "allowNever": false,
7403
7403
  "allowNullish": false,
7404
- "allowNumber": false,
7404
+ "allowNumber": true,
7405
7405
  "allowRegExp": false,
7406
7406
  },
7407
7407
  ],
@@ -10772,7 +10772,7 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
10772
10772
  "allowBoolean": false,
10773
10773
  "allowNever": false,
10774
10774
  "allowNullish": false,
10775
- "allowNumber": false,
10775
+ "allowNumber": true,
10776
10776
  "allowRegExp": false,
10777
10777
  },
10778
10778
  ],