diff --git a/rules/imports.js b/rules/imports.js index 878d877..1ff662c 100644 --- a/rules/imports.js +++ b/rules/imports.js @@ -93,20 +93,13 @@ 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', // jest config - '**/jest.setup.js', // jest setup - '**/vue.config.js', // vue-cli config - '**/webpack.config.js', // webpack config - '**/webpack.config.*.js', // webpack config - '**/rollup.config.js', // rollup config - '**/rollup.config.*.js', // rollup config - '**/protractor.conf.js', // protractor config - '**/protractor.conf.*.js', // protractor config - '**/karma.conf.js', // karma config '**/.eslintrc.js', // eslint config '**/eslint-rules/**', '**/.storybook/**', // storybook config '**/*.stories.{js,jsx,ts,tsx,mdx}', // storybook stories + '**/*.config.*', + '**/*.conf.*', + '**/*.setup.*', ], optionalDependencies: false, }, diff --git a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap index 4520f30..6fcc9c2 100644 --- a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap @@ -641,20 +641,13 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap index e8b87c9..9e6b3a3 100644 --- a/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap @@ -238,20 +238,13 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap index d5460b4..c4a715b 100644 --- a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap @@ -578,20 +578,13 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap index 6d0e8ba..ba563dc 100644 --- a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap @@ -578,20 +578,13 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap index ad7bcf9..0c74d76 100644 --- a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap @@ -763,20 +763,13 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap index bbb0de8..67bcda9 100644 --- a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap @@ -762,20 +762,13 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap index aafe581..aabc235 100644 --- a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap @@ -700,20 +700,13 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, }, diff --git a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap index 8225bb3..f7478eb 100644 --- a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap @@ -700,20 +700,13 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "test.{js,jsx,ts,tsx}", "test-*.{js,jsx,ts,tsx}", "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", - "**/jest.config.js", - "**/jest.setup.js", - "**/vue.config.js", - "**/webpack.config.js", - "**/webpack.config.*.js", - "**/rollup.config.js", - "**/rollup.config.*.js", - "**/protractor.conf.js", - "**/protractor.conf.*.js", - "**/karma.conf.js", "**/.eslintrc.js", "**/eslint-rules/**", "**/.storybook/**", "**/*.stories.{js,jsx,ts,tsx,mdx}", + "**/*.config.*", + "**/*.conf.*", + "**/*.setup.*", ], "optionalDependencies": false, },