File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ The following files in `.machine_readable/` contain structured project metadata:
4343| Bun | Deno |
4444| pnpm/yarn | Deno |
4545| Go | Rust |
46- | Python | Julia/Rust/ReScript |
46+ | Python | Julia/Rust/AffineScript |
4747| Java/Kotlin | Rust/Tauri/Dioxus |
4848| Swift | Tauri/Dioxus |
4949| React Native | Tauri/Dioxus |
Original file line number Diff line number Diff line change 3232 run : |
3333 # TypeScript files (not allowed)
3434 if find . -name "*.ts" -o -name "*.tsx" | grep -q .; then
35- echo "::error::TypeScript files detected. Use ReScript instead."
35+ echo "::error::TypeScript files detected. Use AffineScript instead."
3636 exit 1
3737 fi
3838
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ jobs:
168168 - name : Check for tsconfig
169169 run : |
170170 if [ -f "tsconfig.json" ]; then
171- echo "❌ tsconfig.json detected - use ReScript instead"
171+ echo "❌ tsconfig.json detected - use AffineScript instead"
172172 exit 1
173173 fi
174174 echo "✅ No tsconfig.json"
Original file line number Diff line number Diff line change 1818 NEW_JS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(js|jsx)$' | grep -v '\.res\.js$' | grep -v '\.gen\.' | grep -v 'node_modules' || true)
1919
2020 if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then
21- echo "❌ New TS/JS files detected. Use ReScript instead."
21+ echo "❌ New TS/JS files detected. Use AffineScript instead."
2222 [ -n "$NEW_TS" ] && echo "$NEW_TS"
2323 [ -n "$NEW_JS" ] && echo "$NEW_JS"
2424 exit 1
Original file line number Diff line number Diff line change @@ -796,7 +796,7 @@ impl ContractRunner {
796796 } ;
797797
798798 let remediation = match language. to_lowercase ( ) . as_str ( ) {
799- "typescript" => Some ( "Use ReScript instead of TypeScript" . to_string ( ) ) ,
799+ "typescript" => Some ( "Use AffineScript instead of TypeScript" . to_string ( ) ) ,
800800 "python" => {
801801 Some ( "Python is only allowed in salt/ for SaltStack configs" . to_string ( ) )
802802 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ This project follows the **Rhodium Standard Repository** (RSR) conventions.
3333|===
3434| Technology | Reason | Status
3535
36- | TypeScript | Use ReScript instead | ❌ Blocked
36+ | TypeScript | Use AffineScript instead | ❌ Blocked
3737| Go | Use Rust/WASM instead | ❌ Blocked
3838| Python | Use Guile/Deno (except SaltStack) | ❌ Blocked
3939| npm/yarn | Use Deno instead | ❌ Blocked
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ TS_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx)
6262if [ -n " $TS_FILES " ]; then
6363 echo_fail " Prohibited TypeScript files detected:"
6464 echo " $TS_FILES " | sed ' s/^/ /'
65- echo " → Use ReScript instead"
65+ echo " → Use AffineScript instead"
6666 FAILED=1
6767fi
6868
@@ -71,7 +71,7 @@ JS_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.js$' | g
7171if [ -n " $JS_FILES " ]; then
7272 echo_fail " Prohibited JavaScript files detected:"
7373 echo " $JS_FILES " | sed ' s/^/ /'
74- echo " → Use ReScript instead"
74+ echo " → Use AffineScript instead"
7575 FAILED=1
7676fi
7777
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ STAGED=$(git diff --cached --name-only --diff-filter=ACM)
2121# Check for TypeScript files
2222TS_FILES=$( echo " $STAGED " | grep -E ' \.(ts|tsx)$' || true)
2323if [ -n " $TS_FILES " ]; then
24- echo -e " ${RED} ❌ TypeScript files detected (use ReScript instead):${NC} "
24+ echo -e " ${RED} ❌ TypeScript files detected (use AffineScript instead):${NC} "
2525 echo " $TS_FILES " | sed ' s/^/ /'
2626 ERRORS=$(( ERRORS + 1 ))
2727fi
Original file line number Diff line number Diff line change 2121 - name: Check for TypeScript
2222 run: |
2323 if find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules | grep -q .; then
24- echo "❌ TypeScript files detected - use ReScript instead"
24+ echo "❌ TypeScript files detected - use AffineScript instead"
2525 find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules
2626 exit 1
2727 fi
5757 - name: Check for tsconfig
5858 run: |
5959 if [ -f "tsconfig.json" ]; then
60- echo "❌ tsconfig.json detected - use ReScript instead"
60+ echo "❌ tsconfig.json detected - use AffineScript instead"
6161 exit 1
6262 fi
6363 echo "✅ No tsconfig.json"
Original file line number Diff line number Diff line change 2525- Julia - Scientific computing
2626
2727** Forbidden:**
28- - TypeScript - Use ReScript instead
28+ - TypeScript - Use AffineScript instead
2929- Python - Only for Salt configs and ML training scripts
3030- Go - Design philosophy conflicts
3131- Java/C# - Enterprise complexity
You can’t perform that action at this time.
0 commit comments