Skip to content

Commit

Permalink
Misc | Lint: Resolve linting errors
Browse files Browse the repository at this point in the history
#0
  • Loading branch information
reb-dev committed Apr 11, 2024
1 parent 22fcd96 commit 50843b2
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 25 deletions.
8 changes: 5 additions & 3 deletions packages/angular/gallery/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import { DataGapLineChartModule } from '@unovis/shared/examples/data-gap-line-ch
import { BasicTimelineModule } from '@unovis/shared/examples/basic-timeline/basic-timeline.module'

// Scatter
import { BasicScatterChartModule } from '@unovis/shared/examples/basic-scatter-chart/basic-scatter-chart.module'
import { BasicScatterPlotModule } from '@unovis/shared/examples/basic-scatter-plot/basic-scatter-plot.module'
import { SizedScatterPlotModule } from '@unovis/shared/examples/sized-scatter-plot/sized-scatter-plot.module'

// Maps
import { BasicLeafletMapModule } from '@unovis/shared/examples/basic-leaflet-map/basic-leaflet-map.module'
Expand Down Expand Up @@ -72,7 +73,8 @@ import { BaselineAreaChartModule } from '@unovis/shared/examples/baseline-area-c
<basic-timeline></basic-timeline>
<!-- Scatter -->
<basic-scatter-chart></basic-scatter-chart>
<basic-scatter-plot></basic-scatter-plot>
<sized-scatter-plot></sized-scatter-plot>
<!-- Maps -->
<basic-leaflet-map></basic-leaflet-map>
Expand Down Expand Up @@ -109,7 +111,7 @@ export class AppComponent {
declarations: [AppComponent],
imports: [
BrowserModule, BasicGroupedBarModule, BasicLeafletMapModule, BasicLineChartModule, MultiLineChartModule,
TopojsonMapModule, StackedBarChartModule, BrushGroupedBarModule, BasicScatterChartModule, FreeBrushScattersModule, NonStackedAreaChartModule,
TopojsonMapModule, StackedBarChartModule, BrushGroupedBarModule, BasicScatterPlotModule, SizedScatterPlotModule, FreeBrushScattersModule, NonStackedAreaChartModule,
BasicTimelineModule, BasicSankeyModule, ExpandableSankeyModule, BasicGraphModule, LeafletFlowMapModule,
ForceLayoutGraphModule, AdvancedLeafletMapModule, StackedAreaModule, ParallelLayoutGraphModule, ElkLayeredGraphModule,
DataGapLineChartModule, CrosshairStackedBarModule, BaselineAreaChartModule, StepAreaChartModule, SunburstChartModule,
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) Volterra, Inc. All rights reserved.

// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
Expand Down
1 change: 0 additions & 1 deletion packages/react/autogen/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright (c) Volterra, Inc. All rights reserved.
import resolve from '@rollup/plugin-node-resolve'
import typescript from 'rollup-plugin-typescript2'
import transformPaths from '@zerollup/ts-transform-paths'
Expand Down
1 change: 0 additions & 1 deletion packages/react/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright (c) Volterra, Inc. All rights reserved.
import resolve from '@rollup/plugin-node-resolve'
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import typescript from 'rollup-plugin-typescript2'
Expand Down
1 change: 0 additions & 1 deletion packages/svelte/autogen/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright (c) Volterra, Inc. All rights reserved.
import resolve from '@rollup/plugin-node-resolve'
import typescript from 'rollup-plugin-typescript2'
import transformPaths from '@zerollup/ts-transform-paths'
Expand Down
29 changes: 14 additions & 15 deletions packages/vue/autogen/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
// Copyright (c) Volterra, Inc. All rights reserved.
import resolve from "@rollup/plugin-node-resolve";
import typescript from "rollup-plugin-typescript2";
import transformPaths from "@zerollup/ts-transform-paths";
import commonjs from "rollup-plugin-commonjs";
import resolve from '@rollup/plugin-node-resolve'
import typescript from 'rollup-plugin-typescript2'
import transformPaths from '@zerollup/ts-transform-paths'
import commonjs from 'rollup-plugin-commonjs'

const extensions = [".ts", ".vue"];
const extensions = ['.ts', '.vue']
const plugins = [
resolve({
extensions,
}),
commonjs(),
typescript({
tsconfig: "./autogen/tsconfig.json",
typescript: require("typescript"),
tsconfig: './autogen/tsconfig.json',
typescript: require('typescript'),
transformers: [(service) => transformPaths(service.getProgram())],
}),
];
]

export default [
{
input: "./autogen/index.ts",
input: './autogen/index.ts',
output: [
{
file: ".autogen.cjs",
format: "cjs",
file: '.autogen.cjs',
format: 'cjs',
globals: {
vue: "Vue",
vue: 'Vue',
},
},
],
plugins,
external: ["vue"],
external: ['vue'],
},
];
]
1 change: 0 additions & 1 deletion packages/website/docs/components/framework-tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright (c) Volterra, Inc. All rights reserved.
import React from 'react'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/utils/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function parseFunction (str: string, type: string): string {
return `(${args}) => ${body}`
}

export function parseObject (value: any, type: string, level = 1): string {
export function parseObject (value: unknown, type: string, level = 1): string {
if (!value) return ''
if (typeof value === 'function') {
const str = String(value)
Expand Down
1 change: 1 addition & 0 deletions packages/website/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const preprocess = require('svelte-preprocess')

/** @type {import('@sveltejs/kit').Config} */
Expand Down

0 comments on commit 50843b2

Please sign in to comment.