Skip to content

Commit

Permalink
feat: support typescript extensions (#131)
Browse files Browse the repository at this point in the history
Co-authored-by: Jamie King <[email protected]>
  • Loading branch information
smackfu and 10xLaCroixDrinker authored Nov 15, 2024
1 parent c991537 commit 733c090
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ module.exports = {
// Forbid the use of extraneous packages
'import/no-extraneous-dependencies': ['error', {
devDependencies: [
// base list from airbnb config
// base list from airbnb config + typescript extensions
'test/**', // tape, common npm pattern
'tests/**', // also common npm pattern
'spec/**', // mocha, rspec-like pattern
'**/__tests__/**', // jest pattern
'**/__mocks__/**', // jest pattern
'test.{js,jsx}', // repos with a single test file
'test-*.{js,jsx}', // repos with multiple top-level test files
'**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
'test.{js,jsx,ts,tsx}', // repos with a single test file
'test-*.{js,jsx,ts,tsx}', // repos with multiple top-level test files
'**/*{.,_}{test,spec}.{js,jsx,ts,tsx}', // tests where the extension or filename suffix denotes that it is a test
'**/jest.config.js', // jest config
'**/jest.setup.js', // jest setup
'**/vue.config.js', // vue-cli config
Expand Down

0 comments on commit 733c090

Please sign in to comment.