Skip to content

Commit 078da34

Browse files
committed
fix(eslint-config): fix rules for lint .d.ts files
1 parent 0ec0b35 commit 078da34

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Commit
22
on:
33
push:
44
jobs:
5-
conventional-commit:
5+
conventional-commits:
66
runs-on: ubuntu-latest
77
name: Checking commit name
88
steps:

packages/eslint-config/src/typescript.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ module.exports = {
88
files: ['*.ts', '*.tsx'],
99
extends: ['plugin:@typescript-eslint/recommended'].concat(['./rules/typescript'].map(require.resolve)),
1010
parser: '@typescript-eslint/parser'
11+
},
12+
{
13+
files: ['*.d.ts'],
14+
rules: {
15+
'import/unambiguous': 'off'
16+
}
1117
}
1218
]
1319
}

0 commit comments

Comments
 (0)