Skip to content

Commit

Permalink
exclude unnecessary *.mjs file from eslint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kKahina committed Oct 25, 2024
1 parent 2a438ce commit eb964fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import pluginTs from "@typescript-eslint/eslint-plugin";
import parser from "@typescript-eslint/parser";



export default [
{
languageOptions: {
Expand All @@ -19,19 +20,22 @@ export default [
rules: {
"no-underscore-dangle": "off",
"no-console": "warn",
"no-plusplus": "error",
"no-plusplus": "warn",
"import/extensions": "off",
"no-restricted-syntax": "off",
"no-restricted-globals": "off",
"no-cond-assign": "off",
"no-undef": "warn",
"semi": ["error", "always"],
"quotes": ["error", "double"],
"@typescript-eslint/no-unused-vars": ["warn"],
"prettier/prettier": "off"
},
},
{
plugins: {
"@typescript-eslint": pluginTs,
},
}
];
];

6 changes: 5 additions & 1 deletion test/test-zapp-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cd temp-zapps/
# docker rm testcircuits
# done

echo$(tput setaf 3) ORCHESTRATION”
echo$(tput setaf 3) ORCHESTRATION”
MJSFILES=$(find . -type f -name "*.mjs" -maxdepth 3 -mindepth 3)
mjsarray=($MJSFILES)
for mjselement in "${mjsarray[@]}"
Expand All @@ -32,5 +32,9 @@ cd temp-zapps/
echo $DIR
mjselement="${mjselement:2}"
echo$(tput setaf 7) $mjselement compiling”
if [[ "$mjselement" == *"api.mjs" ]] || [[ "$mjselement" == *"cnstrctr.mjs" ]] || [[ "$mjselement" == *"test.mjs" ]] || [[ "$mjselement" == *"BackupDataRetriever.mjs" ]] || [[ "$mjselement" == *"BackupVariable.mjs" ]] || [[ "$mjselement" == *"api_routes.mjs" ]]; then
echo "Skipping $mjselement"
continue
fi
npx eslint $mjselement --fix
done

0 comments on commit eb964fd

Please sign in to comment.