Skip to content

Commit

Permalink
Fix and run yarn format script
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Turley <[email protected]>
  • Loading branch information
mturley committed Dec 19, 2023
1 parent 42616b2 commit 5c2bba8
Show file tree
Hide file tree
Showing 56 changed files with 1,730 additions and 1,414 deletions.
18 changes: 9 additions & 9 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
coverage:
precision: 2
round: down
range: "55...95"
range: '55...95'

status:
project:
default:
target: "60%"
target: '60%'
patch:
default: off
changes:
default: off

comment:
layout: "header, reach, diff, flags, files, footer"
layout: 'header, reach, diff, flags, files, footer'
behavior: default
require_changes: no
require_base: no
require_head: yes

ignore:
- "src/common/*"
- "src/setupTests.js"
- "src/**/*store.js"
- "src/redux/index.js"
- "src/components/app.js"
- "src/redux/middleware/*"
- 'src/common/*'
- 'src/setupTests.js'
- 'src/**/*store.js'
- 'src/redux/index.js'
- 'src/components/app.js'
- 'src/redux/middleware/*'
61 changes: 28 additions & 33 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@
"parserOptions": {
"ecmaVersion": 2022
},
"plugins": [
"import",
"jest",
"jsdoc",
"json",
"node",
"prettier",
"react"
],
"plugins": ["import", "jest", "jsdoc", "json", "node", "prettier", "react"],
"settings": {
"import/external-module-folders": ["public"],
"jsdoc": {}
Expand All @@ -34,10 +26,7 @@
"shallowComponent": "readonly"
},
"rules": {
"arrow-parens": [
"error",
"as-needed"
],
"arrow-parens": ["error", "as-needed"],
"class-methods-use-this": 1,
"comma-dangle": 0,
"consistent-return": 1,
Expand All @@ -59,10 +48,7 @@
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"jest/no-done-callback": 0,
"jest/no-standalone-expect": [
2,
{ "additionalTestBlockFunctions": ["skipIt"] }
],
"jest/no-standalone-expect": [2, { "additionalTestBlockFunctions": ["skipIt"] }],
"jest/prefer-to-have-length": 0,
"jsdoc/check-tag-names": [
2,
Expand Down Expand Up @@ -115,38 +101,47 @@
"no-lonely-if": 1,
"no-plusplus": 0,
"no-promise-executor-return": 1,
"no-restricted-exports": [1, {"restrictedNamedExports": []}],
"no-restricted-properties": [0, {"object": "Math", "property": "pow"}],
"no-restricted-exports": [1, { "restrictedNamedExports": [] }],
"no-restricted-properties": [0, { "object": "Math", "property": "pow" }],
"no-underscore-dangle": 0,
"no-unsafe-optional-chaining": 1,
"prefer-exponentiation-operator": 0,
"prefer-promise-reject-errors": 1,
"prefer-regex-literals": 0,
"react/forbid-prop-types": 0,
"react/function-component-definition": [2, { "namedComponents": "arrow-function", "unnamedComponents": "arrow-function" }],
"react/function-component-definition": [
2,
{ "namedComponents": "arrow-function", "unnamedComponents": "arrow-function" }
],
"react/jsx-curly-newline": 0,
"react/jsx-filename-extension": 0,
"react/jsx-fragments": [ 1, "element" ],
"react/jsx-fragments": [1, "element"],
"react/jsx-props-no-spreading": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-no-constructed-context-values": 1,
"react/no-unused-prop-types": 1,
"react/no-unstable-nested-components": 0,
"react/jsx-no-useless-fragment": 1,
"react/state-in-constructor": [ 1, "never" ],
"react/state-in-constructor": [1, "never"],
"space-before-function-paren": 0,
"jsx-a11y/anchor-is-valid": 1,
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"some": [ "nesting", "id" ]
"jsx-a11y/label-has-associated-control": [
2,
{
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}
],
"jsx-a11y/label-has-for": [
2,
{
"components": ["Label"],
"required": {
"some": ["nesting", "id"]
}
}
}]
]
}
}
11 changes: 10 additions & 1 deletion .github/ISSUE_TEMPLATE/Bug Report.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
---
name: Bug report
about: Create a report to help us improve

---

## Bug Description:

<!-- Provide a description of the issue being raised. -->

### Expected behavior

<!-- Describe the expected behavior for the program. -->

...

### Actual behavior

<!-- Provide the actual behavior for the program. -->

...

### Steps to reproduce

<!-- List clear steps to reproduce the bug. -->

1.
1.

## Additional Context

<!-- Append a demo/screenshot/animated gif of the problem -->

### Version Information

<!-- Package.json version, tag, or git commit information. -->

...
15 changes: 11 additions & 4 deletions .github/ISSUE_TEMPLATE/Feature Request.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
---
name: Feature request
about: Suggest an idea for this project

---

## Feature description

As user X, I want Y to happen so that Z.

### Is your feature request related to a problem?

<!-- Provide a clear, concise description of what the problem is. Ex. I'm always frustrated when... -->

...

### Describe the solution you'd like

<!-- A clear and concise description of what you want to happen. -->

...
___

---

## Acceptance Criteria

- [ ] Verify that users can X Y Z

___
---

## Additional context

<!-- Add any other context. Is there an associated storyboard? Attach the link/png/screenshot -->
...

...
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## What's included

<!-- Summary of changes/additions -->

...

<!-- ### Notes -->
<!-- Any issues that aren't resolved by this merge request, or things of note? -->

## How to test

<!-- Are there directions to test/review? -->
<!--
### Coverage and basic unit test check
Expand All @@ -31,9 +34,12 @@
-->

## Example

<!-- Append a demo/screenshot/animated gif of the solution -->

...

## Updates issue/story

<!-- What issue/story does this update, i.e Updates #33 -->
<!-- [DISCOVERY-X](https://issues.redhat.com/browse/DISCOVERY-X) -->
16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ updates:
interval: monthly
day: monday
open-pull-requests-limit: 3
target-branch: "main"
target-branch: 'main'
versioning-strategy: increase
allow:
- dependency-type: direct
ignore:
- dependency-name: "*patternfly*"
- dependency-name: "*i18next*"
- dependency-name: "react-router*"
- dependency-name: "quipudocs"
- dependency-name: '*patternfly*'
- dependency-name: '*i18next*'
- dependency-name: 'react-router*'
- dependency-name: 'quipudocs'
labels:
- "build"
- 'build'

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
day: monday
open-pull-requests-limit: 2
target-branch: "main"
target-branch: 'main'
labels:
- "build"
- 'build'
3 changes: 1 addition & 2 deletions .github/workflows/commit_lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Commit lint
on:
pull_request
on: pull_request
env:
BRANCH: ${{ github.base_ref }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [master, main, dev**]
tags:
- "*"
- '*'
pull_request:
env:
COV_NODE_VERSION: 18
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
uses: ncipollo/[email protected]
if: ${{ success() && startsWith(matrix.node-version, env.COV_NODE_VERSION) && startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: "${{ env.UPSTREAM_TAR }}.gz"
artifacts: '${{ env.UPSTREAM_TAR }}.gz'
# set allow updates so we can create releases to trigger this
allowUpdates: true
# don't override what's set on the release
Expand Down
Loading

0 comments on commit 5c2bba8

Please sign in to comment.