-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lint checks to scan for un-imported files and unused packages (#1…
- Loading branch information
1 parent
fdf44a4
commit 879c583
Showing
4 changed files
with
1,285 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ jobs: | |
|
||
- name: Run lint | ||
run: npm run lint -- --quiet | ||
|
||
- name: Run unimported | ||
run: npm run unimported |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"ignorePatterns": [ | ||
"node_modules/**", | ||
"**/*.d.ts" | ||
], | ||
"ignoreUnimported": [ | ||
"src/Locale/update_locale.js", | ||
"src/PluginRegistry.ts", | ||
"src/pluginTypes.ts", | ||
"src/service-worker.ts" | ||
], | ||
"ignoreUnused": [ | ||
"@fontsource/figtree", | ||
"@originjs/vite-plugin-federation", | ||
"@vitejs/plugin-react", | ||
"browserslist-useragent-regexp", | ||
"cross-env", | ||
"postcss-loader" | ||
], | ||
"ignoreUnresolved": [ | ||
[ | ||
"./pluginMap", | ||
[ | ||
"src/pluginTypes.ts" | ||
] | ||
], | ||
[ | ||
"@/supportedBrowsers", | ||
[ | ||
"src/components/ErrorPages/BrowserWarning.tsx" | ||
] | ||
], | ||
[ | ||
"tsx/cjs", | ||
[ | ||
"node_modules/find-cypress-specs/src/index.js" | ||
] | ||
], | ||
[ | ||
"virtual:pwa-register", | ||
[ | ||
"src/index.tsx" | ||
] | ||
] | ||
], | ||
"respectGitignore": true, | ||
"entry": [ | ||
"src/index.tsx", | ||
"vite.config.mts", | ||
"tailwind.config.js", | ||
"cypress.config.ts", | ||
"scripts/**" | ||
] | ||
} |
Oops, something went wrong.