diff --git a/.eslintrc b/.eslintrc index 9bbea7ba9e..0d767b7667 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,160 +1,153 @@ { - "root": true, - "ignorePatterns": [ - "src/**/*", - "**/*.stories.ts" - ], - "overrides": [ - { - "files": [ - "*.ts" - ], - "parserOptions": { - "project": [ - "tsconfig.json", - "packages/ng/tsconfig.json" - ], - "createDefaultProgram": true - }, - "extends": [ - "plugin:@angular-eslint/recommended", - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - // "plugin:@angular-eslint/template/process-inline-templates", - // Keep prettier at the end - "plugin:prettier/recommended" - // "plugin:@angular-eslint/ng-cli-compat", - // "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", - ], - "plugins": [ - "deprecation" - ], - "rules": { - "prettier/prettier": [ - "error", - { - "endOfLine": "auto" - } - ], - // OUR RULES - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "enumMember", - "format": [ - "PascalCase", - "camelCase", - "UPPER_CASE" - ] - } - ], - // Would be nice to have these three but requires refactoring of old code - "@typescript-eslint/no-redundant-type-constituents": "off", - "@typescript-eslint/no-base-to-string": "off", - "@typescript-eslint/no-unsafe-enum-comparison": "off", - "@typescript-eslint/explicit-function-return-type": "off", - // on aimerait bien dire oui sauf pour void - "@typescript-eslint/explicit-module-boundary-types": "off", - // on aimerait bien dire oui sauf pour void - "@angular-eslint/no-input-rename": "off", - "@typescript-eslint/no-unused-vars": [ - "error", - { - "argsIgnorePattern": "^_", - "ignoreRestSiblings": true - } - ], - "@typescript-eslint/unbound-method": "off", - "@typescript-eslint/type-annotation-spacing": [ - "error" - ], - "no-console": [ - "error", - { - "allow": [ - "warn", - "error" - ] - } - ], - "curly": "error", - "deprecation/deprecation": "warn", - "no-restricted-imports": [ - "error", - { - "paths": [ - "rxjs/Rx", - "@ngneat/spectator" - ] - } - ], - "max-classes-per-file": "off", - "quote-props": [ - "error", - "as-needed" - ], - "quotes": [ - "error", - "single", - { - "avoidEscape": true, - "allowTemplateLiterals": true - } - ], - "space-before-function-paren": [ - "error", - { - "anonymous": "never", - "asyncArrow": "always", - "named": "never" - } - ], - // BASIC RULES - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "lu", - "style": "kebab-case" - } - ], - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "lu", - "style": "camelCase" - } - ], - "@angular-eslint/no-host-metadata-property": "off" - } - }, - { - "files": [ - "*.html" - ], - "extends": [ - "plugin:@angular-eslint/template/recommended", - "plugin:prettier/recommended" - ], - "rules": { - "prettier/prettier": [ - "error", - { - "endOfLine": "auto" - } - ], - "@angular-eslint/template/button-has-type": "error" - } - }, - { - "files": [ - "*.js" - ], - "env": { - "es6": true - } - } - ] + "root": true, + "ignorePatterns": [ + "src/**/*", + "**/*.stories.ts" + ], + "overrides": [ + { + "files": [ + "*.ts" + ], + "parserOptions": { + "project": [ + "tsconfig.json", + "packages/ng/tsconfig.json" + ], + "createDefaultProgram": true + }, + "extends": [ + "plugin:@angular-eslint/recommended", + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + // "plugin:@angular-eslint/template/process-inline-templates", + // Keep prettier at the end + "plugin:prettier/recommended" + // "plugin:@angular-eslint/ng-cli-compat", + // "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", + ], + "plugins": [ + "deprecation" + ], + "rules": { + "prettier/prettier": [ + "error", + { + "endOfLine": "auto" + } + ], + // OUR RULES + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "enumMember", + "format": [ + "PascalCase", + "camelCase", + "UPPER_CASE" + ] + } + ], + // Would be nice to have these three but requires refactoring of old code + "@typescript-eslint/no-redundant-type-constituents": "off", + "@typescript-eslint/no-base-to-string": "off", + "@typescript-eslint/no-unsafe-enum-comparison": "off", + "@typescript-eslint/explicit-function-return-type": "off", + // on aimerait bien dire oui sauf pour void + "@typescript-eslint/explicit-module-boundary-types": "off", + // on aimerait bien dire oui sauf pour void + "@angular-eslint/no-input-rename": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "ignoreRestSiblings": true + } + ], + "@typescript-eslint/unbound-method": "off", + "@typescript-eslint/type-annotation-spacing": [ + "error" + ], + "no-console": [ + "error", + { + "allow": [ + "warn", + "error" + ] + } + ], + "curly": "error", + "deprecation/deprecation": "warn", + "no-restricted-imports": [ + "error", + { + "paths": [ + "rxjs/Rx", + "@ngneat/spectator" + ] + } + ], + "max-classes-per-file": "off", + "quote-props": [ + "error", + "as-needed" + ], + "quotes": [ + "error", + "single", + { + "avoidEscape": true, + "allowTemplateLiterals": true + } + ], + "space-before-function-paren": [ + "error", + { + "anonymous": "never", + "asyncArrow": "always", + "named": "never" + } + ], + // BASIC RULES + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "lu", + "style": "kebab-case" + } + ], + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "lu", + "style": "camelCase" + } + ], + "@angular-eslint/no-host-metadata-property": "off" + } + }, + { + "files": [ + "*.html" + ], + "extends": [ + "plugin:@angular-eslint/template/recommended" + ], + "rules": { + "@angular-eslint/template/button-has-type": "error" + } + }, + { + "files": [ + "*.js" + ], + "env": { + "es6": true + } + } + ] } diff --git a/.prettierrc b/.prettierrc index 596fa01cc3..86eaee643a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,20 +5,27 @@ "endOfLine": "auto", "overrides": [ { - "files": [".component.html", ".page.html"], + "files": [ + "*.component.html", + "*.page.html" + ], "options": { "parser": "angular" } }, { - "files": ["*.html"], + "files": [ + "*.html" + ], "options": { "parser": "html", "singleQuote": false } }, { - "files": ["*.ts"], + "files": [ + "*.ts" + ], "options": { "parser": "typescript", "printWidth": 200 diff --git a/package-lock.json b/package-lock.json index 995949a4bf..cafee6a7df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,11 +31,11 @@ "devDependencies": { "@angular-devkit/build-angular": "^18.0.0", "@angular-devkit/schematics": "^18.0.0", - "@angular-eslint/builder": "^18.0.1", - "@angular-eslint/eslint-plugin": "^18.0.1", - "@angular-eslint/eslint-plugin-template": "^18.0.1", - "@angular-eslint/schematics": "^18.0.1", - "@angular-eslint/template-parser": "^18.0.1", + "@angular-eslint/builder": "18.2.0", + "@angular-eslint/eslint-plugin": "18.2.0", + "@angular-eslint/eslint-plugin-template": "18.2.0", + "@angular-eslint/schematics": "18.2.0", + "@angular-eslint/template-parser": "18.2.0", "@angular/cli": "^18.0.0", "@angular/compiler-cli": "^18.0.0", "@compodoc/compodoc": "^1.1.24", @@ -53,16 +53,16 @@ "@types/jest": "^29.5.1", "@types/jest-axe": "^3.5.5", "@types/node": "^18.11.10", - "@typescript-eslint/eslint-plugin": "^7.11.0", - "@typescript-eslint/parser": "^7.11.0", + "@typescript-eslint/eslint-plugin": "7.11.0", + "@typescript-eslint/parser": "7.11.0", "@typescript-eslint/utils": "^7.11.0", "autoprefixer": "^10.4.14", - "eslint": "^8.44.0", + "eslint": "8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-deprecation": "^2.0.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-prefer-arrow": "^1.2.3", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-prettier": "^5.2.1", "glob": "^10.4.1", "jest": "^29.0.0", "jest-axe": "^7.0.0", @@ -73,7 +73,7 @@ "postcss-scss": "^4.0.6", "postcss-selector-parser": "^6.0.12", "postcss-value-parser": "^4.2.0", - "prettier": "^3.2.5", + "prettier": "^3.3.3", "sass": "^1.62.1", "storybook": "^8.1.6", "stylelint": "^14.15.0", @@ -341,9 +341,9 @@ } }, "node_modules/@angular-eslint/builder": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-18.0.1.tgz", - "integrity": "sha512-b/VUeTQznAmGdwP4OyPWyegqSRWub7E8/WXBqojrSFyLkFhpTiHpk/3/5G3LsgTb0zBfyAsqkA0yaadsHu9pjA==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-18.2.0.tgz", + "integrity": "sha512-2NsrYqvVVha2XUUXm1T0XshW0d1TzYU6rXNCTut1t8qS/uinbxNiszKzJN1TuUsXFwpZfITRnEY3cjaqJDlsdA==", "dev": true, "dependencies": { "@nx/devkit": "^19.0.6", @@ -355,55 +355,55 @@ } }, "node_modules/@angular-eslint/bundled-angular-compiler": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-18.0.1.tgz", - "integrity": "sha512-lr4Ysoo28FBOKcJFQUGTMpbWDcak+gyuYvyggp37ERvazE6EDomPFxzEHNqVT9EI9sZ+GDBOoPR+EdFh0ALGNw==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-18.2.0.tgz", + "integrity": "sha512-p/YvlvDJscSAbNOOAbT/BRdscEfWpQunUK+KuWM6/PXL07tTVae5dmp8B8A5am7Cxvp+ZVLVLZG4LFYB1TX1cw==", "dev": true }, "node_modules/@angular-eslint/eslint-plugin": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-18.0.1.tgz", - "integrity": "sha512-pS3SYLa9DA+ENklGxEUlcw6/xCxgDk9fgjyaheuSjDxL3TIh1pTa4V2TptODdcPh7XCYXiVmy+e/w79mXlGzOw==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-18.2.0.tgz", + "integrity": "sha512-vJ7pstQPqCqkvMrEsjjocvHdPBl/frs0+fqkckog2Sq0QisBEjUPkbImvId6dw7JzxSDSvttdAklakF97CE4VA==", "dev": true, "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.0.1", - "@angular-eslint/utils": "18.0.1" + "@angular-eslint/bundled-angular-compiler": "18.2.0", + "@angular-eslint/utils": "18.2.0" }, "peerDependencies": { - "@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20", + "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular-eslint/eslint-plugin-template": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-18.0.1.tgz", - "integrity": "sha512-u/eov/CFBb8l35D8dW78Dx5fBLd8FZFibKN9XQknhzXnDMpISuUOMny5g5/wvYYjqLgqEySXMiHKEAxEup7xtA==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-18.2.0.tgz", + "integrity": "sha512-YHh+AUY9ubLAdmIRXH8vSpv+8EQkGjdX3B9xdj/grnrVzgzu+5W86F/spGp2tEny9l85R3JZNqjaMpW/vwibfw==", "dev": true, "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.0.1", - "@angular-eslint/utils": "18.0.1", + "@angular-eslint/bundled-angular-compiler": "18.2.0", + "@angular-eslint/utils": "18.2.0", "aria-query": "5.3.0", - "axobject-query": "4.0.0" + "axobject-query": "4.1.0" }, "peerDependencies": { - "@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20", + "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular-eslint/schematics": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/schematics/-/schematics-18.0.1.tgz", - "integrity": "sha512-G9PgFrjyvBaQR8enMnP2scnQDLk99GMpifh3voiOmdEkxaQHRWqhCWncV7GATwpXDzeyj9J9XT9iHGJjnZTpJQ==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/schematics/-/schematics-18.2.0.tgz", + "integrity": "sha512-6niXUrwyAmhuFcsRx88cOOVrko0EmsUGjLZ4yso3op/I9ZgI4SfuLCtl9gzJIR4TLBYc4zAuC/TE/rsLP+WCtw==", "dev": true, "dependencies": { - "@angular-eslint/eslint-plugin": "18.0.1", - "@angular-eslint/eslint-plugin-template": "18.0.1", + "@angular-eslint/eslint-plugin": "18.2.0", + "@angular-eslint/eslint-plugin-template": "18.2.0", "@nx/devkit": "^19.0.6", "ignore": "5.3.1", "nx": "^19.0.6", - "semver": "7.6.2", + "semver": "7.6.3", "strip-json-comments": "3.1.1" }, "peerDependencies": { @@ -411,14 +411,26 @@ "@angular-devkit/schematics": ">= 18.0.0 < 19.0.0" } }, + "node_modules/@angular-eslint/schematics/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@angular-eslint/template-parser": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-18.0.1.tgz", - "integrity": "sha512-22fKzkWo9Ts8aY/WHL1A6seS2tpltgRRXVfnZnnqvQRyRiuPnx1FC0ly7+QPZkThh8vdLwxU+BvtLq9Uiqh9OQ==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-18.2.0.tgz", + "integrity": "sha512-1jKH2fL8ir1ajcgu/N0xIWVtlpJQmbJBRRe1+WbBoomykcu1KnLwCSue/LuUDQOf3CTmMHxQE0f+58VpafYoyA==", "dev": true, "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.0.1", - "eslint-scope": "^8.0.0" + "@angular-eslint/bundled-angular-compiler": "18.2.0", + "eslint-scope": "^8.0.2" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", @@ -426,15 +438,15 @@ } }, "node_modules/@angular-eslint/utils": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-18.0.1.tgz", - "integrity": "sha512-Q9lCySqg+9h2cz08+SoWj48cY1i04tL1k3bsQJmF2TsylAw2mSsNGX2X3h9WkdxY7sUoY0mP7MVW1iU54Gobcg==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-18.2.0.tgz", + "integrity": "sha512-g+b0L4RCZaKYPz4bGRRifo7g5guVJi2kUWymlDYmCkq3NhZng1HQQbNpVF1n5o034zT5lnaC5HENwaKIZ1Y37Q==", "dev": true, "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.0.1" + "@angular-eslint/bundled-angular-compiler": "18.2.0" }, "peerDependencies": { - "@typescript-eslint/utils": "^7.11.0 || ^8.0.0-alpha.20", + "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } @@ -15501,12 +15513,12 @@ } }, "node_modules/axobject-query": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz", - "integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", "dev": true, - "dependencies": { - "dequal": "^2.0.3" + "engines": { + "node": ">= 0.4" } }, "node_modules/babel-core": { @@ -19109,13 +19121,13 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", - "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", + "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", "dev": true, "dependencies": { "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.6" + "synckit": "^0.9.1" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -19139,9 +19151,9 @@ } }, "node_modules/eslint-scope": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.1.tgz", - "integrity": "sha512-pL8XjgP4ZOmmwfFE8mEhSxA7ZY4C+LWyqjQ3o4yWkkmD0qcMT9kkW3zWHOczhWcjTSgqycYAgwSlXvZltv65og==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.2.tgz", + "integrity": "sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", @@ -29721,9 +29733,9 @@ } }, "node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -32608,9 +32620,9 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" }, "node_modules/synckit": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", - "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.1.tgz", + "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", "dev": true, "dependencies": { "@pkgr/core": "^0.1.0", diff --git a/package.json b/package.json index 391ce2c7fe..65d4c0edbe 100644 --- a/package.json +++ b/package.json @@ -56,11 +56,11 @@ "devDependencies": { "@angular-devkit/build-angular": "^18.0.0", "@angular-devkit/schematics": "^18.0.0", - "@angular-eslint/builder": "^18.0.1", - "@angular-eslint/eslint-plugin": "^18.0.1", - "@angular-eslint/eslint-plugin-template": "^18.0.1", - "@angular-eslint/schematics": "^18.0.1", - "@angular-eslint/template-parser": "^18.0.1", + "@angular-eslint/builder": "18.2.0", + "@angular-eslint/eslint-plugin": "18.2.0", + "@angular-eslint/eslint-plugin-template": "18.2.0", + "@angular-eslint/schematics": "18.2.0", + "@angular-eslint/template-parser": "18.2.0", "@angular/cli": "^18.0.0", "@angular/compiler-cli": "^18.0.0", "@compodoc/compodoc": "^1.1.24", @@ -78,16 +78,16 @@ "@types/jest": "^29.5.1", "@types/jest-axe": "^3.5.5", "@types/node": "^18.11.10", - "@typescript-eslint/eslint-plugin": "^7.11.0", - "@typescript-eslint/parser": "^7.11.0", + "@typescript-eslint/eslint-plugin": "7.11.0", + "@typescript-eslint/parser": "7.11.0", "@typescript-eslint/utils": "^7.11.0", "autoprefixer": "^10.4.14", - "eslint": "^8.44.0", + "eslint": "8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-deprecation": "^2.0.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-prefer-arrow": "^1.2.3", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-prettier": "^5.2.1", "glob": "^10.4.1", "jest": "^29.0.0", "jest-axe": "^7.0.0", @@ -98,7 +98,7 @@ "postcss-scss": "^4.0.6", "postcss-selector-parser": "^6.0.12", "postcss-value-parser": "^4.2.0", - "prettier": "^3.2.5", + "prettier": "^3.3.3", "sass": "^1.62.1", "storybook": "^8.1.6", "stylelint": "^14.15.0", @@ -124,4 +124,4 @@ "pdfjs-dist": "4.2.67" } } -} +} \ No newline at end of file diff --git a/packages/ng/dialog/dialog.service.ts b/packages/ng/dialog/dialog.service.ts index bdd95d074d..5cc13e5f19 100644 --- a/packages/ng/dialog/dialog.service.ts +++ b/packages/ng/dialog/dialog.service.ts @@ -35,7 +35,7 @@ export class LuDialogService { ariaLabel: config.ariaLabel, // If focus is first-input, focus dialog and let the component do the rest // Else, just set it to config value or default to first-tabbable - autoFocus: config.autoFocus === 'first-input' ? 'dialog' : config.autoFocus ?? 'first-tabbable', + autoFocus: config.autoFocus === 'first-input' ? 'dialog' : (config.autoFocus ?? 'first-tabbable'), templateContext: () => ({ dialogRef: luDialogRef }), injector: this.#injector, providers: (ref: DialogRef, C>) => { diff --git a/packages/ng/toast/toasts.service.ts b/packages/ng/toast/toasts.service.ts index 6d4225036d..7ea1adbec9 100644 --- a/packages/ng/toast/toasts.service.ts +++ b/packages/ng/toast/toasts.service.ts @@ -25,7 +25,7 @@ export class LuToastsService { private getToast(toastInput: LuToastInput): LuToast { const id = this.generateId(); - const duration = this.isOnlyDismissibleManually(toastInput) ? toastInput.duration : toastInput.duration ?? defaultToastDuration; + const duration = this.isOnlyDismissibleManually(toastInput) ? toastInput.duration : (toastInput.duration ?? defaultToastDuration); return { ...toastInput, id, duration }; }