-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
4,319 additions
and
11 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,32 @@ | ||
name: Lint javascript | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'javascript/**' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'javascript/**' | ||
|
||
jobs: | ||
lint_javascript: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Cancel previous | ||
uses: styfle/cancel-workflow-action@0.8.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Lint javascript | ||
working-directory: ./javascript | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn check-lint | ||
yarn check-format |
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,28 @@ | ||
name: Lint webdriver_java | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'webdriver_java/**' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'webdriver_java/**' | ||
|
||
jobs: | ||
lint_webdriver_java: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Cancel previous | ||
uses: styfle/cancel-workflow-action@0.8.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Lint webdriver_java | ||
uses: axel-op/googlejavaformat-action@v3 | ||
with: | ||
args: "--dry-run --set-exit-if-changed" |
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,31 @@ | ||
name: Test javascript | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'javascript/**' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'javascript/**' | ||
|
||
jobs: | ||
test_javascript: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Cancel previous | ||
uses: styfle/cancel-workflow-action@0.8.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Test javascript | ||
working-directory: ./javascript | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn test |
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,34 @@ | ||
name: Test webdriver_java | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'javascript/**' | ||
- 'webdriver_java/**' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'javascript/**' | ||
- 'webdriver_java/**' | ||
|
||
jobs: | ||
test_webdriver_java: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Cancel previous | ||
uses: styfle/cancel-workflow-action@0.8.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- name: Setup JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Test webdriver_java | ||
run: | | ||
cd webdriver_java | ||
mvn test |
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
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 @@ | ||
BasedOnStyle: Google |
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 @@ | ||
src/lib/parser.ts |
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,110 @@ | ||
{ | ||
"env": {"browser": true, "es6": true, "node": true}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": {"sourceType": "module"}, | ||
"plugins": [ | ||
"eslint-plugin-ban", | ||
"eslint-plugin-jsdoc", | ||
"eslint-plugin-import", | ||
"eslint-plugin-prefer-arrow", | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/array-type": ["error", {"default": "array-simple"}], | ||
"@typescript-eslint/ban-ts-comment": "error", | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"types": { | ||
"Object": {"message": "Use {} or 'object' instead."}, | ||
"String": {"message": "Use 'string' instead."}, | ||
"Number": {"message": "Use 'number' instead."}, | ||
"Boolean": {"message": "Use 'boolean' instead."} | ||
} | ||
} | ||
], | ||
"@typescript-eslint/consistent-type-assertions": "error", | ||
"@typescript-eslint/consistent-type-definitions": "error", | ||
"@typescript-eslint/explicit-member-accessibility": | ||
["error", {"accessibility": "no-public"}], | ||
"@typescript-eslint/member-delimiter-style": [ | ||
"error", | ||
{ | ||
"multiline": {"delimiter": "semi", "requireLast": true}, | ||
"singleline": {"delimiter": "semi", "requireLast": false} | ||
} | ||
], | ||
"@typescript-eslint/naming-convention": [ | ||
"error", | ||
{ | ||
"selector": "variable", | ||
"modifiers": ["const"], | ||
"format": ["UPPER_CASE", "camelCase"] | ||
}, | ||
{ | ||
"selector": "variable", | ||
"format": ["camelCase"] | ||
}, | ||
{ | ||
"selector": "typeLike", | ||
"format": ["PascalCase"] | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-namespace": "error", | ||
"@typescript-eslint/no-require-imports": "error", | ||
"@typescript-eslint/no-unused-expressions": | ||
["error", {"allowShortCircuit": true}], | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/semi": ["error", "always"], | ||
"@typescript-eslint/triple-slash-reference": "error", | ||
"arrow-body-style": "error", | ||
"curly": ["error", "multi-line"], | ||
"default-case": "error", | ||
"eqeqeq": ["error", "smart"], | ||
"guard-for-in": "error", | ||
"import/no-default-export": "error", | ||
"jsdoc/check-alignment": "error", | ||
"new-parens": "error", | ||
"no-cond-assign": "error", | ||
"no-debugger": "error", | ||
"no-duplicate-case": "error", | ||
"no-new-wrappers": "error", | ||
"no-return-await": "error", | ||
"no-throw-literal": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unused-labels": "error", | ||
"no-useless-constructor": "off", | ||
"@typescript-eslint/no-useless-constructor": ["error"], | ||
"no-var": "error", | ||
"object-shorthand": "error", | ||
"prefer-const": ["error", {"destructuring": "all"}], | ||
"radix": "error", | ||
"ban/ban": [ | ||
"error", | ||
{"name": "fit"}, | ||
{"name": "fdescribe"}, | ||
{"name": "xit"}, | ||
{"name": "xdescribe"}, | ||
{"name": "fitAsync"}, | ||
{"name": "xitAsync"}, | ||
{"name": "fitFakeAsync"}, | ||
{"name": "xitFakeAsync"}, | ||
{"name": ["it", "skip"]}, | ||
{"name": ["it", "only"]}, | ||
{"name": ["it", "async", "skip"]}, | ||
{"name": ["it", "async", "only"]}, | ||
{"name": ["describe", "skip"]}, | ||
{"name": ["describe", "only"]}, | ||
{"name": ["describeWithDate", "skip"]}, | ||
{"name": ["describeWithDate", "only"]}, | ||
{ | ||
"name": "parseInt", | ||
"message": "Use Number() and Math.floor or Math.trunc" | ||
}, | ||
{"name": "parseFloat", "message": "Use Number()"}, | ||
{"name": "Array", "message": "Use square brackets"}, | ||
{"name": ["*", "innerText"], "message": "Use .textContent instead."} | ||
] | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.