Skip to content

Commit 35e34f0

Browse files
committed
Update dev best practices
1 parent ca5c5b3 commit 35e34f0

12 files changed

Lines changed: 540 additions & 1798 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout the repository
15-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
- name: Extract the changelog
1717
id: changelog
1818
run: |
@@ -36,7 +36,7 @@ jobs:
3636
echo "EOF" >> $GITHUB_OUTPUT
3737
- name: Create the release
3838
if: steps.changelog.outputs.changelog_content != ''
39-
uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
39+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
4040
with:
4141
name: ${{ github.ref_name }}
4242
body: '${{ steps.changelog.outputs.changelog_content }}'

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout the repository
16-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717
- name: Install pnpm
18-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
18+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
1919
with:
2020
version: 10
2121
- name: Install Node.js
22-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
22+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2323
with:
2424
node-version: 25
2525
cache: pnpm
@@ -38,13 +38,13 @@ jobs:
3838
name: Node.js ${{ matrix.node-version }} Quick
3939
steps:
4040
- name: Checkout the repository
41-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
41+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4242
- name: Install pnpm
43-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
43+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
4444
with:
4545
version: 10
4646
- name: Install Node.js ${{ matrix.node-version }}
47-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
47+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
4848
with:
4949
node-version: ${{ matrix.node-version }}
5050
cache: pnpm

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import loguxOxfmtConfig from '@logux/oxc-configs/fmt'
2+
3+
export default loguxOxfmtConfig

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Change Log
2+
23
This project adheres to [Semantic Versioning](http://semver.org/).
34

45
## 0.1.2
5-
* Fixed false value on running on server.
6+
7+
- Fixed false value on running on server.
68

79
## 0.1.1
8-
* Fixed custom values types.
10+
11+
- Fixed custom values types.
912

1013
## 0.1.0
11-
* Initial release.
14+
15+
- Initial release.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright 2020 Andrey Sitnik <andrey@sitnik.ru>
3+
Copyright 2020 Andrey Sitnik <andrey@sitnik.es>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

eslint.config.js

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

oxfmt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import loguxOxfmtConfig from '@logux/oxc-configs/fmt'
2+
3+
export default loguxOxfmtConfig

oxlint.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import loguxOxlintConfig from '@logux/oxc-configs/lint'
2+
import { defineConfig } from 'oxlint'
3+
4+
export default defineConfig({
5+
extends: [loguxOxlintConfig],
6+
ignorePatterns: ['*/errors.ts'],
7+
overrides: [
8+
{
9+
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
10+
rules: {
11+
'typescript/no-explicit-any': 'off'
12+
}
13+
}
14+
]
15+
})

package.json

Lines changed: 35 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,55 @@
33
"version": "0.1.2",
44
"description": "A smart store for Nano Stores state manager to sync with some media query",
55
"keywords": [
6-
"nano",
76
"media",
7+
"nano",
8+
"preact",
89
"query",
910
"react",
10-
"preact",
11-
"vue",
11+
"store",
1212
"svelte",
13-
"store"
13+
"vue"
1414
],
15-
"scripts": {
16-
"test:lint": "eslint .",
17-
"test:coverage": "pnpm bnt --coverage 100 --coverage-exclude 'test/*'",
18-
"test:types": "tsc --noEmit",
19-
"test:size": "size-limit",
20-
"test": "pnpm run /^test:/"
21-
},
22-
"author": "Andrey Sitnik <andrey@sitnik.ru>",
2315
"license": "MIT",
16+
"author": "Andrey Sitnik <andrey@sitnik.es>",
2417
"repository": "nanostores/media-query",
25-
"sideEffects": false,
26-
"type": "module",
27-
"types": "./index.d.ts",
28-
"exports": {
29-
".": "./index.js",
30-
"./package.json": "./package.json"
31-
},
32-
"engines": {
33-
"node": "^20.0.0 || ^22.0.0 || >= 24.0.0"
34-
},
3518
"funding": [
3619
{
3720
"type": "github",
3821
"url": "https://github.com/sponsors/ai"
3922
}
4023
],
41-
"peerDependencies": {
42-
"nanostores": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^1.0.0"
24+
"type": "module",
25+
"sideEffects": false,
26+
"types": "./index.d.ts",
27+
"exports": {
28+
".": "./index.js",
29+
"./package.json": "./package.json"
30+
},
31+
"scripts": {
32+
"test:lint": "oxlint .",
33+
"test:coverage": "pnpm bnt --coverage 100 --coverage-exclude 'test/*'",
34+
"test:size": "size-limit",
35+
"test": "pnpm run /^test:/"
4336
},
4437
"devDependencies": {
45-
"@logux/eslint-config": "^57.0.0",
46-
"@size-limit/preset-small-lib": "^11.2.0",
47-
"@types/node": "^24.10.1",
48-
"actions-up": "^1.5.0",
49-
"better-node-test": "^0.8.3",
50-
"clean-publish": "^6.0.1",
51-
"eslint": "^9.39.1",
52-
"globals": "^16.5.0",
53-
"multiocular": "^0.8.1",
38+
"@logux/oxc-configs": "^0.2.2",
39+
"@size-limit/preset-small-lib": "^12.0.1",
40+
"@types/node": "^25.5.0",
41+
"actions-up": "^1.12.0",
42+
"better-node-test": "^0.8.4",
43+
"clean-publish": "^6.0.5",
44+
"multiocular": "^0.8.2",
5445
"nanodelay": "^2.0.2",
55-
"nanostores": "^1.0.1",
56-
"size-limit": "^11.2.0",
57-
"tsx": "^4.20.6",
58-
"typescript": "^5.9.3"
46+
"nanostores": "^1.2.0",
47+
"oxlint": "^1.58.0",
48+
"oxlint-tsgolint": "^0.18.1",
49+
"size-limit": "^12.0.1",
50+
"tsx": "^4.21.0",
51+
"typescript": "^6.0.2"
5952
},
60-
"prettier": {
61-
"arrowParens": "avoid",
62-
"jsxSingleQuote": false,
63-
"quoteProps": "consistent",
64-
"semi": false,
65-
"singleQuote": true,
66-
"trailingComma": "none"
53+
"peerDependencies": {
54+
"nanostores": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^1.0.0"
6755
},
6856
"size-limit": [
6957
{
@@ -73,6 +61,9 @@
7361
"limit": "96 B"
7462
}
7563
],
64+
"engines": {
65+
"node": "^20.0.0 || ^22.0.0 || >= 24.0.0"
66+
},
7667
"clean-publish": {
7768
"cleanDocs": true
7869
}

0 commit comments

Comments
 (0)