Skip to content

Commit 0ec0b71

Browse files
committed
chore: eslint fixes.
1 parent b5c0118 commit 0ec0b71

File tree

5 files changed

+110
-95
lines changed

5 files changed

+110
-95
lines changed

.eslintrc

Lines changed: 0 additions & 29 deletions
This file was deleted.

bun.lockb

13.6 KB
Binary file not shown.

eslint.config.mjs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
2+
import tsParser from '@typescript-eslint/parser';
3+
import solid from 'eslint-plugin-solid/configs/recommended';
4+
import globals from 'globals';
5+
6+
export default [
7+
{
8+
ignores: ['dist/**/*', '**/*.js', '**/*.cjs', '**/*.mjs'],
9+
},
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
...solid,
13+
},
14+
{
15+
plugins: {
16+
'@typescript-eslint': typescriptEslint,
17+
},
18+
languageOptions: {
19+
parser: tsParser,
20+
ecmaVersion: 'latest',
21+
sourceType: 'module',
22+
globals: {
23+
...globals.node,
24+
},
25+
},
26+
27+
rules: {
28+
'@typescript-eslint/no-unused-vars': [
29+
1,
30+
{
31+
argsIgnorePattern: '^_',
32+
varsIgnorePattern: '^_',
33+
},
34+
],
35+
'solid/no-unknown-namespaces': [
36+
'off',
37+
{
38+
// an array of additional namespace names to allow
39+
allowedNamespaces: [], // Array<string>
40+
},
41+
],
42+
},
43+
},
44+
];

package.json

Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,38 @@
11
{
22
"name": "solid-number-flow",
33
"version": "0.3.3",
4-
"description": "A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.",
5-
"license": "MIT",
64
"author": "Carlo Taleon",
7-
"contributors": [
8-
{
9-
"name": "Maxwell Barvian",
10-
"email": "[email protected]",
11-
"url": "https://barvian.me"
12-
}
13-
],
145
"repository": {
156
"type": "git",
167
"url": "git+https://github.com/Blankeos/solid-number-flow.git"
178
},
18-
"homepage": "https://solid-number-flow.pages.dev",
19-
"bugs": {
20-
"url": "https://github.com/Blankeos/solid-number-flow/issues"
21-
},
22-
"files": [
23-
"dist"
24-
],
25-
"private": false,
26-
"sideEffects": false,
27-
"type": "module",
289
"main": "./dist/index.js",
2910
"module": "./dist/index.js",
30-
"types": "./dist/index.d.ts",
31-
"browser": {},
32-
"exports": {
33-
"solid": {
34-
"development": "./dist/dev.jsx",
35-
"import": "./dist/index.jsx"
36-
},
37-
"development": {
38-
"import": {
39-
"types": "./dist/index.d.ts",
40-
"default": "./dist/dev.js"
41-
}
42-
},
43-
"import": {
44-
"types": "./dist/index.d.ts",
45-
"default": "./dist/index.js"
46-
}
47-
},
48-
"typesVersions": {},
49-
"scripts": {
50-
"dev": "vite serve dev",
51-
"build": "tsup",
52-
"build:site": "vite build dev",
53-
"preview:site": "vite preview dev",
54-
"test": "concurrently bun:test:*",
55-
"test:client": "vitest",
56-
"test:ssr": "bun run test:client --mode ssr",
57-
"prepublishOnly": "bun run build",
58-
"format": "prettier --ignore-path .gitignore -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" \"dev/**/*.{js,ts,json,css,tsx,jsx}\"",
59-
"lint": "concurrently bun:lint:*",
60-
"lint:code": "eslint --ignore-path .gitignore --max-warnings 0 src/**/*.{js,ts,tsx,jsx}",
61-
"lint:types": "tsc --noEmit",
62-
"update-deps": "bunx npm-check-updates --format group --interactive",
63-
"ci": "bun run lint && bun run build",
64-
"publish": "bun run lint && bun run build && changeset publish"
65-
},
66-
"peerDependencies": {
67-
"solid-js": "^1.6.0"
68-
},
6911
"devDependencies": {
7012
"@changesets/changelog-github": "^0.5.0",
7113
"@changesets/cli": "^2.27.10",
7214
"@kobalte/core": "^0.13.7",
7315
"@tailwindcss/typography": "^0.5.15",
7416
"@types/node": "^20.12.12",
75-
"@typescript-eslint/eslint-plugin": "^7.9.0",
76-
"@typescript-eslint/parser": "^7.9.0",
17+
"@typescript-eslint/eslint-plugin": "^8.19.1",
18+
"@typescript-eslint/parser": "^8.19.1",
7719
"auto-changelog": "^2.5.0",
7820
"autoprefixer": "^10.4.20",
7921
"clsx": "^2.1.1",
8022
"concurrently": "^8.2.2",
8123
"esbuild": "^0.21.3",
8224
"esbuild-plugin-solid": "^0.6.0",
83-
"eslint": "^8.56.0",
25+
"eslint": "^9.18.0",
8426
"eslint-plugin-eslint-comments": "^3.2.0",
8527
"eslint-plugin-no-only-tests": "^3.3.0",
28+
"eslint-plugin-solid": "^0.14.5",
8629
"jsdom": "^24.0.0",
8730
"postcss": "^8.4.47",
8831
"prettier": "3.3.3",
8932
"prettier-plugin-tailwindcss": "^0.6.8",
9033
"shiki": "^1.22.0",
9134
"shikiji": "^0.10.2",
92-
"solid-js": "^1.6.0",
35+
"solid-js": "^1.9.4",
9336
"solid-marked": "^0.6.3",
9437
"tailwindcss": "^3.4.14",
9538
"tsup": "^8.3.0",
@@ -102,6 +45,44 @@
10245
"vite-plugin-solid": "^2.10.2",
10346
"vitest": "^1.6.0"
10447
},
48+
"peerDependencies": {
49+
"solid-js": "^1.9.4"
50+
},
51+
"exports": {
52+
"solid": {
53+
"development": "./dist/dev.jsx",
54+
"import": "./dist/index.jsx"
55+
},
56+
"development": {
57+
"import": {
58+
"types": "./dist/index.d.ts",
59+
"default": "./dist/dev.js"
60+
}
61+
},
62+
"import": {
63+
"types": "./dist/index.d.ts",
64+
"default": "./dist/index.js"
65+
}
66+
},
67+
"browser": {},
68+
"bugs": {
69+
"url": "https://github.com/Blankeos/solid-number-flow/issues"
70+
},
71+
"contributors": [
72+
{
73+
"name": "Maxwell Barvian",
74+
"email": "[email protected]",
75+
"url": "https://barvian.me"
76+
}
77+
],
78+
"description": "A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.",
79+
"engines": {
80+
"node": ">=18"
81+
},
82+
"files": [
83+
"dist"
84+
],
85+
"homepage": "https://solid-number-flow.pages.dev",
10586
"keywords": [
10687
"solid",
10788
"solid-js",
@@ -114,10 +95,30 @@
11495
"number-animation",
11596
"animated-number"
11697
],
117-
"engines": {
118-
"node": ">=18"
98+
"license": "MIT",
99+
"private": false,
100+
"scripts": {
101+
"dev": "vite serve dev",
102+
"build": "tsup",
103+
"build:site": "vite build dev",
104+
"preview:site": "vite preview dev",
105+
"test": "concurrently bun:test:*",
106+
"test:client": "vitest",
107+
"test:ssr": "bun run test:client --mode ssr",
108+
"prepublishOnly": "bun run build",
109+
"format": "prettier --ignore-path .gitignore -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" \"dev/**/*.{js,ts,json,css,tsx,jsx}\"",
110+
"lint": "concurrently bun:lint:*",
111+
"lint:code": "eslint .",
112+
"lint:types": "tsc --noEmit",
113+
"update-deps": "bunx npm-check-updates --format group --interactive",
114+
"ci": "bun run lint && bun run build",
115+
"publish": "bun run lint && bun run build && changeset publish"
119116
},
117+
"sideEffects": false,
118+
"type": "module",
119+
"types": "./dist/index.d.ts",
120+
"typesVersions": {},
120121
"dependencies": {
121-
"number-flow": "^0.3.2"
122+
"number-flow": "^0.5.3"
122123
}
123124
}

test/index.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { createRoot, createSignal } from 'solid-js';
21
import { isServer } from 'solid-js/web';
32
import { describe, expect, it } from 'vitest';
43

0 commit comments

Comments
 (0)