-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: epszaw <[email protected]> Co-authored-by: Alex <[email protected]>
- Loading branch information
Showing
2,356 changed files
with
93,178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**/node_modules/**/* | ||
**/dist/**/* | ||
**/out/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
/* eslint-disable id-blacklist */ | ||
module.exports = { | ||
root: true, | ||
globals: { | ||
__PATH_PREFIX__: true, | ||
}, | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: "tsconfig.json", | ||
sourceType: "module", | ||
warnOnUnsupportedTypeScriptVersion: false, | ||
}, | ||
plugins: ["n", "no-null", "prefer-arrow", "import", "jsdoc", "@typescript-eslint", "@stylistic"], | ||
ignorePatterns: ["**/dist/**/*"], | ||
overrides: [ | ||
{ | ||
extends: ["plugin:@typescript-eslint/disable-type-checked"], | ||
files: [".eslintrc.cjs"], | ||
}, | ||
], | ||
rules: { | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/adjacent-overload-signatures": "error", | ||
"@typescript-eslint/array-type": [ | ||
"error", | ||
{ | ||
default: "array", | ||
}, | ||
], | ||
"@typescript-eslint/no-restricted-types": [ | ||
"error", | ||
{ | ||
types: { | ||
Object: { | ||
message: "Avoid using the `Object` type. Did you mean `object`?", | ||
}, | ||
Function: { | ||
message: "Avoid using the `Function` type. Prefer a specific function type, like `() => void`.", | ||
}, | ||
Boolean: { | ||
message: "Avoid using the `Boolean` type. Did you mean `boolean`?", | ||
}, | ||
Number: { | ||
message: "Avoid using the `Number` type. Did you mean `number`?", | ||
}, | ||
String: { | ||
message: "Avoid using the `String` type. Did you mean `string`?", | ||
}, | ||
Symbol: { | ||
message: "Avoid using the `Symbol` type. Did you mean `symbol`?", | ||
}, | ||
}, | ||
}, | ||
], | ||
"@typescript-eslint/consistent-type-assertions": "error", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"@typescript-eslint/consistent-type-exports": "error", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/dot-notation": "error", | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"off", | ||
{ | ||
accessibility: "explicit", | ||
}, | ||
], | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/indent": [ | ||
"off", | ||
2, | ||
{ | ||
FunctionDeclaration: { | ||
parameters: "first", | ||
}, | ||
FunctionExpression: { | ||
parameters: "first", | ||
}, | ||
}, | ||
], | ||
"@stylistic/member-delimiter-style": [ | ||
"error", | ||
{ | ||
multiline: { | ||
delimiter: "semi", | ||
requireLast: true, | ||
}, | ||
singleline: { | ||
delimiter: "semi", | ||
requireLast: false, | ||
}, | ||
}, | ||
], | ||
"@typescript-eslint/member-ordering": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-empty-object-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"error", | ||
{ | ||
ignoreParameters: true, | ||
ignoreProperties: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-redundant-type-constituents": "off", | ||
"@typescript-eslint/no-require-imports": "error", | ||
"@typescript-eslint/no-this-alias": "error", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-enum-comparison": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unused-expressions": "error", | ||
"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "none" }], | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-var-requires": "error", | ||
"@typescript-eslint/prefer-for-of": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/prefer-regexp-exec": "off", | ||
"@typescript-eslint/prefer-promise-reject-errors": "off", | ||
"@stylistic/quotes": ["error", "double"], | ||
"@typescript-eslint/restrict-template-expressions": [ | ||
"error", | ||
{ | ||
allowNumber: true, | ||
allowBoolean: true, | ||
allowAny: true, | ||
allowNullish: false, | ||
}, | ||
], | ||
"@stylistic/semi": ["error"], | ||
"@typescript-eslint/no-shadow": [ | ||
"error", | ||
{ | ||
hoist: "all", | ||
}, | ||
], | ||
"@typescript-eslint/triple-slash-reference": [ | ||
"error", | ||
{ | ||
path: "always", | ||
types: "prefer-import", | ||
lib: "always", | ||
}, | ||
], | ||
"@stylistic/type-annotation-spacing": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
"arrow-body-style": "off", | ||
"arrow-parens": ["off", "always"], | ||
"brace-style": ["error", "1tbs"], | ||
complexity: "off", | ||
"constructor-super": "error", | ||
curly: "error", | ||
"eol-last": "error", | ||
eqeqeq: ["error", "smart"], | ||
"guard-for-in": "off", | ||
"id-blacklist": [ | ||
"error", | ||
"any", | ||
"Number", | ||
"number", | ||
"String", | ||
"string", | ||
"Boolean", | ||
"boolean", | ||
"Undefined", | ||
"undefined", | ||
], | ||
"id-match": "error", | ||
"import/no-default-export": "off", | ||
"import/no-unassigned-import": "off", | ||
"jsdoc/check-alignment": "error", | ||
"jsdoc/check-indentation": "error", | ||
"max-classes-per-file": ["error", 5], | ||
"max-lines": ["error", 700], | ||
"n/file-extension-in-import": ["error", "always"], | ||
"new-parens": "error", | ||
"no-bitwise": "error", | ||
"no-caller": "error", | ||
"no-cond-assign": "error", | ||
"no-console": "error", | ||
"no-debugger": "error", | ||
"no-empty": "off", | ||
"no-eval": "error", | ||
"no-fallthrough": "off", | ||
"no-invalid-this": "off", | ||
"no-multiple-empty-lines": "error", | ||
"no-new-wrappers": "error", | ||
"no-null/no-null": "off", | ||
"no-restricted-imports": ["error", "rxjs"], | ||
"no-shadow": "off", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef-init": "error", | ||
"no-underscore-dangle": ["error", { allow: ["_currentRetry", "_retriedTest", "_retries"] }], | ||
"no-unsafe-finally": "error", | ||
"no-unused-labels": "error", | ||
"no-var": "error", | ||
"object-shorthand": "off", | ||
"one-var": ["off", "never"], | ||
"padding-line-between-statements": [ | ||
"off", | ||
{ | ||
blankLine: "always", | ||
prev: "*", | ||
next: "return", | ||
}, | ||
], | ||
"prefer-arrow/prefer-arrow-functions": "error", | ||
"prefer-const": "error", | ||
"prefer-template": "error", | ||
"quote-props": ["error", "consistent-as-needed"], | ||
radix: "error", | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
anonymous: "always", | ||
asyncArrow: "always", | ||
named: "never", | ||
}, | ||
], | ||
"spaced-comment": [ | ||
"warn", | ||
"always", | ||
{ | ||
markers: ["/"], | ||
}, | ||
], | ||
"use-isnan": "error", | ||
"valid-typeof": "off", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.yarn/** linguist-vendored | ||
/.yarn/releases/* binary | ||
/.yarn/plugins/**/* binary | ||
/.pnp.* binary linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build project | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20.x' | ||
cache: 'yarn' | ||
- name: Install dependencies | ||
run: yarn install --immutable --immutable-cache --check-cache | ||
- name: Install playwright for static server | ||
run: yarn workspace @allure/static-server playwright install chromium | ||
- name: Install playwright for e2e | ||
run: yarn workspace @allure/e2e playwright install chromium | ||
- name: Build project | ||
run: yarn build | ||
- name: Test Project | ||
run: yarn test | ||
- name: Generate report | ||
run: yarn report | ||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/main' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./out/allure-report/awesome | ||
publish_branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# allure commandline | ||
.allure | ||
allure-report | ||
|
||
# yarn | ||
.yarn/* | ||
!.yarn/cache | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
#IDEA Files | ||
.idea/* | ||
!.idea/vcs.xml | ||
!.idea/icon.png | ||
*.iml | ||
*.ipr | ||
|
||
#Eclipse files | ||
*.settings | ||
*.classpath | ||
*.project | ||
*.pydevproject | ||
|
||
#Node | ||
node_modules | ||
|
||
#Other | ||
.repo | ||
|
||
#Mac OS stuff | ||
**/.DS_Store | ||
|
||
#Junk | ||
out | ||
dist | ||
dist-tests | ||
*.tgz | ||
*.log | ||
.gradle | ||
schema | ||
build | ||
**/allure-results | ||
**/.nyc_output | ||
**/package.tgz | ||
**/wallaby.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn lint-staged |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.