This file contains hidden or 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
# Place in directory of choice (normally root of the react project) | |
# chmod u+x find-unused-js-files-by-folder-name.sh | |
# sh ./find-unused-js-files-by-folder-name.sh | |
JS_FILES=$(find ./ -type f -name "*.tsx" ! -path "./node_modules/*" ! -path "*.test.tsx") | |
RED="\033[41m" | |
NC="\033[0m" | |
LIGHT_RED="\033[0;31m" | |
for FILE in $JS_FILES; do |
This file contains hidden or 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
"ordered-imports": [true, { | |
"grouped-imports": true, | |
"import-sources-order": "lowercase-last", | |
"named-imports-order": "lowercase-last" | |
"module-source-path": "basename" | |
}], |