From 733c090cbdf7d7230307a1daa4d5e7b60b205456 Mon Sep 17 00:00:00 2001 From: Scott McIntyre Date: Fri, 15 Nov 2024 05:44:02 -0500 Subject: [PATCH] feat: support typescript extensions (#131) Co-authored-by: Jamie King --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 565970e..5dd4cf8 100644 --- a/index.js +++ b/index.js @@ -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