Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
112 changes: 0 additions & 112 deletions .eslintrc.base.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Bug report
description: Create a report to help us improve.
labels: [ "bug" ]
labels: ['bug']
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Feature request
description: Suggest an idea for this project.
labels: [ "enhancement" ]
labels: ['enhancement']
body:
- type: markdown
attributes:
Expand Down
62 changes: 31 additions & 31 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
version: 2
updates:
- package-ecosystem: "npm"
directories:
- "/"
- "/components"
- "/dashboards"
- "/explore"
- "/plugin-system"
open-pull-requests-limit: 5
schedule:
interval: "monthly"
groups:
npm:
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
- package-ecosystem: "gomod"
directory: "/"
open-pull-requests-limit: 10
schedule:
interval: "weekly"
groups:
gomod:
patterns:
- "*"
- package-ecosystem: 'npm'
directories:
- '/'
- '/components'
- '/dashboards'
- '/explore'
- '/plugin-system'
open-pull-requests-limit: 5
schedule:
interval: 'monthly'
groups:
npm:
patterns:
- '*'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
actions:
patterns:
- '*'
- package-ecosystem: 'gomod'
directory: '/'
open-pull-requests-limit: 10
schedule:
interval: 'weekly'
groups:
gomod:
patterns:
- '*'
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
enable_npm: true
- run: npm ci
- run: npm run lint
- run: npm run format:check

test-npm:
name: 'test-npm'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
with:
enable_go: true
enable_cue: true
cue_version: "v0.15.1"
cue_version: 'v0.15.1'
- name: check that CUE schemas evaluate correctly
run: make cue-eval
- name: run the unit tests for CUE schemas
run: make cue-test

publish-module:
name: "publish CUE module to Central Registry"
needs: "validate-schemas"
name: 'publish CUE module to Central Registry'
needs: 'validate-schemas'
runs-on: ubuntu-latest
if: ${{ github.event.release.tag_name }}
steps:
Expand All @@ -44,7 +44,7 @@ jobs:
with:
enable_go: true
enable_cue: true
cue_version: "v0.15.1"
cue_version: 'v0.15.1'
- name: Login to Central Registry # to allow publishing the module
run: cue login --token=${{ secrets.CUE_REG_TOKEN }}
- name: Publish the module
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
version: v2.12.2
args: --timeout 5m
checklicense:
name: "check license headers"
name: 'check license headers'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down
7 changes: 7 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5",
"sortImports": {},
"ignorePatterns": ["**/dist", "**/*.md", "**/*.mdx", "package-lock.json", ".github/perses-ci", ".github/perses-ci/**"]
}
46 changes: 46 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"plugins": ["typescript", "react", "jsx-a11y", "import"],
"categories": {
"correctness": "error"
},
"env": {
"commonjs": true,
"es6": true,
"jest": true,
"browser": true
},
"rules": {
"typescript/explicit-function-return-type": "error",
"typescript/explicit-module-boundary-types": "error",
"typescript/array-type": ["error", { "default": "array-simple" }],
"eqeqeq": ["error", "always"],
"no-unused-vars": "off",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"react/exhaustive-deps": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-curly-brace-presence": [
"error",
{ "props": "never", "children": "never", "propElementValues": "always" }
],
"import/no-duplicates": "error",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["mdi-material-ui", "!mdi-material-ui/"],
"message": "Please use the default import from the icon file directly rather than using a named import.\n\nGood:\nimport IconName from 'mdi-material-ui/IconName';\n\nBad:\nimport { IconName } from 'mdi-material-ui';\n"
}
]
}
]
},
"ignorePatterns": ["**/dist"]
}
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc.json

This file was deleted.

14 changes: 0 additions & 14 deletions client/.eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions client/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// limitations under the License.

import type { Config } from '@jest/types';

import shared from '../jest.shared';

const jestConfig: Config.InitialOptions = {
Expand Down
28 changes: 14 additions & 14 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
"name": "@perses-dev/client",
"version": "0.54.0-beta.7",
"description": "Functions as an API client or Data fetching Layer for interacting with a backend service",
"license": "Apache-2.0",
"homepage": "https://github.com/perses/perses/blob/main/README.md",
"bugs": {
"url": "https://github.com/perses/perses/issues"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/perses/perses.git"
},
"bugs": {
"url": "https://github.com/perses/perses/issues"
},
"module": "dist/index.js",
"files": [
"dist"
],
"main": "dist/cjs/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"@perses-dev/spec": "0.2.0-beta.3",
"zod": "^3.21.4"
},
"scripts": {
"clean": "rimraf dist/",
"build": "concurrently \"npm:build:*\"",
Expand All @@ -28,10 +27,11 @@
"start": "concurrently -P \"npm:build:* -- {*}\" -- --watch",
"test": "cross-env TZ=UTC jest --passWithNoTests",
"test:watch": "cross-env TZ=UTC jest --watch",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint --fix src --ext .ts,.tsx"
"lint": "oxlint src",
"lint:fix": "oxlint --fix src"
},
"files": [
"dist"
]
"dependencies": {
"@perses-dev/spec": "0.2.0-beta.3",
"zod": "^3.21.4"
}
}
1 change: 1 addition & 0 deletions client/src/model/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// limitations under the License.

import { DatasourceSpec, DatasourceSelector } from '@perses-dev/spec';

import { Metadata, ProjectMetadata } from './resource';
export type { DatasourceSelector, DatasourceSpec };

Expand Down
1 change: 1 addition & 0 deletions client/src/model/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// limitations under the License.

import { Display } from '@perses-dev/spec';

import { Kind } from './kind';

export function isProjectMetadata(metadata: Metadata | ProjectMetadata): metadata is ProjectMetadata {
Expand Down
Loading
Loading