Skip to content

Commit

Permalink
everything is TS so disable allowJs
Browse files Browse the repository at this point in the history
and remove the check in topEvil.js
  • Loading branch information
Simon-Laux committed Jun 27, 2020
1 parent 5f2af6b commit d15c9b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions bin/topEvil.sh
@@ -1,7 +1,7 @@
#!/bin/bash
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/.."

echo "Top-Evil JavaScript"
echo "Top-Evil TypeScript"

res=$( grep -r "^import.*electron" src/main/deltachat --color=always )
echo "🤔 Using Electron inside of the deltachat controller: $( echo "$res" | wc -l )"
Expand All @@ -23,11 +23,6 @@ echo "🤔 Requires in renderer: $( echo "$res" | wc -l )"
echo "-----------------------------------------------------"
echo "$res"

res=$( find src/* | grep .js$ )
echo "🤔 Files that are still in JavaScript: $( echo "$res" | wc -l )"
echo "-----------------------------------------------------"
echo "$res"

res=$( grep -r "'styled-components'" src/renderer --color=always )
echo "🤔 Use of styled-components: $( echo "$res" | wc -l )"
echo "-----------------------------------------------------"
Expand Down
2 changes: 1 addition & 1 deletion src/main/tsconfig.json
Expand Up @@ -6,7 +6,7 @@
"module": "commonjs",
"target": "es6",
"rootDir": ".",
"allowJs": true,
"allowJs": false,
"esModuleInterop": true
},
"include": ["./**/*.ts", "./**/*.js"],
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/tsconfig.json
Expand Up @@ -7,7 +7,7 @@
"module": "es6",
"target": "es6",
"jsx": "react",
"allowJs": true,
"allowJs": false,
"esModuleInterop": true,
"moduleResolution": "node"
},
Expand Down
2 changes: 1 addition & 1 deletion src/shared/tsconfig.json
Expand Up @@ -7,7 +7,7 @@
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"allowJs": true
"allowJs": false
},
"include": ["./**/*.ts", "./**/*.js"]
}

0 comments on commit d15c9b4

Please sign in to comment.