diff --git a/app/.eslintrc.js b/app/.eslintrc.js new file mode 100644 index 0000000..aa184ff --- /dev/null +++ b/app/.eslintrc.js @@ -0,0 +1,6 @@ +const { eslint_config } = require('@poap/skunk-linter') + +// Export the default eslint config +module.exports = { + ...eslint_config +} \ No newline at end of file diff --git a/app/.github/dependabot.yml b/app/.github/dependabot.yml deleted file mode 100644 index 3a1f0c4..0000000 --- a/app/.github/dependabot.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: 2 -updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - time: "13:00" - open-pull-requests-limit: 99 - versioning-strategy: increase diff --git a/app/.husky/pre-commit b/app/.husky/pre-commit index 1f02263..d6c7e66 100755 --- a/app/.husky/pre-commit +++ b/app/.husky/pre-commit @@ -5,7 +5,7 @@ echo "\nšŸ¤– [ precommit hook ] linting before committing..." # If errors, make it clear they cannot commit -if ! lint_outcome=$( npm run lint ); then +if ! lint_outcome=$( cd app && npm run lint ); then echo "🚨 [ precommit hook ] lint encountered blocking issues, fix them before committing\n" echo "$lint_outcome" exit 1 @@ -18,4 +18,4 @@ if echo $lint_outcome | grep -q "warning"; then exit 0 fi -echo "āœ… [ precommit hook ] lint encountered no blocking issues\n"undefined +echo "āœ… [ precommit hook ] lint encountered no blocking issues\n" diff --git a/app/.vscode/settings.json b/app/.vscode/settings.json new file mode 100644 index 0000000..2296389 --- /dev/null +++ b/app/.vscode/settings.json @@ -0,0 +1,19 @@ +{ + "i18n-ally.localesPaths": [ + "public/locales" + ], + "i18n-ally.keystyle": "nested", + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact" + ], + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "editor.renderWhitespace": "all", + "editor.formatOnSave": true, + "eslint.format.enable": true, + "eslint.run": "onType" +} \ No newline at end of file diff --git a/app/package.json b/app/package.json index 8cd0a40..fe7b9de 100644 --- a/app/package.json +++ b/app/package.json @@ -24,7 +24,7 @@ "scripts": { "start": "development=true electron .", "build": "rm -rf ./dist/* && electron-builder build --mac --arm64", - "prepare": "husky install", + "prepare": "cd .. && husky install ./app/.husky", "lint": "eslint --fix modules main.js" }, "repository": "https://github.com/actuallymentor/battery",