Skip to content

Commit

Permalink
Merge pull request #92 from DatepollSystems/feature/stripe
Browse files Browse the repository at this point in the history
Feature/stripe
  • Loading branch information
Dafnik authored Mar 8, 2024
2 parents cd0f0c2 + 2f74cc1 commit 8d005a7
Show file tree
Hide file tree
Showing 250 changed files with 5,822 additions and 5,040 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ node_modules
.gitignore
*.md
dist
.husky
.editorconfig
.eslintrc.json
.prettierignore
Expand Down
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.angular
package.json
pnpm-lock.yaml
dist/
node_modules/
175 changes: 55 additions & 120 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,157 +1,92 @@
{
"root": true,
"reportUnusedDisableDirectives": true,
"extends": [
"prettier"
],
"extends": ["prettier"],
"ignorePatterns": ["environment.*.ts", "postbuild.js"],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.js"],
"env": {"node": true},
"extends": ["eslint:recommended", "prettier"],
"rules": {}
},
{
"files": ["*.ts"],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
"project": ["tsconfig.(app|spec).json"]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:@angular-eslint/all",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:import/typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/recommended"
"prettier"
],
"rules": {
"@angular-eslint/prefer-on-push-component-change-detection": "off",

"@typescript-eslint/explicit-module-boundary-types": [
"warn",
"off",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"no-empty-function": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@angular-eslint/sort-ngmodule-metadata-arrays": "error",
"@angular-eslint/component-class-suffix": "off",
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"style": "camelCase"
}
],
"@angular-eslint/use-component-selector": "off",
"@angular-eslint/template/i18n": "off",
"@angular-eslint/template/no-inline-styles": "off",
"@angular-eslint/template/no-call-expression": "off",
"@angular-eslint/template/click-events-have-key-events": "warn",
"@angular-eslint/template/interactive-supports-focus": "warn",
"@angular-eslint/component-max-inline-declarations": "off",
"@angular-eslint/prefer-standalone-component": "off",
"dot-notation": "error",
"id-denylist": [
"error",
"any",
"Number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined"
],
"id-denylist": ["error", "any", "Number", "String", "string", "Boolean", "boolean", "Undefined", "undefined"],
"no-shadow": "error",
"no-unused-expressions": "error",
"quotes": [
"error",
"single"
],
"quotes": ["error", "single"],
"semi": "error",
"import/named": "off",
"import/no-unresolved": "off",
"import/order": [
"error",
{
"newlines-between": "always",
// <-- Changed configuration here to get proper imports order I want
"groups": [
// <-- Changed configuration here to get proper imports order I want
"internal",
// angular imports - configured in 'import/internal-regex'
"unknown",
// rxjs imports
"external",
// all libraries imports - configured in 'import/external-module-folders'
"builtin",
// internal-library imports
[
"parent",
"sibling",
"index"
]
// relative paths
],
"pathGroups": [
// <-- Changed configuration here to get proper imports order I want
{
"pattern": "rxjs",
"group": "unknown"
},
{
"pattern": "rxjs/**",
"group": "unknown"
},
{
"pattern": "dfx**",
"group": "builtin"
},
{
"pattern": "dfts**",
"group": "builtin"
},
{
"pattern": "qshared**",
"group": "parent"
},
{
"pattern": "@home-shared**",
"group": "parent"
},
{
"pattern": "@outside-shared**",
"group": "parent"
}
],
"pathGroupsExcludedImportTypes": [
"type",
"object"
]
}
]
"import/no-unresolved": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/all", "prettier"],
"rules": {
"@angular-eslint/template/i18n": "off",
"@angular-eslint/template/no-inline-styles": "off",
"@angular-eslint/template/no-call-expression": "off",
"@angular-eslint/template/no-any": "warn",
"@angular-eslint/template/elements-content": "warn",
"@angular-eslint/template/click-events-have-key-events": "warn",
"@angular-eslint/template/interactive-supports-focus": "warn",
"@angular-eslint/component-max-inline-declarations": "off"
}
},
{
"files": ["*.json"],
"extends": ["plugin:jsonc/recommended-with-jsonc", "prettier"],
"rules": {}
},
{
"files": ["*.md"],
"extends": ["plugin:markdown/recommended", "prettier"],
"rules": {}
}
],
"settings": {
"import/internal-regex": "@angular/"
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/build-lava.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build lava
on:
push:
tags:
- "*.*.*-lava-*"
- '*.*.*-lava-*'

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build prod
on:
push:
tags:
- "*.*.*"
- "!*.*.*-lava-*"
- '*.*.*'
- '!*.*.*-lava-*'

jobs:
build:
Expand Down
57 changes: 28 additions & 29 deletions .github/workflows/licenseReport.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
name: Generate license report
on:
workflow_dispatch:
schedule:
- cron: '0 4 */30 * *' # At 04:00 on every 30ts day-of-month.
name: Generate license report
on:
workflow_dispatch:
schedule:
- cron: '0 4 */30 * *' # At 04:00 on every 30ts day-of-month.

jobs:
generate-license-pr:
runs-on: ubuntu-latest
steps:
- name: checkout your repository using git
uses: actions/checkout@v4
jobs:
generate-license-pr:
runs-on: ubuntu-latest
steps:
- name: checkout your repository using git
uses: actions/checkout@v4

- name: setup node and pnpm
uses: dafnik/setup-node-pnpm@v2
with:
install-ignore-scripts: true

- name: setup node and pnpm
uses: dafnik/setup-node-pnpm@v2
with:
install-ignore-scripts: true
- name: generate license report
id: license-report
uses: dafnik/generate-license-report@v2
with:
license-report-path: 'src/assets/licenses.json'

- name: generate license report
id: license-report
uses: dafnik/generate-license-report@v2
with:
license-report-path: 'src/assets/licenses.json'

- name: create new pull request if needed
if: steps.license-report.outputs.has-no-changes != 'true'
uses: peter-evans/create-pull-request@v6
with:
title: Generated new licenses report
branch-suffix: timestamp
commit-message: 'chore: generate new license report'
body: ${{ steps.license-report.outputs.diff }}
- name: create new pull request if needed
if: steps.license-report.outputs.has-no-changes != 'true'
uses: peter-evans/create-pull-request@v6
with:
title: Generated new licenses report
branch-suffix: timestamp
commit-message: 'chore: generate new license report'
body: ${{ steps.license-report.outputs.diff }}
Loading

0 comments on commit 8d005a7

Please sign in to comment.