Skip to content

Commit

Permalink
fix(eslint-config): fix rules for lint .d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Feb 7, 2022
1 parent 0ec0b35 commit 078da34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Commit
on:
push:
jobs:
conventional-commit:
conventional-commits:
runs-on: ubuntu-latest
name: Checking commit name
steps:
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-config/src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ module.exports = {
files: ['*.ts', '*.tsx'],
extends: ['plugin:@typescript-eslint/recommended'].concat(['./rules/typescript'].map(require.resolve)),
parser: '@typescript-eslint/parser'
},
{
files: ['*.d.ts'],
rules: {
'import/unambiguous': 'off'
}
}
]
}

0 comments on commit 078da34

Please sign in to comment.