diff --git a/CHANGELOG.md b/CHANGELOG.md index 4737eefe5..8bd34abe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ Changes since the last non-beta release. #### Fixed - Fix obscure errors by introducing FULL_TEXT_ERRORS [PR 1695](https://github.com/shakacode/react_on_rails/pull/1695) by [Romex91](https://github.com/Romex91). +#### Changed +- More up-to-date TS config [PR 1700](https://github.com/shakacode/react_on_rails/pull/1700) by [alexeyr-ci](https://github.com/alexeyr-ci). + ### [14.1.1] - 2025-01-15 #### Fixed diff --git a/package.json b/package.json index 166616196..741fcd2c6 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@babel/core": "^7.20.12", "@babel/preset-env": "^7.20.2", + "@tsconfig/node14": "^14.1.2", "@types/jest": "^29.5.14", "@types/node": "^20.17.16", "@types/react": "^18.3.18", diff --git a/tsconfig.json b/tsconfig.json index a98ac818f..8d3bf91e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,14 @@ { + "extends": "@tsconfig/node14", "compilerOptions": { "allowJs": true, "esModuleInterop": true, + // needed for Jest tests even though we don't use .tsx "jsx": "react-jsx", - "lib": ["dom", "es2015"], - "module": "CommonJS", "noImplicitAny": true, "outDir": "node_package/lib", "strict": true, "incremental": true, - "target": "es5" }, "include": ["node_package/src/**/*"] } diff --git a/yarn.lock b/yarn.lock index bb59419ba..39b87844b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1593,6 +1593,11 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== +"@tsconfig/node14@^14.1.2": + version "14.1.2" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-14.1.2.tgz#ed84879e927a2f12ae8bb020baa990bd4cc3dabb" + integrity sha512-1vncsbfCZ3TBLPxesRYz02Rn7SNJfbLoDVkcZ7F/ixOV6nwxwgdhD1mdPcc5YQ413qBJ8CvMxXMFfJ7oawjo7Q== + "@types/babel__core@^7.1.14": version "7.20.0" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.0.tgz#61bc5a4cae505ce98e1e36c5445e4bee060d8891"