Skip to content

Commit

Permalink
dev: add node engine version to package.json
Browse files Browse the repository at this point in the history
Adds the node engine version to package.json, which ensures we enforce the correct engine version.
  • Loading branch information
AndyTWF committed Jan 16, 2025
1 parent 6b6948c commit 543e006
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default [
'plugin:import/recommended',
'plugin:compat/recommended',
'plugin:unicorn/recommended',
'plugin:node/recommended',
),
),
{
Expand Down Expand Up @@ -94,6 +95,7 @@ export default [
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unicorn/filename-case': 'error',
'node/no-missing-import': 'off',

'@typescript-eslint/naming-convention': [
'error',
Expand Down
88 changes: 88 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"url": "https://github.com/ably/ably-chat-js/issues"
},
"homepage": "https://github.com/ably/ably-chat-js#readme",
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
"ably": "^2.6.2",
"react": "^18.0.0 || ^19.0.0",
Expand Down Expand Up @@ -88,6 +91,7 @@
"eslint-plugin-compat": "^6.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^50.4.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.7",
Expand Down

0 comments on commit 543e006

Please sign in to comment.