From 123d3f5f3b85806c9197d71c51a90213a52f4c19 Mon Sep 17 00:00:00 2001 From: literat Date: Fri, 9 Aug 2024 14:01:29 +0200 Subject: [PATCH] Refactor(eslint-config-base): Use more general glob pattern for conf/config files --- packages/eslint-config-base/rules/imports.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/eslint-config-base/rules/imports.js b/packages/eslint-config-base/rules/imports.js index 72ec9be..7b7bc21 100644 --- a/packages/eslint-config-base/rules/imports.js +++ b/packages/eslint-config-base/rules/imports.js @@ -39,22 +39,16 @@ module.exports = { '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,ts}', // jest config '**/jest.setup.{js,ts}', // jest setup - '**/vue.config.{js,ts}', // vue-cli config - '**/webpack.config.{js,ts}', // webpack config - '**/webpack.config.*.{js,ts}', // webpack config - '**/rollup.config.{js,ts}', // rollup config - '**/rollup.config.*.{js,ts}', // rollup config '**/gulpfile.{js,ts}', // gulp config '**/gulpfile.*.{js,ts}', // gulp config '**/Gruntfile{,.js}', // grunt config - '**/protractor.conf.js', // protractor config - '**/protractor.conf.*.js', // protractor config - '**/karma.conf.js', // karma config '**/.eslintrc.js', // eslint config '**/.prettierrc.js', // prettier config - '**/postcss.config.js', // postcss config + '**/*.config.{js,ts}', // other config + '**/*.config.*.js,ts}', // other config + '**/*.conf.{js,ts}', // other conf + '**/*.conf.*.js,ts}', // other conf ], optionalDependencies: false, },