Skip to content

Commit

Permalink
Improved a JSON import to make it compatible with TypeScript 5.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Dec 3, 2024
1 parent 80c5607 commit e23513d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {

// ESLint does not understand `import ... with { ... }`.
// See: https://github.com/eslint/eslint/discussions/15305.
'packages/ckeditor5-dev-ci/lib/data/index.js'
'packages/ckeditor5-dev-ci/lib/data/index.js',
'packages/ckeditor5-dev-build-tools/tests/build/fixtures/src/input.ts'
],
rules: {
'no-console': 'off',
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@types/postcss-mixins": "^9.0.5",
"@vitest/coverage-v8": "^2.0.0",
"type-fest": "^4.10.2",
"typescript": "~5.6.0",
"typescript": "^5.6.0",
"vitest": "^2.0.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

// Test importing JSON.
import settings from './settings.json';
import settings from './settings.json' with { type: 'json' };

// Test importing SVG.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down

0 comments on commit e23513d

Please sign in to comment.