Skip to content

Commit dc6e368

Browse files
refactor!: minimum support Node.js version is 18.12.0
1 parent b7cdc6c commit dc6e368

26 files changed

+15368
-8989
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
strategy:
6262
matrix:
6363
os: [ubuntu-latest, windows-latest, macos-latest]
64-
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
64+
node-version: [18.x, 20.x, 21.x]
6565
webpack-version: [latest]
6666

6767
runs-on: ${{ matrix.os }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ logs
55
*.log
66
npm-debug.log*
77
.eslintcache
8+
.cspellcache
89
/dist
910
/local
1011
/reports
@@ -14,4 +15,4 @@ Thumbs.db
1415
*.iml
1516
.vscode
1617
*.sublime-project
17-
*.sublime-workspace
18+
*.sublime-workspace

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install lint-staged

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ type styleTagTransform =
674674
| ((
675675
css: string,
676676
styleElement: HTMLStyleElement,
677-
options: Record<string, any>
677+
options: Record<string, any>,
678678
) => void);
679679
```
680680

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
"@babel/preset-env",
1111
{
1212
targets: {
13-
node: "12.13.0",
13+
node: "18.12.0",
1414
},
1515
},
1616
],

lint-staged.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
"*": ["prettier --write --ignore-unknown", "cspell"],
2+
"*": [
3+
"prettier --cache --write --ignore-unknown",
4+
"cspell --cache --no-must-find-files",
5+
],
36
"*.js": ["eslint --cache --fix"],
47
};

0 commit comments

Comments
 (0)