Skip to content

Commit d6e93f1

Browse files
committed
updates and fix lint
1 parent 151d54b commit d6e93f1

File tree

18 files changed

+44
-58
lines changed

18 files changed

+44
-58
lines changed

eslint.config.mjs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,7 @@ import { defineConfig, globalIgnores } from 'eslint/config'
22
import typescriptEslint from '@typescript-eslint/eslint-plugin'
33
import globals from 'globals'
44
import tsParser from '@typescript-eslint/parser'
5-
import path from 'node:path'
6-
import { fileURLToPath } from 'node:url'
7-
import js from '@eslint/js'
85
import neostandard from 'neostandard'
9-
import { FlatCompat } from '@eslint/eslintrc'
10-
11-
const __filename = fileURLToPath(import.meta.url)
12-
const __dirname = path.dirname(__filename)
13-
const compat = new FlatCompat({
14-
baseDirectory: __dirname,
15-
recommendedConfig: js.configs.recommended,
16-
allConfig: js.configs.all
17-
})
186

197
export default defineConfig([
208
...neostandard(),
@@ -45,8 +33,8 @@ export default defineConfig([
4533

4634
parser: tsParser,
4735
},
48-
49-
files: ["src/**/*.js", "src/**/*.ts", "src/**/*.cjs", "src/**/*.mjs"],
36+
37+
files: ['src/**/*.js', 'src/**/*.ts', 'src/**/*.cjs', 'src/**/*.mjs'],
5038

5139
rules: {
5240
'no-console': 'error',

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solid-ui",
3-
"version": "2.5.1",
3+
"version": "2.6.0",
44
"description": "UI library for writing Solid read-write-web applications",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
6060
"escape-html": "^1.0.3",
6161
"i": "^0.3.7",
6262
"mime-types": "^3.0.1",
63-
"pane-registry": "^2.4.27",
63+
"pane-registry": "^2.5.0",
6464
"rdflib": "^2.2.37",
65-
"solid-logic": "^3.0.8",
65+
"solid-logic": "^3.0.9",
6666
"solid-namespace": "^0.5.4",
6767
"uuid": "^11.1.0"
6868
},

src/chat/signature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const utf8Encoder = new TextEncoder()
1111
export const SEC = 'https://w3id.org/security#' // Proof, VerificationMethod
1212
// export const CERT = 'http://www.w3.org/ns/auth/cert#' // PrivateKey, PublicKey, key
1313

14-
/* eslint-disable no-unused-vars */
1514
/* export enum Kind {
1615
Metadata = 0,
1716
Text = 1,

src/footer/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const DEFAULT_SOLID_PROJECT_NAME = 'solidproject.org'
1414
FooterOptions allow for customizing the link and name of the link part of the footer.
1515
*/
1616
export type FooterOptions = {
17-
solidProjectUrl?: string,
18-
solidProjectName?: string
19-
}
17+
solidProjectUrl?: string,
18+
solidProjectName?: string
19+
}
2020

2121
/**
2222
* Initialize footer component, the footer object returned depends on whether the user is authenticated.

src/iconBase.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* You can also use it if you want to just run a mashlib whhich takes its
1313
* icons seved by other than github.
1414
*/
15-
/* eslint-disable multiline-ternary */
1615

1716
import { log } from './debug'
1817

src/login/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
import { PaneDefinition } from 'pane-registry'
2727
import { BlankNode, NamedNode, st } from 'rdflib'
28-
// eslint-disable-next-line camelcase
28+
2929
import { Quad_Object } from 'rdflib/lib/tf-types'
3030
import {
3131
AppDetails,
@@ -802,7 +802,7 @@ export function selectWorkspace (
802802
const newWs = widgets.newThing(context.preferencesFile)
803803
const newData = [
804804
st(context.me, ns.space('workspace'), newWs, context.preferencesFile),
805-
// eslint-disable-next-line camelcase
805+
806806
st(
807807
newWs,
808808
ns.space('uriPrefix'),

src/matrix/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export type MatrixOptions = {
22
cellFunction?: (td, x, y, value) => string
33
xDecreasing?: boolean
44
yDecreasing?: boolean
5-
// eslint-disable-next-line camelcase
5+
66
set_x: any[]
7-
// eslint-disable-next-line camelcase
7+
88
set_y: any[]
99
}

src/tabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type TabWidgetOptions = {
2525
selectedTab?: NamedNode;
2626
startEmpty?: boolean;
2727
subject?: NamedNode;
28-
};
28+
}
2929

3030
export class TabWidgetElement extends HTMLElement {
3131
bodyContainer?: HTMLElement

src/utils/headerFooterHelpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { ns } from '..'
66

77
/* @ts-ignore no-console */
88
type ThrottleOptions = {
9-
leading?: boolean;
10-
throttling?: boolean;
11-
trailing?: boolean;
9+
leading?: boolean;
10+
throttling?: boolean;
11+
trailing?: boolean;
1212
}
1313

1414
/**

0 commit comments

Comments
 (0)