Skip to content

Commit

Permalink
fix: import/no-extraneous-dependencies (#357)
Browse files Browse the repository at this point in the history
* fix: import/no-extraneous-dependencies

* update snapshot
  • Loading branch information
wakamsha authored Dec 17, 2024
1 parent 6e640d3 commit 3f9dd7e
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 90 deletions.
13 changes: 3 additions & 10 deletions rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
13 changes: 3 additions & 10 deletions tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
13 changes: 3 additions & 10 deletions tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
13 changes: 3 additions & 10 deletions tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 3f9dd7e

Please sign in to comment.