Skip to content

Commit

Permalink
Merge pull request #5 from Dionid/feat/massive-refactoring
Browse files Browse the repository at this point in the history
feat: massive refactoring
  • Loading branch information
Dionid authored Feb 18, 2023
2 parents 7b2a688 + 42de2a8 commit 0becc9d
Show file tree
Hide file tree
Showing 34 changed files with 28,206 additions and 5,987 deletions.
7 changes: 7 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": "0.1",
"language": "en",
"words": ["fapfop", "Unbrand", "mult", "Teleadmin", "Качалка", "Давида", "Шекунца"],
"flagWords": [],
"ignorePaths": ["package.json", "package-lock.json", "tsconfig.json", "node_modules/**"]
}
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist
.eslintrc.js
controller-features.ts
65 changes: 65 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
module.exports = {
"root": true,
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.lint.json"
},
"plugins": ["import", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"rules": {
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/require-await": "off",
"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"import/no-unused-modules": "error",
"@typescript-eslint/array-type": "off",
"no-restricted-syntax": [
"error",
{
selector:
"CallExpression[callee.object.name='console'][callee.property.name=/^(log|warn|error|info|trace)$/]",
message:
"Don't use console, use pino logger (or another library) instead",
},
{
selector: "TSEnumDeclaration",
message: "Don't declare enums",
},
{
selector: "CallExpression[callee.property.name='save']",
message: "Don't use typeorm save, use insert or update instead",
},
],
}
};
30 changes: 23 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
*.log
.vscode
node_modules
/dist
/lib
dev
.idea
*.log
*.env
dist
lib
coverage
docs/examples
junit.xml

.idea
*.iml

.DS_Store

.vscode
*.pyc

devspace.yaml

backups
.env.test

*.csv

junit_int.xml
junit_unit.xml
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint-staged
npm run build
npm run test:unit
4 changes: 4 additions & 0 deletions .np-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"branch": "main",
"contents": "lib"
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.18.0
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules
**/build
**/dist
**/.local
CHANGELOG.md
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false
}
35 changes: 35 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"branches": [
"+([1-9])?(.{+([1-9]),x}).x",
"master",
"main",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
]
]
}
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https:/conventional-changelog/standard-version) for commit guidelines.

### [0.0.28](https:/Dionid/fapfop/compare/v0.0.21...v0.0.28) (2023-02-18)

### Features

- added async and either ([1ea0200](https:/Dionid/fapfop/commit/1ea02002e238dae4f46b4c98118f5a3dbc68f25c))
- added error handler ([2eca34b](https:/Dionid/fapfop/commit/2eca34b8322ccc0a84c51bda748f3f900cb15859))
- added husky ([3f29001](https:/Dionid/fapfop/commit/3f2900138ac808a54fcfcc6e76bbd222137c20cf))
- added lots of stuff ([06ff361](https:/Dionid/fapfop/commit/06ff361968197e567437b47e34259809a55eac21))
- added new functionality and also renamed files ([d4bbadb](https:/Dionid/fapfop/commit/d4bbadb887234f389b60a84dd3a23afc9cb530cf))
- bump version ([d445c64](https:/Dionid/fapfop/commit/d445c64b7687bd09881c4c24946ec2c6be0c4aa8))
- bumped version ([3173d08](https:/Dionid/fapfop/commit/3173d08fe9c2d5a97d456a90c7bad962f75426ec))
- bumped version ([c97635b](https:/Dionid/fapfop/commit/c97635be85ee39a88870840f4e8e8cd81141ee1e))
- changed version ([19e5277](https:/Dionid/fapfop/commit/19e5277158265625f4fec0f74dc33e7c6b8a3652))
- some cleaning ([be2c4c7](https:/Dionid/fapfop/commit/be2c4c71fca2b350d1c167852f28ab67b764cca9))
- wg to sleep ([#4](https:/Dionid/fapfop/issues/4)) ([7b2a688](https:/Dionid/fapfop/commit/7b2a688161fa500f5a310577958d4cb21f82fbaf))
- working on new release mechanics ([da6576b](https:/Dionid/fapfop/commit/da6576bc457b20d77ba6dc7806dfcaed7077f468))

### Bug Fixes

- added underscore to tslint rules ([4925924](https:/Dionid/fapfop/commit/49259245399ed112e05070a4f5ce959694b7a2ef))
- added underscore to tslint rules ([313d3f5](https:/Dionid/fapfop/commit/313d3f5dc55964415d3366459fdc2cc3f3a1c9d6))
- adt ([cac224c](https:/Dionid/fapfop/commit/cac224c4feaa33e4dc760781ae57ef83d3651260))
- change gitignore ([0bb61d4](https:/Dionid/fapfop/commit/0bb61d4ee747f61c1ae23ce9978e232c002cdf2e))
- deferred ([386dfa0](https:/Dionid/fapfop/commit/386dfa00cc612a473550c552febbd0a3b5783284))
- no console log ([9db47ab](https:/Dionid/fapfop/commit/9db47ab7352de341bde13ad4ddd05bffd6bd535a))
23 changes: 23 additions & 0 deletions jest.config.unit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"testEnvironment": "node",
"testRegex": "(/__tests_unit__/.*|.(unit)(\\.|/)(test|spec))\\.ts$",
"moduleFileExtensions": ["js", "json", "ts"],
"preset": "ts-jest",
"reporters": [
"default",
[
"jest-junit",
{
"outputName": "junit_unit.xml"
}
]
],
"collectCoverage": true,
"coverageDirectory": "coverage",
"coverageReporters": ["lcov", "text", "cobertura"],
"globals": {
"ts-jest": {
"diagnostics": true
}
}
}
Loading

0 comments on commit 0becc9d

Please sign in to comment.