Skip to content

Commit e0911cf

Browse files
committed
Added packages
1 parent 72c560b commit e0911cf

File tree

16 files changed

+34782
-28138
lines changed

16 files changed

+34782
-28138
lines changed

.github/linters/.eslintrc.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ globals:
88
SharedArrayBuffer: readonly
99

1010
ignorePatterns:
11-
- '!.*'
12-
- '**/node_modules/.*'
13-
- '**/dist/.*'
14-
- '**/coverage/.*'
15-
- '*.json'
11+
- "!.*"
12+
- "**/node_modules/.*"
13+
- "**/dist/.*"
14+
- "**/coverage/.*"
15+
- "*.json"
1616

17-
parser: '@typescript-eslint/parser'
17+
parser: "@typescript-eslint/parser"
1818

1919
parserOptions:
2020
ecmaVersion: 2023
2121
sourceType: module
2222
project:
23-
- './.github/linters/tsconfig.json'
24-
- './tsconfig.json'
23+
- "./.github/linters/tsconfig.json"
24+
- "./tsconfig.json"
2525

2626
plugins:
2727
- jest
28-
- '@typescript-eslint'
28+
- "@typescript-eslint"
2929

3030
extends:
3131
- eslint:recommended
@@ -34,31 +34,31 @@ extends:
3434

3535
rules:
3636
{
37-
'camelcase': 'off',
38-
'eslint-comments/no-use': 'off',
39-
'eslint-comments/no-unused-disable': 'off',
40-
'i18n-text/no-en': 'off',
41-
'import/no-namespace': 'off',
42-
'no-console': 'off',
43-
'semi': 'off',
44-
'@typescript-eslint/array-type': 'error',
45-
'@typescript-eslint/consistent-type-assertions': 'error',
46-
'@typescript-eslint/explicit-member-accessibility':
47-
['error', { 'accessibility': 'no-public' }],
48-
'@typescript-eslint/explicit-function-return-type':
49-
['error', { 'allowExpressions': true }],
50-
'@typescript-eslint/no-empty-interface': 'error',
51-
'@typescript-eslint/no-extraneous-class': 'error',
52-
'@typescript-eslint/no-inferrable-types': 'error',
53-
'@typescript-eslint/no-non-null-assertion': 'warn',
54-
'@typescript-eslint/no-unnecessary-qualifier': 'error',
55-
'@typescript-eslint/no-useless-constructor': 'error',
56-
'@typescript-eslint/no-var-requires': 'error',
57-
'@typescript-eslint/prefer-for-of': 'warn',
58-
'@typescript-eslint/prefer-function-type': 'warn',
59-
'@typescript-eslint/prefer-includes': 'error',
60-
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
61-
'@typescript-eslint/promise-function-async': 'error',
62-
'@typescript-eslint/require-array-sort-compare': 'error',
63-
'@typescript-eslint/space-before-function-paren': 'off'
37+
"camelcase": "off",
38+
"eslint-comments/no-use": "off",
39+
"eslint-comments/no-unused-disable": "off",
40+
"i18n-text/no-en": "off",
41+
"import/no-namespace": "off",
42+
"no-console": "off",
43+
"semi": "off",
44+
"@typescript-eslint/array-type": "error",
45+
"@typescript-eslint/consistent-type-assertions": "error",
46+
"@typescript-eslint/explicit-member-accessibility":
47+
["error", { "accessibility": "no-public" }],
48+
"@typescript-eslint/explicit-function-return-type":
49+
["error", { "allowExpressions": true }],
50+
"@typescript-eslint/no-empty-interface": "error",
51+
"@typescript-eslint/no-extraneous-class": "error",
52+
"@typescript-eslint/no-inferrable-types": "error",
53+
"@typescript-eslint/no-non-null-assertion": "warn",
54+
"@typescript-eslint/no-unnecessary-qualifier": "error",
55+
"@typescript-eslint/no-useless-constructor": "error",
56+
"@typescript-eslint/no-var-requires": "error",
57+
"@typescript-eslint/prefer-for-of": "warn",
58+
"@typescript-eslint/prefer-function-type": "warn",
59+
"@typescript-eslint/prefer-includes": "error",
60+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
61+
"@typescript-eslint/promise-function-async": "error",
62+
"@typescript-eslint/require-array-sort-compare": "error",
63+
"@typescript-eslint/space-before-function-paren": "off",
6464
}

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- main
1010
schedule:
11-
- cron: '31 7 * * 3'
11+
- cron: "31 7 * * 3"
1212

1313
permissions:
1414
actions: read

.prettierignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
dist/
2-
node_modules/
3-
coverage/
1+
# Ignore artifacts:
2+
build
3+
coverage

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ There are a few things to keep in mind when writing your action code:
9393
In `main.ts`, you will see that the action is run in an `async` function.
9494

9595
```javascript
96-
import * as core from '@actions/core'
96+
import * as core from "@actions/core";
9797
//...
9898

9999
async function run() {
100100
try {
101101
//...
102102
} catch (error) {
103-
core.setFailed(error.message)
103+
core.setFailed(error.message);
104104
}
105105
}
106106
```

__tests__/index.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
* Unit tests for the action's entrypoint, src/index.ts
33
*/
44

5-
import * as main from '../src/main'
5+
import * as main from "../src/main";
66

77
// Mock the action's entrypoint
8-
const runMock = jest.spyOn(main, 'run').mockImplementation()
8+
const runMock = jest.spyOn(main, "run").mockImplementation();
99

10-
describe('index', () => {
11-
it('calls run when imported', () => {
10+
describe("index", () => {
11+
it("calls run when imported", () => {
1212
// eslint-disable-next-line @typescript-eslint/no-require-imports
13-
require('../src/index')
13+
require("../src/index");
1414

15-
expect(runMock).toHaveBeenCalled()
16-
})
17-
})
15+
expect(runMock).toHaveBeenCalled();
16+
});
17+
});

action.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
name: 'Web Components Code Quality'
1+
name: "Web Components Code Quality"
22
description:
3-
'This action is designed to format and test Web Component repositories on pull
4-
requests. It helps ensure that your code meets the required quality standards.'
5-
author: 'Zebra Technologies'
3+
"This action is designed to format and test Web Component repositories on pull
4+
requests. It helps ensure that your code meets the required quality standards."
5+
author: "Zebra Technologies"
66

77
# Add your action's branding here. This will appear on the GitHub Marketplace.
88
branding:
99
icon: compass
10-
color: 'blue'
10+
color: "blue"
1111

1212
# Define your inputs here.
1313
inputs:
1414
token:
15-
description: 'Token used for pushing fixes and commenting on PRs'
15+
description: "Token used for pushing fixes and commenting on PRs"
1616
required: true
1717

1818
working-directory:
19-
description: 'The working directory'
19+
description: "The working directory"
2020
required: false
21-
default: '.'
21+
default: "."
2222

2323
run-static-analysis:
24-
description: 'Whether to run static analysis'
24+
description: "Whether to run static analysis"
2525
required: false
26-
default: 'true'
26+
default: "true"
2727

2828
run-code-formatting:
29-
description: 'Whether to run code formatting'
29+
description: "Whether to run code formatting"
3030
required: false
31-
default: 'true'
31+
default: "true"
3232

3333
run-tests:
34-
description: 'Whether to run tests'
34+
description: "Whether to run tests"
3535
required: false
36-
default: 'true'
36+
default: "true"
3737

3838
run-coverage:
39-
description: 'Whether to run coverage'
39+
description: "Whether to run coverage"
4040
required: false
41-
default: 'true'
41+
default: "true"
4242

4343
create-comment:
44-
description: 'Whether to create a comment on the PR'
44+
description: "Whether to create a comment on the PR"
4545
required: false
46-
default: 'true'
46+
default: "true"
4747

4848
coverage-pass-score:
49-
description: 'The minimum coverage score required to pass'
49+
description: "The minimum coverage score required to pass"
5050
required: false
51-
default: '80'
51+
default: "80"
5252

5353
# Define your outputs here.
5454
# outputs:

0 commit comments

Comments
 (0)