Skip to content

Commit

Permalink
Merge pull request #46 from Boehringer-Ingelheim/next
Browse files Browse the repository at this point in the history
fix: allows number in string templates for @typescript-eslint/restrict-template-expressions
  • Loading branch information
SimonGolms authored Jul 11, 2024
2 parents 2b3f84d + 8dd3122 commit da7da9e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [5.0.2-next.1](https://github.com/Boehringer-Ingelheim/eslint-config/compare/v5.0.1...v5.0.2-next.1) (2024-07-11)


### Bug Fixes

* allows number in string templates for @typescript-eslint/restrict-template-expressions ([2ba7e33](https://github.com/Boehringer-Ingelheim/eslint-config/commit/2ba7e3397a3f6b89cd7fd8e80ea4d7f2628bbe8c))

## [5.0.1](https://github.com/Boehringer-Ingelheim/eslint-config/compare/v5.0.0...v5.0.1) (2024-05-15)


Expand Down
9 changes: 9 additions & 0 deletions base/strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@
*/
require('@rushstack/eslint-patch/modern-module-resolution');

const typescriptEslintPlugin = require('@typescript-eslint/eslint-plugin');

/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
extends: ['./index.js', 'plugin:@typescript-eslint/strict-type-checked'],
rules: {
// @typescript-eslint: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/restrict-template-expressions': [
'error',
{
...typescriptEslintPlugin.rules['restrict-template-expressions'].meta.docs.recommended.strict,
allowNumber: true,
},
],

// eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boehringer-ingelheim/eslint-config",
"version": "5.0.1",
"version": "5.0.2-next.1",
"description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
"keywords": [
"boehringer",
Expand Down

0 comments on commit da7da9e

Please sign in to comment.