Commit Graph

40 Commits

Author SHA1 Message Date
Xymorot 8eac33e231 refactor: change most eslint rules to only warn the user, re-enable some eslint rules and change code accordingly 2021-01-24 19:48:06 +01:00
Xymorot 6b2824daab feat: add work serialization (and basis for the other entities) and an example ipc channel to get a work entity
This commit also adds language codes and a migration which inserts them all into the database.

BREAKING CHANGE: redoes the initial database migration
2021-01-24 19:11:45 +01:00
Xymorot 359aea8968 refactor: move shared types and services into a "shared" folder inside "src" 2021-01-07 23:21:03 +01:00
Xymorot b764346c88 meta: provide better type declaration for svelte modules 2021-01-06 14:53:10 +01:00
Xymorot 09dc14726d meta: change naming convention of interfaces and use importsNotUsedAsValues: 'error' in tsconfig for clearer imports 2021-01-06 02:35:46 +01:00
Xymorot e2008a8588 feat: add some crude wait time optimization to safe-loading URLs in an URL app window 2021-01-05 23:16:53 +01:00
Xymorot 9c2adbb626 meta: turn off prefer-promise-reject-errors rule for test files 2021-01-05 23:15:34 +01:00
Xymorot 8125b8b8a4 meta: specify prefer-destructuring to only apply on variable declaration, not assignment 2021-01-05 23:15:33 +01:00
Xymorot c0eff54795 meta: increase the typescript config separation of main and renderer files 2021-01-05 16:59:02 +01:00
Xymorot ac7eb61515 meta: specify stricter @typescript-eslint/naming-convention rule
The current codebase already is compliant.
2021-01-05 16:51:05 +01:00
Xymorot d711e39ce5 meta: add eslint rule "curly" because it makes git commits cleaner 2021-01-04 23:41:12 +01:00
Xymorot d5697540a8 update: upgrade dependencies and fix tests
- remove spectron
- use electron-mocha to run mocha test suites inside electron
2020-12-28 19:58:20 +01:00
Xymorot 974e47ff04 meta: remove orphaned eslint override 2020-11-12 21:21:13 +01:00
Xymorot b9378219e9 meta: move separate eslintrc files into the main one with extends rules
The reason is my IDE likes it better this way.
2020-11-12 21:19:07 +01:00
Xymorot 7278d902c1 meta: move javascript files for building etc. into a scripts folder 2020-11-12 21:09:43 +01:00
Xymorot 8551c1ea6a update: upgrade typescript to version 4, together with eslint plugins 2020-11-09 19:44:07 +01:00
Xymorot 1618ac552b feat: remove web-crawler and use electron (chromium) itself as crawler, implementing a function to download nhentai favorite torrents 2020-11-09 18:15:30 +01:00
Xymorot f54edba6fc test: refactor some methods out of main.spec.ts and add rules to exclude test folders in eslint and forge 2020-11-09 18:11:43 +01:00
Xymorot 0354d645c5 meta: allow constant conditions in loop
This allows the pattern of a while loop with the condition 'true' and break in the body.
2020-11-06 00:17:42 +01:00
Xymorot 8b9936a4f8 meta: add prefer-destructuring eslint rule 2020-07-29 16:44:19 +02:00
Xymorot b4bf619b5d meta: add eqeqeq rule to eslint 2020-07-26 02:20:03 +02:00
Xymorot 115782061d update: upgrade eslint to major version 7 and rework the application to fit new rules 2020-07-25 02:02:37 +02:00
Xymorot b3c31a4188 meta: add array-type rule to eslint
This forces array typings to be more consistent and readable.
2020-02-09 19:55:37 +01:00
Xymorot 00ebd0e5c8 refactor: re-do source structure with InversifyJS (dependency injection) and adjust meta processes 2020-02-08 23:26:57 +01:00
Xymorot 07f117b752 config: reformat lint file 2019-12-18 01:07:54 +01:00
Xymorot f290cac744 config: configure import/core-modules setting of the import eslint plugin to include 'electron'
This makes it possible to not have to ignore the 'import/no-extraneous-dependencies' rule every time electron is imported.
2019-12-15 15:23:24 +01:00
Xymorot a8b9ccf832 refactor: replace tslint with @typescript-eslint/eslint-plugin as tslint will be deprecated in 2020
Some code refactoring and slight rule changes are done in this commit.
2019-12-15 01:14:39 +01:00
Xymorot 482e5bd343 config: remove gulp and realize build process with concurrently 2019-12-04 03:51:28 +01:00
Xymorot e3a732b37c config: add rules to eslint concerning arrow functions 2019-11-20 23:21:32 +01:00
Xymorot d2c40cee18 config: add specific tslint file for tests, adjust eslint/tslint to fail on broken rule (error severity) 2019-11-20 23:21:28 +01:00
Xymorot dd3fd42fea config: add prefer-template to eslint and tslint 2019-11-20 23:21:28 +01:00
Xymorot ad5d59cef9 config: remove lint processes from typescript and move prettier commit hooks via husky 2019-11-20 23:21:24 +01:00
Xymorot 28c755435d config: implement webpack dev mode by unifying gulp and webpack
Now gulp does everything and can be started with the 'build' task with optional --dev and --watch flags for those modes respectively.
2019-11-20 23:21:22 +01:00
Xymorot 389df67605 feat: implement nhentai login and refactor large pieces of code in the process 2019-07-26 23:05:29 +02:00
Xymorot 61b4bf2cdb feat: install electron-forge and define build process 2019-07-26 22:28:22 +02:00
Xymorot 31e0b6d448 change eslint rules to warnings, add more rules 2019-06-26 23:29:53 +02:00
Xymorot e839c5d69a add no-magic-numbers rule to tslint and eslint 2019-06-23 23:19:11 +02:00
Xymorot 3f51ccca64 add no-shadow rule to eslint 2019-06-23 19:02:08 +02:00
Xymorot 2106789512 update electron and lint files 2019-06-16 03:39:33 +02:00
Xymorot be39755762 uninstall electron-forge, switch to manual webpack for frontend/tsc for backend, install eslint 2019-06-16 00:41:43 +02:00