Skip to content

Commit

Permalink
Completely new Electron-Forge based structure
Browse files Browse the repository at this point in the history
  • Loading branch information
fjwillemsen committed Jul 13, 2024
1 parent efd59a7 commit 966d7ef
Show file tree
Hide file tree
Showing 99 changed files with 8,881 additions and 10,246 deletions.
129 changes: 129 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
},
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
"coverage/",
"/config"
],
"plugins": [
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/electron",
"plugin:import/typescript",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
],
"parser": "@typescript-eslint/parser",
"rules": {
"no-console": [
"off",
{
"allow": [
"warn",
"error",
"info",
"table"
]
}
],
"react/display-name": "off",
"react/prop-types": "off",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true,
},
},
],
"jsx-a11y/no-noninteractive-element-interactions": [
"error",
{
"handlers": [
"onClick",
"onMouseDown",
"onMouseUp",
"onKeyPress",
"onKeyDown",
"onKeyUp"
],
},
],
"import/default": "off",
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off",
"react/react-in-jsx-scope": "off",
"jsx-a11y/anchor-is-valid": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
},
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Function": false,
},
},
],
"@typescript-eslint/explicit-function-return-type": [
"off"
],
"@typescript-eslint/explicit-module-boundary-types": [
"off"
],
"@typescript-eslint/no-empty-function": [
"off"
],
"@typescript-eslint/no-explicit-any": [
"warn",
{
"ignoreRestArgs": true
}
],
"prettier/prettier": [
"error",
{},
{
"usePrettierrc": true,
},
],
},
"settings": {
"import/resolver": {
"typescript": {},
},
"react": {
"version": "detect",
},
},
}
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* text eol=lf
*.exe binary
*.png binary
*.jpg binary
*.jpeg binary
*.ico binary
*.icns binary
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
28 changes: 0 additions & 28 deletions .github/workflows/e2e.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/lint.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- v[0-9]+.*

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
# changelog: CHANGELOG.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
105 changes: 88 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,108 @@
# Generated files
assets/logo/sized

# User files
projects/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Modules
node_modules
dist
dist-ssr
dist-electron
release
*.local
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock
.DS_Store

# Editor directories and files
.vscode/.debug.env
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Tests
/test-results/
/playwright-report/
/playwright/.cache/
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Generated files
assets/logo/sized
# Coverage directory used by tools like istanbul
coverage
*.lcov

# User files
projects/
# nyc test coverage
.nyc_output

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
*.local

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Webpack
.webpack/

# Vite
.vite/

# Electron-Forge
out/
Empty file removed .gitmodules
Empty file.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

8 changes: 5 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"trailingComma": "es5",
"singleQuote": true,
"trailingComma": "all",
"jsxSingleQuote": true,
"printWidth": 120,
"tabWidth": 4,
"semi": false,
"singleQuote": true
"semi": false
}
23 changes: 0 additions & 23 deletions .vscode/.debug.script.mjs

This file was deleted.

Loading

0 comments on commit 966d7ef

Please sign in to comment.