Skip to content

Commit 843c92c

Browse files
committed
Update dependencies and practies
1 parent 481fbec commit 843c92c

File tree

3 files changed

+606
-329
lines changed

3 files changed

+606
-329
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout the repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Install pnpm
1717
uses: pnpm/action-setup@v2
1818
with:
19-
version: latest
19+
version: 8
2020
- name: Install Node.js
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 19
23+
node-version: 20
2424
cache: pnpm
2525
- name: Install dependencies
2626
run: pnpm install --frozen-lockfile --ignore-scripts
@@ -33,15 +33,14 @@ jobs:
3333
node-version:
3434
- 18
3535
- 16
36-
- 14
3736
name: Node.js ${{ matrix.node-version }} Quick
3837
steps:
3938
- name: Checkout the repository
40-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4140
- name: Install pnpm
4241
uses: pnpm/action-setup@v2
4342
with:
44-
version: latest
43+
version: 8
4544
- name: Install Node.js ${{ matrix.node-version }}
4645
uses: actions/setup-node@v3
4746
with:
@@ -56,6 +55,7 @@ jobs:
5655
strategy:
5756
matrix:
5857
node-version:
58+
- 14
5959
- 12
6060
name: Node.js ${{ matrix.node-version }} Quick
6161
steps:
@@ -72,6 +72,6 @@ jobs:
7272
with:
7373
node-version: ${{ matrix.node-version }}
7474
- name: Install dependencies
75-
run: pnpm install --frozen-lockfile --ignore-scripts
75+
run: pnpm install --no-frozen-lockfile --ignore-scripts
7676
- name: Run unit tests
7777
run: pnpm unit

package.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
"license": "MIT",
1616
"repository": "postcss/postcss-js",
1717
"scripts": {
18-
"unit": "uvu test \"\\.test\\.js$\"",
19-
"test": "c8 pnpm unit && eslint ."
18+
"unit": "uvu . '\\.test\\.js$'",
19+
"test:coverage": "c8 pnpm unit",
20+
"test:lint": "eslint .",
21+
"test": "pnpm run /^test:/"
2022
},
2123
"engines": {
2224
"node": "^12 || ^14 || >= 16"
@@ -50,16 +52,18 @@
5052
"camelcase-css": "^2.0.1"
5153
},
5254
"devDependencies": {
53-
"@logux/eslint-config": "^49.0.0",
54-
"c8": "^7.13.0",
55-
"clean-publish": "^4.1.1",
56-
"eslint": "^8.36.0",
57-
"eslint-config-standard": "^17.0.0",
58-
"eslint-plugin-import": "^2.27.5",
59-
"eslint-plugin-n": "^15.6.1",
55+
"@logux/eslint-config": "^52.0.1",
56+
"c8": "^8.0.1",
57+
"clean-publish": "^4.2.0",
58+
"eslint": "^8.51.0",
59+
"eslint-config-standard": "^17.1.0",
60+
"eslint-plugin-import": "^2.28.1",
61+
"eslint-plugin-n": "^16.1.0",
62+
"eslint-plugin-node-import": "^1.0.4",
63+
"eslint-plugin-perfectionist": "^2.1.0",
6064
"eslint-plugin-prefer-let": "^3.0.1",
6165
"eslint-plugin-promise": "^6.1.1",
62-
"postcss": "^8.4.21",
66+
"postcss": "^8.4.31",
6367
"uvu": "^0.5.6"
6468
},
6569
"prettier": {
@@ -73,6 +77,7 @@
7377
"eslintConfig": {
7478
"extends": "@logux/eslint-config",
7579
"rules": {
80+
"perfectionist/sort-objects": "off",
7681
"no-console": "off"
7782
}
7883
},

0 commit comments

Comments
 (0)