Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused exports to clean up code #2036

Open
4 tasks
Tracked by #1965
SgtPooki opened this issue Sep 28, 2022 · 1 comment
Open
4 tasks
Tracked by #1965

remove unused exports to clean up code #2036

SgtPooki opened this issue Sep 28, 2022 · 1 comment
Labels
exp/beginner Can be confidently tackled by newcomers P3 Low: Not priority right now status/ready Ready to be worked topic/dependencies Topic dependencies

Comments

@SgtPooki
Copy link
Member

Part of #1965

  • run npx -y ts-unused-exports tsconfig.json {src,test}/**/*.js and get rid of any exports that are unused.
  • run npx -y unused-exports --path ./src --ignore node_modules/ and get rid of any exports that are unused
  • run https://github.com/MatthieuLemoine/unused-webpack-plugin and enable failOnUnused
  • Remove any dead code
@SgtPooki SgtPooki added the need/triage Needs initial labeling and prioritization label Sep 28, 2022
@SgtPooki
Copy link
Member Author

+    new UnusedWebpackPlugin({
+      // Source directories
+      directories: [path.join(__dirname, 'src'), path.join(__dirname, 'test')],
+      // Exclude patterns
+      exclude: ['*.stories.*', '*.test.*', '**/fixtures/**'],
+      // Root directory (optional)
+      root: __dirname,
+      failOnUnused: true

@SgtPooki SgtPooki added dependencies P3 Low: Not priority right now status/ready Ready to be worked exp/beginner Can be confidently tackled by newcomers and removed need/triage Needs initial labeling and prioritization labels Oct 10, 2022
@tinytb tinytb added topic/dependencies Topic dependencies and removed dependencies labels Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/beginner Can be confidently tackled by newcomers P3 Low: Not priority right now status/ready Ready to be worked topic/dependencies Topic dependencies
Projects
No open projects
Status: Needs Grooming
Development

No branches or pull requests

2 participants