diff --git a/package-lock.json b/package-lock.json index 88b06c549..d79f118b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4410,16 +4410,17 @@ } }, "node_modules/@html-eslint/eslint-plugin": { - "version": "0.48.0", - "resolved": "https://registry.npmjs.org/@html-eslint/eslint-plugin/-/eslint-plugin-0.48.0.tgz", - "integrity": "sha512-gZvPZu8RwHGCkLD3FItf3vpZsvcCZSxTNwshsWvraixSqOir/y2319v18tNOfRsCs3JCExhLXziUhkvoF0llhA==", + "version": "0.52.1", + "resolved": "https://registry.npmjs.org/@html-eslint/eslint-plugin/-/eslint-plugin-0.52.1.tgz", + "integrity": "sha512-RaaSpP0hE/rYbssZZdlJjf0+CIVyWx9z/xj4KF5zHLvCeTYwJHAFb9x1/RvFRiMnWaME6ygtwMFYdHauahfvbA==", "license": "MIT", + "peer": true, "dependencies": { - "@eslint/plugin-kit": "^0.3.1", - "@html-eslint/parser": "^0.48.0", - "@html-eslint/template-parser": "^0.48.0", - "@html-eslint/template-syntax-parser": "^0.48.0", - "@html-eslint/types": "^0.48.0" + "@eslint/plugin-kit": "^0.4.1", + "@html-eslint/parser": "^0.52.0", + "@html-eslint/template-parser": "^0.52.0", + "@html-eslint/template-syntax-parser": "^0.52.0", + "@html-eslint/types": "^0.52.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4428,54 +4429,29 @@ "eslint": "^8.0.0 || ^9.0.0" } }, - "node_modules/@html-eslint/eslint-plugin/node_modules/@eslint/core": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", - "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@html-eslint/eslint-plugin/node_modules/@eslint/plugin-kit": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", - "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.15.2", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@html-eslint/eslint-plugin/node_modules/@html-eslint/parser": { - "version": "0.48.0", - "resolved": "https://registry.npmjs.org/@html-eslint/parser/-/parser-0.48.0.tgz", - "integrity": "sha512-IO8J3R1+0+QuYUNh0IT1C4KZIA0W8IbXS5/tvs0e+GvYjnTRJ0eNNJN5CwqRlLYLmsF0rDtrxBteBZXULfk7Zg==", + "node_modules/@html-eslint/parser": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@html-eslint/parser/-/parser-0.52.0.tgz", + "integrity": "sha512-2r2NEPOK/Il8bVhAtc/Za0cxB8/CFaw6yZMpCk4yPJ8hHj/2lka14zBbBHDJAAVqmv+fiW9FrgcXKPmJY7CgAQ==", "license": "MIT", + "peer": true, "dependencies": { - "@html-eslint/template-syntax-parser": "^0.48.0", - "@html-eslint/types": "^0.48.0", + "@html-eslint/template-syntax-parser": "^0.52.0", + "@html-eslint/types": "^0.52.0", "es-html-parser": "0.3.1" } }, - "node_modules/@html-eslint/parser": { + "node_modules/@html-eslint/template-parser": { "version": "0.52.0", - "resolved": "https://registry.npmjs.org/@html-eslint/parser/-/parser-0.52.0.tgz", - "integrity": "sha512-2r2NEPOK/Il8bVhAtc/Za0cxB8/CFaw6yZMpCk4yPJ8hHj/2lka14zBbBHDJAAVqmv+fiW9FrgcXKPmJY7CgAQ==", + "resolved": "https://registry.npmjs.org/@html-eslint/template-parser/-/template-parser-0.52.0.tgz", + "integrity": "sha512-0hw1Lh53MJbo+ePj9K8hShDHssi61UDb7s89tcZy9vZDIGUKfyUZxgax7/IkeBW/e9LAB/j/Pw+0Qkk34oKm2g==", "license": "MIT", "dependencies": { - "@html-eslint/template-syntax-parser": "^0.52.0", "@html-eslint/types": "^0.52.0", "es-html-parser": "0.3.1" } }, - "node_modules/@html-eslint/parser/node_modules/@html-eslint/template-syntax-parser": { + "node_modules/@html-eslint/template-syntax-parser": { "version": "0.52.0", "resolved": "https://registry.npmjs.org/@html-eslint/template-syntax-parser/-/template-syntax-parser-0.52.0.tgz", "integrity": "sha512-LADV0HWQVNaWck438WyE1C+WTLP80he69lSjudJY7Zir9YgL39gHzAFwbfyCFWbJfD2GjSbbGX88s1EgTZQRyQ==", @@ -4484,7 +4460,7 @@ "@html-eslint/types": "^0.52.0" } }, - "node_modules/@html-eslint/parser/node_modules/@html-eslint/types": { + "node_modules/@html-eslint/types": { "version": "0.52.0", "resolved": "https://registry.npmjs.org/@html-eslint/types/-/types-0.52.0.tgz", "integrity": "sha512-g1qwSpUX5Xp5aw8a6U8fCnjEmiUuFfpHq6FKwyG0XRDMabBcc0LgbC4MArmHJVob77I6+kjM7LhTKqZhVslM/g==", @@ -4495,36 +4471,6 @@ "eslint": "^9.39.1" } }, - "node_modules/@html-eslint/template-parser": { - "version": "0.48.0", - "resolved": "https://registry.npmjs.org/@html-eslint/template-parser/-/template-parser-0.48.0.tgz", - "integrity": "sha512-E5L8K7nVwYtNTZtuSF0uVEstYWzd056PsUQQgDPa00VhGVPkd4gOYQbRboTfeO/bSphvgf7FcTLl97wHlLZARQ==", - "license": "MIT", - "dependencies": { - "@html-eslint/types": "^0.48.0", - "es-html-parser": "0.3.1" - } - }, - "node_modules/@html-eslint/template-syntax-parser": { - "version": "0.48.0", - "resolved": "https://registry.npmjs.org/@html-eslint/template-syntax-parser/-/template-syntax-parser-0.48.0.tgz", - "integrity": "sha512-hkyw2pguiXVvg4MuuRnwqFtgmwWUuOwkgnWaSMP37OJLzjsH5Qhhv3fBD1hc1sYgIuF8j+S8vDMV6FFX7WDVGg==", - "license": "MIT", - "dependencies": { - "@html-eslint/types": "^0.48.0" - } - }, - "node_modules/@html-eslint/types": { - "version": "0.48.0", - "resolved": "https://registry.npmjs.org/@html-eslint/types/-/types-0.48.0.tgz", - "integrity": "sha512-jfUt1qGwGEsWuwYlg3TG0ZE6vm9rxRUuA+ke0p5lVaEEAe4UO57g9/lpo0+GB/57Qiai4Se3qZ02Pa/P4JrWuA==", - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.6", - "es-html-parser": "0.3.1", - "eslint": "^9.19.0" - } - }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", @@ -6835,9 +6781,9 @@ } }, "node_modules/@stylistic/stylelint-plugin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-4.0.0.tgz", - "integrity": "sha512-CFwt3K4Y/7bygNCLCQ8Sy4Hzgbhxq3BsNW0FIuYxl17HD3ywptm54ocyeiLVRrk5jtz1Zwks7Xr9eiZt8SWHAw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-4.0.1.tgz", + "integrity": "sha512-jKZSZr/S/NehfgayNJI3O/JEq+W5lSeHUJNvdOebRPNFP2ZylTbAx/p5qR8scQFpiVzy1VQM9R+G0kIB62r1Pw==", "license": "MIT", "dependencies": { "@csstools/css-parser-algorithms": "^3.0.5", @@ -11342,14 +11288,14 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.4.tgz", - "integrity": "sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==", + "version": "5.5.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.5.tgz", + "integrity": "sha512-hscXkbqUZ2sPithAuLm5MXL+Wph+U7wHngPBv9OMWwlP8iaflyxpjTYZkmdgB4/vPIhemRlBEoLrH7UC1n7aUw==", "license": "MIT", "peer": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.11.7" + "prettier-linter-helpers": "^1.0.1", + "synckit": "^0.11.12" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -19109,9 +19055,9 @@ } }, "node_modules/prettier": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz", - "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.0.tgz", + "integrity": "sha512-yEPsovQfpxYfgWNhCfECjG5AQaO+K3dp6XERmOepyPDVqcJm+bjyCVO3pmU+nAPe0N5dDvekfGezt/EIiRe1TA==", "license": "MIT", "peer": true, "bin": { @@ -22464,9 +22410,9 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", @@ -22915,16 +22861,16 @@ "version": "0.384.0", "license": "Apache-2.0", "peerDependencies": { - "@taiga-ui/auto-changelog-config": "0.383.0", - "@taiga-ui/browserslist-config": "0.383.0", - "@taiga-ui/commitlint-config": "0.383.0", - "@taiga-ui/cspell-config": "0.383.0", - "@taiga-ui/eslint-plugin-experience-next": "0.383.0", - "@taiga-ui/jest-config": "0.383.0", - "@taiga-ui/prettier-config": "0.383.0", - "@taiga-ui/release-it-config": "0.383.0", - "@taiga-ui/stylelint-config": "0.383.0", - "@taiga-ui/tsconfig": "0.383.0" + "@taiga-ui/auto-changelog-config": "0.384.0", + "@taiga-ui/browserslist-config": "0.384.0", + "@taiga-ui/commitlint-config": "0.384.0", + "@taiga-ui/cspell-config": "0.384.0", + "@taiga-ui/eslint-plugin-experience-next": "0.384.0", + "@taiga-ui/jest-config": "0.384.0", + "@taiga-ui/prettier-config": "0.384.0", + "@taiga-ui/release-it-config": "0.384.0", + "@taiga-ui/stylelint-config": "0.384.0", + "@taiga-ui/tsconfig": "0.384.0" } }, "projects/cspell-config": { @@ -22959,7 +22905,7 @@ "peerDependencies": { "@eslint/compat": "^2.0.0", "@eslint/markdown": "^7.5.1", - "@html-eslint/eslint-plugin": "^0.48.0", + "@html-eslint/eslint-plugin": "^0.52.1", "@html-eslint/parser": "^0.52.0", "@smarttools/eslint-plugin-rxjs": "^1.0.22", "@stylistic/eslint-plugin": "^5.6.1", diff --git a/projects/eslint-plugin-experience-next/configs/html-eslint.ts b/projects/eslint-plugin-experience-next/configs/html-eslint.ts index ea6a38689..421598833 100644 --- a/projects/eslint-plugin-experience-next/configs/html-eslint.ts +++ b/projects/eslint-plugin-experience-next/configs/html-eslint.ts @@ -1,7 +1,8 @@ import html from '@html-eslint/eslint-plugin'; import htmlParser from '@html-eslint/parser'; +import {defineConfig} from 'eslint/config'; -export default [ +export default defineConfig([ { ignores: [ '**/tests-report/**', @@ -13,15 +14,14 @@ export default [ ], }, { - ...html.configs.recommended, files: ['**/*.html'], plugins: {html}, + extends: ['html/recommended'], language: 'html/html', languageOptions: { parser: htmlParser, }, rules: { - ...html.configs.recommended.rules, '@taiga-ui/experience-next/no-href-with-router-link': 'error', 'html/indent': 'off', // prettier conflicts 'html/no-extra-spacing-attrs': 'off', // prettier conflicts @@ -93,4 +93,4 @@ export default [ 'html/no-restricted-attr-values': 'off', }, }, -]; +]); diff --git a/projects/eslint-plugin-experience-next/package.json b/projects/eslint-plugin-experience-next/package.json index 8d8c926fa..20909dd29 100644 --- a/projects/eslint-plugin-experience-next/package.json +++ b/projects/eslint-plugin-experience-next/package.json @@ -11,7 +11,7 @@ "peerDependencies": { "@eslint/compat": "^2.0.0", "@eslint/markdown": "^7.5.1", - "@html-eslint/eslint-plugin": "^0.48.0", + "@html-eslint/eslint-plugin": "^0.52.1", "@html-eslint/parser": "^0.52.0", "@smarttools/eslint-plugin-rxjs": "^1.0.22", "@stylistic/eslint-plugin": "^5.6.1",