Skip to content

Commit

Permalink
build!: minimum supported Node.js version is 18 (#345)
Browse files Browse the repository at this point in the history
* build!: minimum supported node version is 18

* chore: use minimum node 18.12.0
  • Loading branch information
ricardogobbosouza authored Jan 26, 2024
1 parent fdb0ab2 commit 1ee4588
Show file tree
Hide file tree
Showing 7 changed files with 1,617 additions and 1,041 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 21.x]
stylelint-version: [13.x, 14.x, 15.x]
webpack-version: [latest]

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ logs
*.log
npm-debug.log*
yarn-debug.log*
.cspellcache
.eslintcache

/coverage
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = (api) => {
'@babel/preset-env',
{
targets: {
node: '14.15.0',
node: '18.12.0',
},
},
],
Expand Down
7 changes: 5 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
'*.js': ['eslint --fix', 'prettier --write', 'cspell'],
'*.{json,md,yml,css,ts}': ['prettier --write'],
'*': [
'prettier --cache --write --ignore-unknown',
'cspell --cache --no-must-find-files',
],
'*.js': ['eslint --cache --fix'],
};
Loading

0 comments on commit 1ee4588

Please sign in to comment.