-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,082 changed files
with
118,787 additions
and
1 deletion.
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,20 @@ | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "55...95" | ||
|
||
status: | ||
project: | ||
default: | ||
target: "60%" | ||
patch: | ||
default: off | ||
changes: | ||
default: off | ||
|
||
comment: | ||
layout: "header, reach, diff, flags, files, footer" | ||
behavior: default | ||
require_changes: no | ||
require_base: no | ||
require_head: yes |
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 @@ | ||
node_modules/* |
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,27 @@ | ||
# Javascript builds | ||
node_modules | ||
public | ||
dist | ||
.DS_Store | ||
coverage | ||
|
||
# package managers | ||
npm-debug.log | ||
yarn-debug.log | ||
yarn-error.log | ||
|
||
# IDEs and editors | ||
.idea | ||
.project | ||
.classpath | ||
.c9 | ||
*.launch | ||
.settings | ||
*.sublime-workspace | ||
.history | ||
.vscode | ||
|
||
# IDE - VSCode | ||
.vscode | ||
# For vim | ||
*.swp |
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,157 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"formatjs", | ||
"patternfly-react", | ||
"prettier", | ||
"react", | ||
"simple-import-sort", | ||
"sort-keys-fix", | ||
"testing-library" | ||
], | ||
"extends": [ | ||
"@redhat-cloud-services/eslint-config-redhat-cloud-services", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended" | ||
], | ||
"parserOptions": { | ||
// "project": ["./tsconfig.json"], | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"globals": { | ||
"afterEach": "readonly", | ||
"beforeEach": "readonly", | ||
"describe": "readonly", | ||
"expect": "readonly", | ||
"global": "writable", | ||
"insights": "readonly", | ||
"it": "readonly", | ||
"jest": "readonly", | ||
"mount": "readonly", | ||
"render": "readonly", | ||
"require": "readonly", | ||
"test": "readonly", | ||
"shallow": "readonly" | ||
}, | ||
"rules": { | ||
"@typescript-eslint/adjacent-overload-signatures": "error", | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/ban-types": "error", | ||
"@typescript-eslint/camelcase": "off", | ||
// "@typescript-eslint/class-name-casing": "error", | ||
"@typescript-eslint/consistent-type-assertions": "error", | ||
"@typescript-eslint/consistent-type-definitions": "error", | ||
// "@typescript-eslint/consistent-type-exports": "error", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/explicit-member-accessibility": "off", | ||
"@typescript-eslint/indent": "off", | ||
// "@typescript-eslint/interface-name-prefix": "error", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-namespace": "error", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/prefer-for-of": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/triple-slash-reference": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
"arrow-parens": [2, "as-needed", { "requireForBlockBody": false }], | ||
"constructor-super": "error", | ||
"curly": "error", | ||
"dot-notation": "error", | ||
"eqeqeq": [ | ||
"error", | ||
"smart" | ||
], | ||
"formatjs/enforce-default-message": "error", | ||
"formatjs/enforce-description": "error", | ||
"formatjs/enforce-id": "error", | ||
"guard-for-in": "error", | ||
"max-classes-per-file": [ | ||
"error", | ||
1 | ||
], | ||
"max-len": "off", | ||
"no-bitwise": "error", | ||
"no-caller": "error", | ||
"no-cond-assign": "error", | ||
"no-console": "error", | ||
"no-debugger": "error", | ||
"no-empty": "error", | ||
"no-eval": "error", | ||
"no-new-wrappers": "error", | ||
"no-prototype-builtins": "off", | ||
"no-restricted-imports": ["error", { | ||
"patterns": ["../*/**"] | ||
}], | ||
"no-shadow": "error", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "off", | ||
"no-undef": "off", | ||
"no-undef-init": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unused-expressions": ["error", { | ||
"allowTernary": true, | ||
"allowShortCircuit": true | ||
}], | ||
"no-unused-labels": "error", | ||
"no-var": "error", | ||
"object-shorthand": "error", | ||
"one-var": [ | ||
"error", | ||
"never" | ||
], | ||
"patternfly-react/no-anonymous-functions": 0, | ||
"prefer-const": "error", | ||
"prettier/prettier": "error", | ||
"radix": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"react-hooks/exhaustive-deps": 0, // "warn", | ||
"react/display-name": 0, | ||
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"]}], | ||
"react/no-unknown-property": ["error", { "ignore": ["key"]}], | ||
"react/prop-types": 0, | ||
"simple-import-sort/imports": "error", | ||
"spaced-comment": "error", | ||
"rulesdir/disallow-pf-migrated-components": "off", | ||
"rulesdir/forbid-pf-relative-imports": "off", | ||
"testing-library/await-async-queries": "error", | ||
"testing-library/no-await-sync-queries": "error", | ||
"testing-library/no-debugging-utils": "warn", | ||
"testing-library/no-dom-import": "off", | ||
"use-isnan": "error" | ||
}, | ||
"overrides": [{ | ||
"files": [ "src/locales/messages.ts" ], | ||
"rules": { | ||
"sort-keys-fix/sort-keys-fix": "error" | ||
} | ||
}, { | ||
// Enable eslint-plugin-testing-library rules or preset only for matching files! | ||
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"], | ||
"extends": ["plugin:testing-library/react"] | ||
}] | ||
} |
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,41 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**To submit an issue please visit https://issues.redhat.com/projects/COST/** | ||
|
||
|
||
~~**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,31 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**To submit an issue please visit https://issues.redhat.com/projects/COST/** | ||
|
||
~~## User Story | ||
As X, I want Y so that Z.~~ | ||
|
||
~~## Impacts | ||
Ex. API, UI, Docs~~ | ||
|
||
~~## Role~~ | ||
|
||
|
||
~~## Assumptions~~ | ||
- | ||
- | ||
|
||
~~## UI Details~~ | ||
|
||
|
||
~~## Acceptance Criteria~~ | ||
|
||
- [ ] | ||
- [ ] |
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,16 @@ | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" # Location of package manifests | ||
target-branch: "main" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 15 | ||
labels: | ||
- "dependency-bot" | ||
commit-message: | ||
prefix: "(chore)" | ||
pull-request-branch-name: | ||
separator: "_" |
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,49 @@ | ||
# Run this workflow for PRs only. Travis is required to push via insights-frontend-builder-common scripts | ||
|
||
name: Pull request | ||
on: | ||
pull_request: | ||
branches: [ main, master, prod-beta, prod-stable, stage-beta, stage-stable ] | ||
env: | ||
BRANCH: ${{ github.base_ref }} | ||
|
||
jobs: | ||
build: | ||
name: koku-ui-mfe build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Lint | ||
if: ${{ success() }} | ||
run: npm run lint | ||
- name: Test | ||
if: ${{ success() }} | ||
run: npm test --coverage --maxWorkers=4 | ||
- name: Code coverage | ||
if: ${{ success() }} | ||
uses: codecov/codecov-action@v1 |
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,27 @@ | ||
# https://github.com/marketplace/actions/close-stale-issues | ||
|
||
name: Close inactive issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
days-before-issue-close: 14 | ||
days-before-issue-stale: 30 | ||
days-before-pr-close: 14 | ||
days-before-pr-stale: 30 | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale." | ||
stale-issue-label: "stale" | ||
stale-pr-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity." | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.