Skip to content

Commit 1ee4588

Browse files
build!: minimum supported Node.js version is 18 (#345)
* build!: minimum supported node version is 18 * chore: use minimum node 18.12.0
1 parent fdb0ab2 commit 1ee4588

File tree

7 files changed

+1617
-1041
lines changed

7 files changed

+1617
-1041
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest, windows-latest, macos-latest]
63-
node-version: [14.x, 16.x, 18.x, 20.x]
63+
node-version: [18.x, 20.x, 21.x]
6464
stylelint-version: [13.x, 14.x, 15.x]
6565
webpack-version: [latest]
6666

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ logs
22
*.log
33
npm-debug.log*
44
yarn-debug.log*
5+
.cspellcache
56
.eslintcache
67

78
/coverage

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: '14.15.0',
13+
node: '18.12.0',
1414
},
1515
},
1616
],

lint-staged.config.js

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

0 commit comments

Comments
 (0)