diff --git a/common/build/eslint-config-fluid/fluidframework-eslint-config-fluid-8.0.0.tgz b/common/build/eslint-config-fluid/fluidframework-eslint-config-fluid-8.0.0.tgz new file mode 100644 index 000000000000..6e5d387fe0c0 Binary files /dev/null and b/common/build/eslint-config-fluid/fluidframework-eslint-config-fluid-8.0.0.tgz differ diff --git a/scripts/update-eslint-rules.sh b/scripts/update-eslint-rules.sh new file mode 100755 index 000000000000..fc67af8c8631 --- /dev/null +++ b/scripts/update-eslint-rules.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +PATH_ARG="$1" + +# Find all .ts, .tsx, .js, .jsx files and update them +fd -e ts -e tsx -e js -e jsx . "$PATH_ARG" -x sd 'import/' 'import-x/' +fd -e ts -e tsx -e js -e jsx . "$PATH_ARG" -x sd 'eslint-comments/' '@eslint-community/eslint-comments/' + +echo "Updated import/ -> import-x/ and eslint-comments/ -> @eslint-community/eslint-comments/ in $PATH_ARG"