From 27969a50f730e410e9737c8360dc5dc92e77e744 Mon Sep 17 00:00:00 2001 From: mcampourcy Date: Tue, 3 Dec 2024 15:57:55 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8Fchore(pixui):=EF=B8=8F=20?= =?UTF-8?q?Update=20lint=20to=20v9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 30 -- .eslintrc.js | 60 --- eslint.config.js | 117 ++++++ package-lock.json | 915 ++++++++++++++++++++++++++++++---------------- package.json | 23 +- 5 files changed, 722 insertions(+), 423 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.js create mode 100644 eslint.config.js diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f373043a1..000000000 --- a/.eslintignore +++ /dev/null @@ -1,30 +0,0 @@ -# unconventional js -/blueprints/*/files/ -/vendor/ - -# compiled output -/declarations/ -/dist/ -/tmp/ - -# dependencies -/bower_components/ -/node_modules/ - -# misc -/coverage/ -!.* -.*/ -.eslintcache - -# ember-try -/.node_modules.ember-try/ -/bower.json.ember-try -/npm-shrinkwrap.json.ember-try -/package.json.ember-try -/package-lock.json.ember-try -/yarn.lock.ember-try - -# storybook -.storybook/** -storybook-static/ diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index e7ec299ba..000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -module.exports = { - root: true, - parser: '@babel/eslint-parser', - parserOptions: { - requireConfigFile: false, - ecmaVersion: 2018, - sourceType: 'module', - babelOptions: { - plugins: [['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }]], - }, - }, - plugins: ['ember', 'qunit'], - extends: [ - 'eslint:recommended', - 'plugin:ember/recommended', - 'plugin:qunit/recommended', - 'plugin:prettier/recommended', - ], - env: { - browser: true, - }, - rules: { - 'no-restricted-imports': [ - 'error', - 'lodash', - { - name: '@ember/test-helpers', - importNames: ['render', 'visit', 'find'], - message: - "Please import 'render' from '@1024pix/ember-testing-library'.\n Please import 'visit' from '@1024pix/ember-testing-library'.\n. 'find' should be replaced with '@1024pix/ember-testing-library' 'find...'/'get...'/'query...' methods to enforce accessible usages.", - }, - ], - }, - overrides: [ - // node files - { - files: [ - 'scripts/*.js', - '.eslintrc.js', - '.template-lintrc.js', - 'ember-cli-build.js', - 'index.js', - 'testem.js', - 'blueprints/**/*.js', - 'config/**/*.js', - 'tests/dummy/config/**/*.js', - ], - excludedFiles: ['addon/**', 'addon-test-support/**', 'app/**', 'tests/dummy/app/**'], - parserOptions: { - sourceType: 'script', - }, - env: { - browser: false, - node: true, - }, - }, - ], -}; diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..573bf3e59 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,117 @@ +import pixRecommendedConfig from '@1024pix/eslint-plugin/config'; +import babelParser from '@babel/eslint-parser'; +import emberParser from 'ember-eslint-parser'; +import emberRecommendedConfig from 'eslint-plugin-ember/configs/recommended'; +import emberGjsRecommendedConfig from 'eslint-plugin-ember/configs/recommended-gjs'; +import i18nJsonPlugin from 'eslint-plugin-i18n-json'; +import prettierRecommendedConfig from 'eslint-plugin-prettier/recommended'; +import qunitRecommendedConfig from 'eslint-plugin-qunit/configs/recommended'; +import globals from 'globals'; + +const unconventionalJsFiles = ['blueprints/**', 'app/vendor/*']; +const compiledOutputFiles = ['dist/*', 'tmp/*']; +const dependenciesFiles = ['node_modules/*']; +const miscFiles = [ + 'index.js', + 'coverage/*', + '!**/.*', + '**/.eslintcache', + '.circleci/**', + '.github/**', + '.template-lintrc.js', + 'tests/dummy/**' +]; +const emberTryFiles = [ + '.node_modules.ember-try/*', + 'bower.json.ember-try', + 'package.json.ember-try', +]; +const nonPhraseGeneratedFiles = ['translations/en.json', 'translations/fr.json']; + +const nodeFiles = [ + 'eslint.config.js', + 'ember-cli-build.js', + 'testem.js', + 'blueprints/*/index.js', + 'config/**/*.js', + 'lib/*/index.js', + 'server/**/*.js', +]; + +const emberPatchedParser = Object.assign( + { + meta: { + name: 'ember-eslint-parser', + version: '*', + }, + }, + emberParser, +); + +export default [ + ...pixRecommendedConfig, + ...emberRecommendedConfig, + ...emberGjsRecommendedConfig, + qunitRecommendedConfig, + prettierRecommendedConfig, + { + ignores: [ + ...unconventionalJsFiles, + ...compiledOutputFiles, + ...dependenciesFiles, + ...miscFiles, + ...nodeFiles, + ...emberTryFiles, + ], + }, + { + languageOptions: { + globals: { + ...globals.browser, + }, + parser: babelParser, + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + requireConfigFile: false, + babelOptions: { + configFile: false, + babelrc: false, + plugins: [['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }]], + }, + }, + }, + rules: { + 'no-irregular-whitespace': 'off', + 'no-restricted-imports': ['error', { paths: ['lodash'] }], + }, + }, + { + files: ['**/*.gjs'], + languageOptions: { + parser: emberPatchedParser, + sourceType: 'module', + }, + }, + { + files: ['tests/**/*.js', 'tests/**/*.gjs'], + + languageOptions: { + globals: { + ...globals.embertest, + server: false, + }, + }, + }, + { + files: nonPhraseGeneratedFiles, + plugins: { 'i18n-json': i18nJsonPlugin }, + processor: { + meta: { name: '.json' }, + ...i18nJsonPlugin.processors['.json'], + }, + rules: { + ...i18nJsonPlugin.configs.recommended.rules, + }, + }, +]; diff --git a/package-lock.json b/package-lock.json index 8d70876ba..dba1316e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,9 +26,9 @@ }, "devDependencies": { "@1024pix/ember-testing-library": "^3.0.6", - "@1024pix/eslint-config": "^1.3.8", - "@1024pix/stylelint-config": "^5.1.12", - "@babel/eslint-parser": "^7.25.1", + "@1024pix/eslint-plugin": "^2.0.4", + "@1024pix/stylelint-config": "^5.1.26", + "@babel/eslint-parser": "^7.26.5", "@babel/plugin-proposal-decorators": "^7.24.7", "@ember/optional-features": "^2.1.0", "@ember/string": "^4.0.0", @@ -59,6 +59,7 @@ "ember-cli-inject-live-reload": "^2.1.0", "ember-cli-sri": "^2.1.1", "ember-cli-terser": "^4.0.2", + "ember-eslint-parser": "^0.5.7", "ember-load-initializers": "^2.1.2", "ember-page-title": "^8.2.3", "ember-qunit": "^8.1.0", @@ -69,23 +70,25 @@ "ember-template-lint": "^6.0.0", "ember-template-lint-plugin-prettier": "^5.0.0", "ember-try": "^3.0.0", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-ember": "^12.0.0", - "eslint-plugin-n": "^17.0.0", + "eslint": "^9.18.0", + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-ember": "^12.3.3", + "eslint-plugin-i18n-json": "^4.0.1", + "eslint-plugin-n": "^17.15.1", "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-qunit": "^8.1.1", + "eslint-plugin-qunit": "^8.1.2", "fs-extra": "^11.0.0", + "globals": "^15.14.0", "html-webpack-plugin": "^5.5.0", "loader.js": "^4.7.0", "lodash": "^4.17.21", "npm-run-all2": "^6.0.0", - "prettier": "^3.3.3", + "prettier": "^3.4.2", "qunit": "^2.22.0", "qunit-dom": "^3.0.0", "sass": "^1.83.1", "storybook": "^8.4.2", - "stylelint": "^16.0.2", + "stylelint": "^16.13.2", "svg-sprite": "^2.0.4", "svgo": "^3.3.2", "webpack": "^5.93.0" @@ -109,39 +112,35 @@ "node": "^20 || ^22" } }, - "node_modules/@1024pix/eslint-config": { - "version": "1.3.8", - "dev": true, - "dependencies": { - "@1024pix/eslint-plugin": "^1.1.2", - "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "eslint-plugin-i18n-json": "^4.0.0", - "eslint-plugin-simple-import-sort": "^12.0.0", - "eslint-plugin-yml": "^1.8.0" - }, - "peerDependencies": { - "eslint": ">=8.57.0" - } - }, "node_modules/@1024pix/eslint-plugin": { - "version": "1.3.1", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@1024pix/eslint-plugin/-/eslint-plugin-2.0.4.tgz", + "integrity": "sha512-w07d45DfYqveT/MLsycwVR91Zb9+fVIYT8yO7dFOWSSTIQlqp7tMxsqVf+Ez5oTLZfV5SI6YAJ6iZp/nRmlXxg==", "dev": true, "dependencies": { - "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "eslint-plugin-simple-import-sort": "^12.1.0", - "eslint-plugin-yml": "^1.14.0" + "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1", + "eslint-plugin-simple-import-sort": "^12.1.1", + "eslint-plugin-yml": "^1.16.0" + }, + "engines": { + "node": "^20 || ^22" }, "peerDependencies": { - "eslint": ">=8.56.0" + "eslint": ">=9.17.0" } }, "node_modules/@1024pix/stylelint-config": { - "version": "5.1.19", + "version": "5.1.26", + "resolved": "https://registry.npmjs.org/@1024pix/stylelint-config/-/stylelint-config-5.1.26.tgz", + "integrity": "sha512-wl2CdJYUjjXC+ARGE5KyYXwfatGwGoVXmkerRtflILNsYYvU/qcxSjaGoKZO8Sx3MloW7/PQnugpklUsYvvPtw==", "dev": true, "dependencies": { "@1024pix/stylelint-config-rational-order": ">=0.1.3", "stylelint-config-standard-scss": ">=9.0.0" }, + "engines": { + "node": "^20 || ^22" + }, "peerDependencies": { "stylelint": ">=15.0.0" } @@ -869,7 +868,9 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.25.1", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.26.5.tgz", + "integrity": "sha512-Kkm8C8uxI842AwQADxl0GbcG1rupELYLShazYEZO/2DYjhyWXJIOUVOE3tBYm6JXzUCNJOZEzqc4rCW/jsEQYQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1622,6 +1623,15 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-classes/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/plugin-transform-computed-properties": { "version": "7.24.7", "license": "MIT", @@ -2393,6 +2403,15 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/types": { "version": "7.25.6", "license": "MIT", @@ -2430,7 +2449,9 @@ } }, "node_modules/@csstools/css-parser-algorithms": { - "version": "3.0.1", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.4.tgz", + "integrity": "sha512-Up7rBoV77rv29d3uKHUIVubz1BTcgyUK72IvCQAbfbMv584xHcGKCKbWh7i8hPrRJ7qU4Y8IO3IY9m+iTB7P3A==", "dev": true, "funding": [ { @@ -2447,11 +2468,13 @@ "node": ">=18" }, "peerDependencies": { - "@csstools/css-tokenizer": "^3.0.1" + "@csstools/css-tokenizer": "^3.0.3" } }, "node_modules/@csstools/css-tokenizer": { - "version": "3.0.1", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.3.tgz", + "integrity": "sha512-UJnjoFsmxfKUdNYdWgOB0mWUypuLvAfQPH1+pyvRJs6euowbFkFC6P13w1l8mJyi3vxYMxc9kld5jZEGRQs6bw==", "dev": true, "funding": [ { @@ -2469,7 +2492,9 @@ } }, "node_modules/@csstools/media-query-list-parser": { - "version": "3.0.1", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-4.0.2.tgz", + "integrity": "sha512-EUos465uvVvMJehckATTlNqGj4UJWkTmdWuDMjqvSUkjGpmOyFZBVwb4knxCm/k2GMTXY+c/5RkdndzFYWeX5A==", "dev": true, "funding": [ { @@ -2486,29 +2511,8 @@ "node": ">=18" }, "peerDependencies": { - "@csstools/css-parser-algorithms": "^3.0.1", - "@csstools/css-tokenizer": "^3.0.1" - } - }, - "node_modules/@csstools/selector-specificity": { - "version": "4.0.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT-0", - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "postcss-selector-parser": "^6.1.0" + "@csstools/css-parser-algorithms": "^3.0.4", + "@csstools/css-tokenizer": "^3.0.3" } }, "node_modules/@dabh/diagnostics": { @@ -3681,7 +3685,9 @@ } }, "node_modules/@eslint-community/eslint-plugin-eslint-comments": { - "version": "4.4.0", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.4.1.tgz", + "integrity": "sha512-lb/Z/MzbTf7CaVYM9WCFNQZ4L1yi3ev2fsFPF99h31ljhSEyUoyEsKsNWiU+qD1glbYTDJdqgyaLKtyTkkqtuQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3699,15 +3705,20 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", "dev": true, "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.3" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, + "funding": { + "url": "https://opencollective.com/eslint" + }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } @@ -3724,22 +3735,54 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", "dev": true, "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/config-array": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.1.tgz", + "integrity": "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.5", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.10.0.tgz", + "integrity": "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", + "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -3747,43 +3790,57 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", + "node_modules/@eslint/js": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.18.0.tgz", + "integrity": "sha512-fK6L7rxcq6/z+AaQMtiFTkvbHkBLNlwyRxHpKawP0x3u9+NC6MQTnFW+AdpwC6gfHTW0051cokQgtTN2FqlxQA==", "dev": true, - "license": "(MIT OR CC0-1.0)", + "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@eslint/js": { - "version": "8.57.0", + "node_modules/@eslint/object-schema": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.5.tgz", + "integrity": "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.5.tgz", + "integrity": "sha512-lB05FkqEdUg2AA0xEbUz0SnkXT1LcCTa438W4IWTUh4hdOnVbQyOJ81OrDXsJk/LSiJHubgGEFoR5EHq1NsH1A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.10.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@formatjs/fast-memoize": { @@ -5509,17 +5566,42 @@ "version": "2.0.0", "license": "ISC" }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" }, "engines": { - "node": ">=10.10.0" + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, "node_modules/@humanwhocodes/module-importer": { @@ -5534,10 +5616,19 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", + "node_modules/@humanwhocodes/retry": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", + "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", "dev": true, - "license": "BSD-3-Clause" + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@inquirer/figures": { "version": "1.0.5", @@ -5682,6 +5773,41 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@keyv/serialize": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.0.2.tgz", + "integrity": "sha512-+E/LyaAeuABniD/RvUezWVXKpeuvwLEA9//nE9952zBaOdBd2mQ3pPoM8cUe2X6IcMByfuSLzmYqnYshG60+HQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer": "^6.0.3" + } + }, + "node_modules/@keyv/serialize/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/@lint-todo/utils": { "version": "13.1.1", "dev": true, @@ -7649,7 +7775,9 @@ } }, "node_modules/@types/estree": { - "version": "1.0.5", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", "license": "MIT" }, "node_modules/@types/express": { @@ -7834,11 +7962,6 @@ "@types/unist": "*" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "dev": true, - "license": "ISC" - }, "node_modules/@webassemblyjs/ast": { "version": "1.12.1", "license": "MIT", @@ -8006,6 +8129,8 @@ }, "node_modules/acorn-jsx": { "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "license": "MIT", "peerDependencies": { @@ -8475,6 +8600,8 @@ }, "node_modules/astral-regex": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", "dev": true, "license": "MIT", "engines": { @@ -11313,6 +11440,17 @@ "node": ">=0.10.0" } }, + "node_modules/cacheable": { + "version": "1.8.7", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-1.8.7.tgz", + "integrity": "sha512-AbfG7dAuYNjYxFUtL1lAqmlWdxczCJ47w7cFjhGcnGnUdwSo6VgmSojfoW3tUI12HUkgTJ5kqj78yyq6TsFtlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.6.0", + "keyv": "^5.2.3" + } + }, "node_modules/cacheable-request": { "version": "6.1.0", "license": "MIT", @@ -11360,6 +11498,16 @@ "node": ">=8" } }, + "node_modules/cacheable/node_modules/keyv": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.2.3.tgz", + "integrity": "sha512-AGKecUfzrowabUv0bH1RIR5Vf7w+l4S3xtQAypKaUpTdIR1EbrAcTxHCrpo9Q+IWeUlFE2palRtgIQcgm+PQJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.0.2" + } + }, "node_modules/calculate-cache-key-for-tree": { "version": "2.0.0", "license": "MIT", @@ -12746,7 +12894,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -12776,7 +12926,9 @@ } }, "node_modules/css-functions-list": { - "version": "3.2.2", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.2.3.tgz", + "integrity": "sha512-IQOkD3hbR5KrN93MtcYuad6YPuTSUhntLHDuLEbFWE+ff2/XSZNdZG+LcbbIW5AXKg/WFIfYItIzVoHngHXZzA==", "dev": true, "license": "MIT", "engines": { @@ -13304,17 +13456,6 @@ "node": ">=4" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/dom-accessibility-api": { "version": "0.5.16", "dev": true, @@ -16539,15 +16680,19 @@ } }, "node_modules/ember-eslint-parser": { - "version": "0.4.3", + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/ember-eslint-parser/-/ember-eslint-parser-0.5.7.tgz", + "integrity": "sha512-d0nIQxC6TXsMebi7GcpH6meFDVhTUTYZpQ6Yg5n92+eZHqygAEKWZX55lLa49/wucBXS+Wadp2g6okPcN463aA==", "dev": true, "license": "ISC", "dependencies": { - "@babel/eslint-parser": "7.23.10", + "@babel/eslint-parser": "^7.23.10", "@glimmer/syntax": "^0.92.0", - "content-tag": "^1.2.2", + "content-tag": "^2.0.1", "eslint-scope": "^7.2.2", - "html-tags": "^3.3.1" + "html-tags": "^3.3.1", + "mathml-tag-names": "^2.1.3", + "svg-tags": "^1.0.0" }, "engines": { "node": ">=16.0.0" @@ -16562,30 +16707,10 @@ } } }, - "node_modules/ember-eslint-parser/node_modules/@babel/eslint-parser": { - "version": "7.23.10", - "dev": true, - "license": "MIT", - "dependencies": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || >=14.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.11.0", - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/ember-eslint-parser/node_modules/content-tag": { - "version": "1.2.2", - "dev": true, - "license": "MIT" - }, "node_modules/ember-eslint-parser/node_modules/eslint-scope": { "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -20490,57 +20615,63 @@ } }, "node_modules/eslint": { - "version": "8.57.0", + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.18.0.tgz", + "integrity": "sha512-+waTfRWQlSbpt3KWE+CjrPPYnbq9kfZIYUqapc0uBXyjTp8aYXZDsUH16m39Ryq3NjAVP4tjuF7KaukeqoCoaA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.10.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.18.0", + "@eslint/plugin-kit": "^0.2.5", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.6", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, "node_modules/eslint-compat-utils": { @@ -20569,11 +20700,13 @@ } }, "node_modules/eslint-config-prettier": { - "version": "9.1.0", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.0.1.tgz", + "integrity": "sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw==", "dev": true, "license": "MIT", "bin": { - "eslint-config-prettier": "bin/cli.js" + "eslint-config-prettier": "build/bin/cli.js" }, "peerDependencies": { "eslint": ">=7.0.0" @@ -20585,13 +20718,15 @@ "license": "ISC" }, "node_modules/eslint-plugin-ember": { - "version": "12.2.0", + "version": "12.3.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-ember/-/eslint-plugin-ember-12.3.3.tgz", + "integrity": "sha512-OXf3+XofsSMW/zGnp6B1cB2veC9zLzby8RGmHkxNwRHGLs/fYNVBbpwkmdZhzR8+IMN3wjtLR4iNLvkKOAT5bg==", "dev": true, "license": "MIT", "dependencies": { "@ember-data/rfc395-data": "^0.0.4", - "css-tree": "^2.3.1", - "ember-eslint-parser": "^0.4.3", + "css-tree": "^3.0.1", + "ember-eslint-parser": "^0.5.6", "ember-rfc176-data": "^0.3.18", "eslint-utils": "^3.0.0", "estraverse": "^5.3.0", @@ -20613,6 +20748,27 @@ } } }, + "node_modules/eslint-plugin-ember/node_modules/css-tree": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz", + "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.12.2", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/eslint-plugin-ember/node_modules/mdn-data": { + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", + "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", + "dev": true, + "license": "CC0-1.0" + }, "node_modules/eslint-plugin-es-x": { "version": "7.8.0", "dev": true, @@ -20634,7 +20790,9 @@ } }, "node_modules/eslint-plugin-i18n-json": { - "version": "4.0.0", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-json/-/eslint-plugin-i18n-json-4.0.1.tgz", + "integrity": "sha512-LNQS2XeEy1fdCOn/n3Aeh7RWPVbwKL0tH4Q1c2Y/M1TN6Jo3uN6C3cTvtjzJEms7ul0rmCAPoGqM4IsVCOIxnw==", "dev": true, "license": "MIT", "dependencies": { @@ -20642,10 +20800,7 @@ "chalk": "^2.3.2", "indent-string": "^3.2.0", "jest-diff": "^22.0.3", - "lodash.get": "^4.4.2", - "lodash.isequal": "^4.5.0", - "lodash.isplainobject": "^4.0.6", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "log-symbols": "^2.2.0", "parse-json": "^5.2.0", "plur": "^2.1.2", @@ -20660,6 +20815,8 @@ }, "node_modules/eslint-plugin-i18n-json/node_modules/pretty-format": { "version": "22.4.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-22.4.3.tgz", + "integrity": "sha512-S4oT9/sT6MN7/3COoOy+ZJeA92VmOnveLHgrwBE3Z1W5N9S2A1QGNYiE1z75DAENbJrXXUb+OWXhpJcg05QKQQ==", "dev": true, "license": "MIT", "dependencies": { @@ -20668,18 +20825,20 @@ } }, "node_modules/eslint-plugin-n": { - "version": "17.10.2", + "version": "17.15.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.15.1.tgz", + "integrity": "sha512-KFw7x02hZZkBdbZEFQduRGH4VkIH4MW97ClsbAM4Y4E6KguBJWGfWG1P4HEIpZk2bkoWf0bojpnjNAhYQP8beA==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "enhanced-resolve": "^5.17.0", - "eslint-plugin-es-x": "^7.5.0", - "get-tsconfig": "^4.7.0", - "globals": "^15.8.0", - "ignore": "^5.2.4", + "@eslint-community/eslint-utils": "^4.4.1", + "enhanced-resolve": "^5.17.1", + "eslint-plugin-es-x": "^7.8.0", + "get-tsconfig": "^4.8.1", + "globals": "^15.11.0", + "ignore": "^5.3.2", "minimatch": "^9.0.5", - "semver": "^7.5.3" + "semver": "^7.6.3" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -20699,17 +20858,6 @@ "balanced-match": "^1.0.0" } }, - "node_modules/eslint-plugin-n/node_modules/globals": { - "version": "15.9.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/eslint-plugin-n/node_modules/minimatch": { "version": "9.0.5", "dev": true, @@ -20778,6 +20926,8 @@ }, "node_modules/eslint-plugin-simple-import-sort": { "version": "12.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-12.1.1.tgz", + "integrity": "sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA==", "dev": true, "license": "MIT", "peerDependencies": { @@ -20785,12 +20935,14 @@ } }, "node_modules/eslint-plugin-yml": { - "version": "1.14.0", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-yml/-/eslint-plugin-yml-1.16.0.tgz", + "integrity": "sha512-t4MNCetPjTn18/fUDlQ/wKkcYjnuLYKChBrZ0qUaNqRigVqChHWzTP8SrfFi5s4keX3vdlkWRSu8zHJMdKwxWQ==", "dev": true, "license": "MIT", "dependencies": { "debug": "^4.3.2", - "eslint-compat-utils": "^0.5.0", + "eslint-compat-utils": "^0.6.0", "lodash": "^4.17.21", "natural-compare": "^1.4.0", "yaml-eslint-parser": "^1.2.1" @@ -20805,6 +20957,35 @@ "eslint": ">=6.0.0" } }, + "node_modules/eslint-plugin-yml/node_modules/eslint-compat-utils": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.6.4.tgz", + "integrity": "sha512-/u+GQt8NMfXO8w17QendT4gvO5acfxQsAKirAt0LVxDnr2N8YLCVbregaNc/Yhp7NM128DwCaRvr8PLDfeNkQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/eslint-plugin-yml/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, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/eslint-scope": { "version": "5.1.1", "license": "BSD-2-Clause", @@ -20878,7 +21059,9 @@ } }, "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.2", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", + "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -20886,37 +21069,25 @@ "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.4.3", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, "license": "Apache-2.0", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/eslint/node_modules/has-flag": { "version": "4.0.0", "dev": true, @@ -20936,17 +21107,6 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/esm": { "version": "3.2.25", "dev": true, @@ -20956,27 +21116,31 @@ } }, "node_modules/espree": { - "version": "9.6.1", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.14.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.4.3", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, "license": "Apache-2.0", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -21410,7 +21574,9 @@ "license": "Apache-2.0" }, "node_modules/fast-glob": { - "version": "3.3.2", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, "license": "MIT", "dependencies": { @@ -21418,7 +21584,7 @@ "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" @@ -21570,14 +21736,16 @@ } }, "node_modules/file-entry-cache": { - "version": "6.0.1", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" } }, "node_modules/filesize": { @@ -21801,20 +21969,23 @@ } }, "node_modules/flat-cache": { - "version": "3.2.0", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, "license": "MIT", "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { - "version": "3.3.1", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", "dev": true, "license": "ISC" }, @@ -22319,7 +22490,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.8.0", + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", + "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", "dev": true, "license": "MIT", "dependencies": { @@ -22602,10 +22775,16 @@ } }, "node_modules/globals": { - "version": "11.12.0", + "version": "15.14.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.14.0.tgz", + "integrity": "sha512-OkToC372DtlQeje9/zHIo5CT8lRP/FUgEOKBEhU4e0abL7J7CD24fD9ohiLN5hagG/kWCYj4K5oaxxtj2Z0Dig==", + "dev": true, "license": "MIT", "engines": { - "node": ">=4" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/globalthis": { @@ -22736,11 +22915,6 @@ "version": "4.2.11", "license": "ISC" }, - "node_modules/graphemer": { - "version": "1.4.0", - "dev": true, - "license": "MIT" - }, "node_modules/growly": { "version": "1.3.0", "dev": true, @@ -23045,6 +23219,13 @@ "node": ">=0.10.0" } }, + "node_modules/hookified": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.6.0.tgz", + "integrity": "sha512-se7cpwTA+iA/eY548Bu03JJqBiEZAqU2jnyKdj5B5qurtBg64CZGHTgqCv4Yh7NWu6FGI09W61MCq+NoPj9GXA==", + "dev": true, + "license": "MIT" + }, "node_modules/hosted-git-info": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.0.2.tgz", @@ -23590,6 +23771,8 @@ }, "node_modules/irregular-plurals": { "version": "1.4.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", + "integrity": "sha512-kniTIJmaZYiwa17eTtWIfm0K342seyugl6vuC8DiiyiRAJWAVlLkqGCI0Im0neo0TkXw+pRcKaBPRdcKHnQJ6Q==", "dev": true, "license": "MIT", "engines": { @@ -24304,6 +24487,8 @@ }, "node_modules/jest-diff": { "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-22.4.3.tgz", + "integrity": "sha512-/QqGvCDP5oZOF6PebDuLwrB2BMD8ffJv6TAGAdEVuDx1+uEgrHpSFrfrOiMRx2eJ1hgNjlQrOQEHetVwij90KA==", "dev": true, "license": "MIT", "dependencies": { @@ -24315,6 +24500,8 @@ }, "node_modules/jest-diff/node_modules/diff": { "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -24323,6 +24510,8 @@ }, "node_modules/jest-diff/node_modules/pretty-format": { "version": "22.4.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-22.4.3.tgz", + "integrity": "sha512-S4oT9/sT6MN7/3COoOy+ZJeA92VmOnveLHgrwBE3Z1W5N9S2A1QGNYiE1z75DAENbJrXXUb+OWXhpJcg05QKQQ==", "dev": true, "license": "MIT", "dependencies": { @@ -24332,6 +24521,8 @@ }, "node_modules/jest-get-type": { "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz", + "integrity": "sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==", "dev": true, "license": "MIT" }, @@ -24426,6 +24617,8 @@ }, "node_modules/json-buffer": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", "dev": true, "license": "MIT" }, @@ -24511,6 +24704,8 @@ }, "node_modules/keyv": { "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, "license": "MIT", "dependencies": { @@ -24753,16 +24948,6 @@ "dev": true, "license": "MIT" }, - "node_modules/lodash.isequal": { - "version": "4.5.0", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "dev": true, - "license": "MIT" - }, "node_modules/lodash.kebabcase": { "version": "4.1.1", "dev": true, @@ -24778,13 +24963,10 @@ "dev": true, "license": "MIT" }, - "node_modules/lodash.set": { - "version": "4.3.2", - "dev": true, - "license": "MIT" - }, "node_modules/lodash.truncate": { "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", "dev": true, "license": "MIT" }, @@ -25690,7 +25872,9 @@ "license": "ISC" }, "node_modules/nanoid": { - "version": "3.3.7", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "funding": [ { "type": "github", @@ -31879,7 +32063,9 @@ } }, "node_modules/picocolors": { - "version": "1.1.0", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "license": "ISC" }, "node_modules/picomatch": { @@ -32074,6 +32260,8 @@ }, "node_modules/plur": { "version": "2.1.2", + "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", + "integrity": "sha512-WhcHk576xg9y/iv6RWOuroZgsqvCbJN+XGvAypCJwLAYs2iWDp5LUmvaCdV6JR2O0SMBf8l6p7A94AyLCFVMlQ==", "dev": true, "license": "MIT", "dependencies": { @@ -32142,7 +32330,9 @@ } }, "node_modules/postcss": { - "version": "8.4.45", + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.1.tgz", + "integrity": "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==", "funding": [ { "type": "opencollective", @@ -32159,9 +32349,9 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.1", - "source-map-js": "^1.2.0" + "nanoid": "^3.3.8", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" @@ -32457,7 +32647,9 @@ "license": "MIT" }, "node_modules/postcss-safe-parser": { - "version": "7.0.0", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz", + "integrity": "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==", "dev": true, "funding": [ { @@ -32624,7 +32816,9 @@ } }, "node_modules/prettier": { - "version": "3.3.3", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", "dev": true, "license": "MIT", "bin": { @@ -33859,6 +34053,8 @@ }, "node_modules/resolve-pkg-maps": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "dev": true, "license": "MIT", "funding": { @@ -34584,6 +34780,8 @@ }, "node_modules/slice-ansi": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, "license": "MIT", "dependencies": { @@ -34600,6 +34798,8 @@ }, "node_modules/slice-ansi/node_modules/ansi-styles": { "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "license": "MIT", "dependencies": { @@ -35375,6 +35575,8 @@ }, "node_modules/strip-json-comments": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, "license": "MIT", "engines": { @@ -35410,7 +35612,9 @@ "license": "MIT" }, "node_modules/stylelint": { - "version": "16.9.0", + "version": "16.13.2", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.13.2.tgz", + "integrity": "sha512-wDlgh0mRO9RtSa3TdidqHd0nOG8MmUyVKl+dxA6C1j8aZRzpNeEgdhFmU5y4sZx4Fc6r46p0fI7p1vR5O2DZqA==", "dev": true, "funding": [ { @@ -35424,44 +35628,43 @@ ], "license": "MIT", "dependencies": { - "@csstools/css-parser-algorithms": "^3.0.1", - "@csstools/css-tokenizer": "^3.0.1", - "@csstools/media-query-list-parser": "^3.0.1", - "@csstools/selector-specificity": "^4.0.0", + "@csstools/css-parser-algorithms": "^3.0.4", + "@csstools/css-tokenizer": "^3.0.3", + "@csstools/media-query-list-parser": "^4.0.2", + "@csstools/selector-specificity": "^5.0.0", "@dual-bundle/import-meta-resolve": "^4.1.0", "balanced-match": "^2.0.0", "colord": "^2.9.3", "cosmiconfig": "^9.0.0", - "css-functions-list": "^3.2.2", - "css-tree": "^2.3.1", - "debug": "^4.3.6", - "fast-glob": "^3.3.2", + "css-functions-list": "^3.2.3", + "css-tree": "^3.1.0", + "debug": "^4.3.7", + "fast-glob": "^3.3.3", "fastest-levenshtein": "^1.0.16", - "file-entry-cache": "^9.0.0", + "file-entry-cache": "^10.0.5", "global-modules": "^2.0.0", "globby": "^11.1.0", "globjoin": "^0.1.4", "html-tags": "^3.3.1", - "ignore": "^5.3.2", + "ignore": "^7.0.1", "imurmurhash": "^0.1.4", "is-plain-object": "^5.0.0", - "known-css-properties": "^0.34.0", + "known-css-properties": "^0.35.0", "mathml-tag-names": "^2.1.3", "meow": "^13.2.0", "micromatch": "^4.0.8", "normalize-path": "^3.0.0", - "picocolors": "^1.0.1", - "postcss": "^8.4.41", + "picocolors": "^1.1.1", + "postcss": "^8.4.49", "postcss-resolve-nested-selector": "^0.1.6", - "postcss-safe-parser": "^7.0.0", - "postcss-selector-parser": "^6.1.2", + "postcss-safe-parser": "^7.0.1", + "postcss-selector-parser": "^7.0.0", "postcss-value-parser": "^4.2.0", "resolve-from": "^5.0.0", "string-width": "^4.2.3", - "strip-ansi": "^7.1.0", "supports-hyperlinks": "^3.1.0", "svg-tags": "^1.0.0", - "table": "^6.8.2", + "table": "^6.9.0", "write-file-atomic": "^5.0.1" }, "bin": { @@ -35587,15 +35790,27 @@ "node": ">=0.10.0" } }, - "node_modules/stylelint/node_modules/ansi-regex": { - "version": "6.0.1", + "node_modules/stylelint/node_modules/@csstools/selector-specificity": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-5.0.0.tgz", + "integrity": "sha512-PCqQV3c4CoVm3kdPhyeZ07VmBRdH2EpMFA/pd9OASpOEC3aXNGoqPDAZ80D0cLpMBxnmk0+yNhGsEx31hq7Gtw==", "dev": true, - "license": "MIT", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", "engines": { - "node": ">=12" + "node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "peerDependencies": { + "postcss-selector-parser": "^7.0.0" } }, "node_modules/stylelint/node_modules/array-union": { @@ -35636,6 +35851,20 @@ } } }, + "node_modules/stylelint/node_modules/css-tree": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz", + "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.12.2", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, "node_modules/stylelint/node_modules/dir-glob": { "version": "3.0.1", "dev": true, @@ -35648,26 +35877,25 @@ } }, "node_modules/stylelint/node_modules/file-entry-cache": { - "version": "9.1.0", + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-10.0.5.tgz", + "integrity": "sha512-umpQsJrBNsdMDgreSryMEXvJh66XeLtZUwA8Gj7rHGearGufUFv6rB/bcXRFsiGWw/VeSUgUofF4Rf2UKEOrTA==", "dev": true, "license": "MIT", "dependencies": { - "flat-cache": "^5.0.0" - }, - "engines": { - "node": ">=18" + "flat-cache": "^6.1.5" } }, "node_modules/stylelint/node_modules/flat-cache": { - "version": "5.0.0", + "version": "6.1.5", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.5.tgz", + "integrity": "sha512-QR+2kN38f8nMfiIQ1LHYjuDEmZNZVjxuxY+HufbS3BW0EX01Q5OnH7iduOYRutmgiXb797HAKcXUeXrvRjjgSQ==", "dev": true, "license": "MIT", "dependencies": { - "flatted": "^3.3.1", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=18" + "cacheable": "^1.8.7", + "flatted": "^3.3.2", + "hookified": "^1.6.0" } }, "node_modules/stylelint/node_modules/global-modules": { @@ -35713,6 +35941,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/stylelint/node_modules/globby/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/stylelint/node_modules/ignore": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.3.tgz", + "integrity": "sha512-bAH5jbK/F3T3Jls4I0SO1hmPR0dKU0a7+SY6n1yzRtG54FLO8d6w/nxLFX2Nb7dBu6cCWXPaAME6cYqFUMmuCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, "node_modules/stylelint/node_modules/is-plain-object": { "version": "5.0.0", "dev": true, @@ -35721,6 +35969,34 @@ "node": ">=0.10.0" } }, + "node_modules/stylelint/node_modules/known-css-properties": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.35.0.tgz", + "integrity": "sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==", + "dev": true, + "license": "MIT" + }, + "node_modules/stylelint/node_modules/mdn-data": { + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", + "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/stylelint/node_modules/postcss-selector-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", + "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/stylelint/node_modules/resolve-from": { "version": "5.0.0", "dev": true, @@ -35740,20 +36016,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/stylelint/node_modules/strip-ansi": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, "node_modules/stylelint/node_modules/which": { "version": "1.3.1", "dev": true, @@ -36222,7 +36484,9 @@ } }, "node_modules/table": { - "version": "6.8.2", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", + "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==", "dev": true, "license": "BSD-3-Clause", "dependencies": { @@ -36253,6 +36517,8 @@ }, "node_modules/table/node_modules/ajv": { "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, "license": "MIT", "dependencies": { @@ -36268,6 +36534,8 @@ }, "node_modules/table/node_modules/json-schema-traverse": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true, "license": "MIT" }, @@ -36647,11 +36915,6 @@ "dev": true, "license": "MIT" }, - "node_modules/text-table": { - "version": "0.2.0", - "dev": true, - "license": "MIT" - }, "node_modules/textextensions": { "version": "2.6.0", "license": "MIT", @@ -38480,6 +38743,8 @@ }, "node_modules/yaml-eslint-parser": { "version": "1.2.3", + "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-1.2.3.tgz", + "integrity": "sha512-4wZWvE398hCP7O8n3nXKu/vdq1HcH01ixYlCREaJL5NUMwQ0g3MaGFUBNSlmBtKmhbtVG/Cm6lyYmSVTEVil8A==", "dev": true, "license": "MIT", "dependencies": { @@ -38496,6 +38761,8 @@ }, "node_modules/yaml-eslint-parser/node_modules/eslint-visitor-keys": { "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "license": "Apache-2.0", "engines": { @@ -38506,7 +38773,9 @@ } }, "node_modules/yaml-eslint-parser/node_modules/yaml": { - "version": "2.5.1", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", "dev": true, "license": "ISC", "bin": { diff --git a/package.json b/package.json index a6746e455..20b3cee1b 100644 --- a/package.json +++ b/package.json @@ -73,9 +73,9 @@ }, "devDependencies": { "@1024pix/ember-testing-library": "^3.0.6", - "@1024pix/eslint-config": "^1.3.8", - "@1024pix/stylelint-config": "^5.1.12", - "@babel/eslint-parser": "^7.25.1", + "@1024pix/eslint-plugin": "^2.0.4", + "@1024pix/stylelint-config": "^5.1.26", + "@babel/eslint-parser": "^7.26.5", "@babel/plugin-proposal-decorators": "^7.24.7", "@ember/optional-features": "^2.1.0", "@ember/string": "^4.0.0", @@ -106,6 +106,7 @@ "ember-cli-inject-live-reload": "^2.1.0", "ember-cli-sri": "^2.1.1", "ember-cli-terser": "^4.0.2", + "ember-eslint-parser": "^0.5.7", "ember-load-initializers": "^2.1.2", "ember-page-title": "^8.2.3", "ember-qunit": "^8.1.0", @@ -116,23 +117,25 @@ "ember-template-lint": "^6.0.0", "ember-template-lint-plugin-prettier": "^5.0.0", "ember-try": "^3.0.0", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-ember": "^12.0.0", - "eslint-plugin-n": "^17.0.0", + "eslint": "^9.18.0", + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-ember": "^12.3.3", + "eslint-plugin-i18n-json": "^4.0.1", + "eslint-plugin-n": "^17.15.1", "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-qunit": "^8.1.1", + "eslint-plugin-qunit": "^8.1.2", "fs-extra": "^11.0.0", + "globals": "^15.14.0", "html-webpack-plugin": "^5.5.0", "loader.js": "^4.7.0", "lodash": "^4.17.21", "npm-run-all2": "^6.0.0", - "prettier": "^3.3.3", + "prettier": "^3.4.2", "qunit": "^2.22.0", "qunit-dom": "^3.0.0", "sass": "^1.83.1", "storybook": "^8.4.2", - "stylelint": "^16.0.2", + "stylelint": "^16.13.2", "svg-sprite": "^2.0.4", "svgo": "^3.3.2", "webpack": "^5.93.0" From c77133986b9bef6fc197c7cb2185d7732f4b2339 Mon Sep 17 00:00:00 2001 From: mcampourcy Date: Tue, 14 Jan 2025 15:31:48 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A8fix(pixui):=20Fix=20lint=20erro?= =?UTF-8?q?rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .storybook/main.js | 6 +++++- .storybook/manager.js | 1 + addon/components/pix-accordions.js | 4 ++-- addon/components/pix-app-layout.js | 2 +- addon/components/pix-banner-alert.js | 2 +- addon/components/pix-button-upload.js | 3 ++- addon/components/pix-checkbox.js | 7 ++++--- .../pix-filterable-and-searchable-select.js | 6 +++--- addon/components/pix-icon-button.js | 4 ++-- addon/components/pix-icon.js | 4 ++-- addon/components/pix-indicator-card.js | 2 +- addon/components/pix-input-base.js | 3 +-- addon/components/pix-input-code.js | 2 +- addon/components/pix-input-password.js | 4 ++-- addon/components/pix-modal.js | 2 +- addon/components/pix-multi-select.js | 5 ++--- addon/components/pix-navigation.js | 4 ++-- addon/components/pix-pagination.js | 1 + addon/components/pix-progress-bar.js | 2 +- addon/components/pix-radio-button.js | 7 ++++--- addon/components/pix-return-to.js | 2 +- addon/components/pix-search-input.js | 4 ++-- addon/components/pix-select-list.js | 2 +- addon/components/pix-select.js | 6 +++--- addon/components/pix-selectable-tag.js | 2 +- addon/components/pix-sidebar.js | 2 +- addon/components/pix-structure-switcher.js | 4 ++-- addon/components/pix-table-column.js | 2 +- addon/components/pix-table.js | 2 +- addon/components/pix-textarea.js | 4 ++-- addon/components/pix-toast-container.js | 2 +- addon/components/pix-toast.js | 6 +++--- addon/components/pix-toggle-button.js | 2 +- addon/components/pix-tooltip.js | 2 +- addon/components/toast-example.js | 4 ++-- addon/services/pix-toast.js | 2 +- addon/translations/index.js | 1 + app/services/element-helper.js | 2 +- app/stories/form-example.stories.js | 2 +- app/stories/pix-accordions.stories.js | 1 + app/stories/pix-button-upload.stories.js | 2 +- app/stories/pix-button.stories.js | 1 + app/stories/pix-checkbox-variant-tile.stories.js | 1 + app/stories/pix-filter-banner.stories.js | 2 +- .../pix-filterable-and-searchable-select.stories.js | 2 +- app/stories/pix-icon-button.stories.js | 3 ++- app/stories/pix-icon.stories.js | 1 + app/stories/pix-indicator-card.stories.js | 1 + app/stories/pix-multi-select.stories.js | 2 +- app/stories/pix-radio-button-variant-tile.stories.js | 1 + app/stories/pix-search-input.stories.js | 2 +- app/stories/pix-select.stories.js | 3 ++- app/stories/pix-toggle-button.stories.js | 2 +- tests/acceptance/pix-modal-page-test.js | 3 ++- tests/acceptance/pix-sidebar-page-test.js | 3 ++- tests/helpers/click-by-label.js | 1 + tests/helpers/create-glimmer-component.js | 2 +- tests/helpers/fill-in-by-label.js | 1 + tests/integration/components/pix-accordions-test.js | 6 +++--- tests/integration/components/pix-app-layout-test.js | 4 ++-- .../components/pix-background-header-test.js | 4 ++-- .../integration/components/pix-banner-alert-test.js | 6 +++--- tests/integration/components/pix-block-test.js | 4 ++-- tests/integration/components/pix-button-link-test.js | 4 ++-- tests/integration/components/pix-button-test.js | 7 ++++--- .../integration/components/pix-button-upload-test.js | 4 ++-- tests/integration/components/pix-checkbox-test.js | 10 +++++----- .../integration/components/pix-filter-banner-test.js | 4 ++-- .../pix-filterable-and-searchable-select-test.js | 6 +++--- tests/integration/components/pix-icon-button-test.js | 5 +++-- tests/integration/components/pix-icons-test.js | 4 ++-- .../components/pix-indicator-card-test.js | 4 ++-- tests/integration/components/pix-input-code-test.js | 9 +++++---- .../components/pix-input-password-test.js | 5 ++--- tests/integration/components/pix-input-test.js | 7 ++++--- tests/integration/components/pix-label-test.js | 6 +++--- tests/integration/components/pix-modal-test.js | 7 ++++--- .../integration/components/pix-multi-select-test.js | 10 +++++----- .../components/pix-navigation-button-test.js | 4 ++-- tests/integration/components/pix-navigation-test.js | 4 ++-- .../components/pix-notification-alert-test.js | 4 ++-- tests/integration/components/pix-pagination-test.js | 6 +++--- .../integration/components/pix-progress-bar-test.js | 5 +++-- .../integration/components/pix-radio-button-test.js | 6 +++--- tests/integration/components/pix-return-to-test.js | 4 ++-- .../integration/components/pix-search-input-test.js | 6 +++--- tests/integration/components/pix-select-test.js | 12 ++++++------ .../components/pix-selectable-tag-test.js | 4 ++-- tests/integration/components/pix-sidebar-test.js | 7 ++++--- tests/integration/components/pix-stars-test.js | 4 ++-- .../components/pix-structure-switcher-test.js | 10 +++++----- .../integration/components/pix-table-column-test.js | 4 ++-- tests/integration/components/pix-table-test.js | 4 ++-- tests/integration/components/pix-tag-test.js | 4 ++-- tests/integration/components/pix-textarea-test.js | 7 ++++--- .../components/pix-toast-container-test.js | 6 +++--- tests/integration/components/pix-toast-test.js | 6 +++--- .../integration/components/pix-toggle-button-test.js | 8 ++++---- tests/integration/components/pix-tooltip-test.js | 6 +++--- tests/integration/modifiers/on-escape-action-test.js | 6 +++--- tests/test-helper.js | 5 +++-- tests/unit/components/pix-banner-alert-test.js | 5 +++-- tests/unit/components/pix-radio-button-test.js | 3 ++- tests/unit/components/pix-return-to-test.js | 3 ++- tests/unit/components/pix-search-input-test.js | 5 +++-- tests/unit/components/pix-select-test.js | 3 ++- tests/unit/services/pix-toast-test.js | 4 ++-- tests/unit/translations/flatten-object-test.js | 2 +- 108 files changed, 232 insertions(+), 199 deletions(-) diff --git a/.storybook/main.js b/.storybook/main.js index ef1f153a9..60e2a0ad3 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,5 +1,9 @@ const config = { - addons: ['@storybook/addon-essentials', '@storybook/addon-a11y', '@storybook/addon-webpack5-compiler-babel'], + addons: [ + '@storybook/addon-essentials', + '@storybook/addon-a11y', + '@storybook/addon-webpack5-compiler-babel', + ], stories: ['../docs/**/*.@(mdx|stories.@(mdx))', '../app/*/*.@(mdx|stories.@(js|jsx|ts|tsx))'], staticDirs: ['../dist'], diff --git a/.storybook/manager.js b/.storybook/manager.js index 1e0d97768..c6a77fedf 100644 --- a/.storybook/manager.js +++ b/.storybook/manager.js @@ -1,4 +1,5 @@ import { addons } from '@storybook/manager-api'; + import storybookCustomTheme from './storybook-custom-theme'; addons.setConfig({ diff --git a/addon/components/pix-accordions.js b/addon/components/pix-accordions.js index 8f9f40ede..851bf8d21 100644 --- a/addon/components/pix-accordions.js +++ b/addon/components/pix-accordions.js @@ -1,7 +1,7 @@ -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; export default class PixAccordions extends Component { text = 'pix-accordions'; diff --git a/addon/components/pix-app-layout.js b/addon/components/pix-app-layout.js index ef2d0e7d0..5907a894f 100644 --- a/addon/components/pix-app-layout.js +++ b/addon/components/pix-app-layout.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { warn } from '@ember/debug'; +import Component from '@glimmer/component'; export default class PixAppLayout extends Component { get variant() { diff --git a/addon/components/pix-banner-alert.js b/addon/components/pix-banner-alert.js index cba9bebf8..fd4f4574f 100644 --- a/addon/components/pix-banner-alert.js +++ b/addon/components/pix-banner-alert.js @@ -1,6 +1,6 @@ +import { action } from '@ember/object'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import { action } from '@ember/object'; const TYPE_INFO = 'information'; const TYPE_ERROR = 'error'; const TYPE_WARNING = 'warning'; diff --git a/addon/components/pix-button-upload.js b/addon/components/pix-button-upload.js index 423b271e9..60411ee28 100644 --- a/addon/components/pix-button-upload.js +++ b/addon/components/pix-button-upload.js @@ -1,7 +1,8 @@ -import PixButtonBase from './pix-button-base'; import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking'; +import PixButtonBase from './pix-button-base'; + export default class PixButtonUpload extends PixButtonBase { @tracked files = []; diff --git a/addon/components/pix-checkbox.js b/addon/components/pix-checkbox.js index 5af9ce497..97d8849f1 100644 --- a/addon/components/pix-checkbox.js +++ b/addon/components/pix-checkbox.js @@ -1,7 +1,8 @@ -import Component from '@glimmer/component'; -import { guidFor } from '@ember/object/internals'; -import { action } from '@ember/object'; import { warn } from '@ember/debug'; +import { action } from '@ember/object'; +import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; + import { formatMessage } from '../translations'; export default class PixCheckbox extends Component { diff --git a/addon/components/pix-filterable-and-searchable-select.js b/addon/components/pix-filterable-and-searchable-select.js index ad3602634..db9759ace 100644 --- a/addon/components/pix-filterable-and-searchable-select.js +++ b/addon/components/pix-filterable-and-searchable-select.js @@ -1,8 +1,8 @@ -import Component from '@glimmer/component'; -import { inject as service } from '@ember/service'; -import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import { inject as service } from '@ember/service'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; export default class PixFilterableAndSearchableSelect extends Component { @service elementHelper; diff --git a/addon/components/pix-icon-button.js b/addon/components/pix-icon-button.js index d838391d3..0a13ba44b 100644 --- a/addon/components/pix-icon-button.js +++ b/addon/components/pix-icon-button.js @@ -1,6 +1,6 @@ -import Component from '@glimmer/component'; -import { action } from '@ember/object'; import { warn } from '@ember/debug'; +import { action } from '@ember/object'; +import Component from '@glimmer/component'; export default class PixIconButton extends Component { text = 'pix-icon-button'; diff --git a/addon/components/pix-icon.js b/addon/components/pix-icon.js index 761b47f8e..ec124f164 100644 --- a/addon/components/pix-icon.js +++ b/addon/components/pix-icon.js @@ -1,6 +1,6 @@ -import Component from '@glimmer/component'; -import { warn } from '@ember/debug'; import { ICONS } from '@1024pix/pix-ui/helpers/icons'; +import { warn } from '@ember/debug'; +import Component from '@glimmer/component'; export default class PixIcon extends Component { get title() { diff --git a/addon/components/pix-indicator-card.js b/addon/components/pix-indicator-card.js index 36cdc2b6b..dfee2ae48 100644 --- a/addon/components/pix-indicator-card.js +++ b/addon/components/pix-indicator-card.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; export default class PixIndicatorCard extends Component { id = guidFor(this); diff --git a/addon/components/pix-input-base.js b/addon/components/pix-input-base.js index 1f6259724..36024a841 100644 --- a/addon/components/pix-input-base.js +++ b/addon/components/pix-input-base.js @@ -1,6 +1,5 @@ -import Component from '@glimmer/component'; - import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; export default class PixInputBase extends Component { prefix; diff --git a/addon/components/pix-input-code.js b/addon/components/pix-input-code.js index c3e233a62..6bb501c93 100644 --- a/addon/components/pix-input-code.js +++ b/addon/components/pix-input-code.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; +import Component from '@glimmer/component'; const ERROR_MESSAGE = 'ERROR in PixInputCode component, you must provide an @ariaLabel and a @legend'; diff --git a/addon/components/pix-input-password.js b/addon/components/pix-input-password.js index 69ac0f793..882b246e4 100644 --- a/addon/components/pix-input-password.js +++ b/addon/components/pix-input-password.js @@ -1,8 +1,8 @@ -import PixInputBase from './pix-input-base'; - import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking'; +import PixInputBase from './pix-input-base'; + export default class PixInputPassword extends PixInputBase { constructor() { super(...arguments); diff --git a/addon/components/pix-modal.js b/addon/components/pix-modal.js index 1785a8da4..8319e30da 100644 --- a/addon/components/pix-modal.js +++ b/addon/components/pix-modal.js @@ -1,6 +1,6 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; export default class PixModal extends Component { constructor(...args) { diff --git a/addon/components/pix-multi-select.js b/addon/components/pix-multi-select.js index b0f1511f8..23435fd7a 100644 --- a/addon/components/pix-multi-select.js +++ b/addon/components/pix-multi-select.js @@ -1,8 +1,7 @@ -import Component from '@glimmer/component'; - import { action } from '@ember/object'; -import { tracked } from '@glimmer/tracking'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; function sortOptionsByCheckedFirst(a, b) { if (a.checked && b.checked) return 0; diff --git a/addon/components/pix-navigation.js b/addon/components/pix-navigation.js index 85207dfbe..693dfd7b0 100644 --- a/addon/components/pix-navigation.js +++ b/addon/components/pix-navigation.js @@ -1,7 +1,7 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; -import { tracked } from '@glimmer/tracking'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; export default class PixMNavigation extends Component { constructor(...args) { diff --git a/addon/components/pix-pagination.js b/addon/components/pix-pagination.js index 6cd9ffa31..6f61f3753 100644 --- a/addon/components/pix-pagination.js +++ b/addon/components/pix-pagination.js @@ -1,6 +1,7 @@ import { action } from '@ember/object'; import { inject as service } from '@ember/service'; import Component from '@glimmer/component'; + import { formatMessage } from '../translations'; const DEFAULT_PAGE_OPTIONS = [ diff --git a/addon/components/pix-progress-bar.js b/addon/components/pix-progress-bar.js index 831d16c60..c10b5fa05 100644 --- a/addon/components/pix-progress-bar.js +++ b/addon/components/pix-progress-bar.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; export default class PixProgressBar extends Component { get id() { diff --git a/addon/components/pix-radio-button.js b/addon/components/pix-radio-button.js index ba664a7a8..ecc1d45c8 100644 --- a/addon/components/pix-radio-button.js +++ b/addon/components/pix-radio-button.js @@ -1,7 +1,8 @@ -import Component from '@glimmer/component'; -import { guidFor } from '@ember/object/internals'; -import { action } from '@ember/object'; import { warn } from '@ember/debug'; +import { action } from '@ember/object'; +import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; + import { formatMessage } from '../translations'; export default class PixRadioButton extends Component { diff --git a/addon/components/pix-return-to.js b/addon/components/pix-return-to.js index 426fcea5c..60f9e2852 100644 --- a/addon/components/pix-return-to.js +++ b/addon/components/pix-return-to.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { warn } from '@ember/debug'; +import Component from '@glimmer/component'; export default class PixReturnTo extends Component { text = 'pix-return-to'; diff --git a/addon/components/pix-search-input.js b/addon/components/pix-search-input.js index d1d710fda..d690a5b6e 100644 --- a/addon/components/pix-search-input.js +++ b/addon/components/pix-search-input.js @@ -1,8 +1,8 @@ -import PixInputBase from './pix-input-base'; - import { action } from '@ember/object'; import { debounceTask } from 'ember-lifeline'; +import PixInputBase from './pix-input-base'; + export default class PixSearchInput extends PixInputBase { initialValue = this.args.value; diff --git a/addon/components/pix-select-list.js b/addon/components/pix-select-list.js index 09946f5e9..edbd73178 100644 --- a/addon/components/pix-select-list.js +++ b/addon/components/pix-select-list.js @@ -18,7 +18,7 @@ export default class PixSelectList extends Component { return !this.args.isExpanded || this.args.hideDefaultOption; } get results() { - let results = []; + const results = []; let options = this.args.options; if (this.args.searchValue) { diff --git a/addon/components/pix-select.js b/addon/components/pix-select.js index 97be6c9fc..29ba0a6ed 100644 --- a/addon/components/pix-select.js +++ b/addon/components/pix-select.js @@ -1,8 +1,8 @@ -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import { inject as service } from '@ember/service'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import { inject as service } from '@ember/service'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; export default class PixSelect extends Component { @service elementHelper; diff --git a/addon/components/pix-selectable-tag.js b/addon/components/pix-selectable-tag.js index 3650a229d..e82de7b49 100644 --- a/addon/components/pix-selectable-tag.js +++ b/addon/components/pix-selectable-tag.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; +import Component from '@glimmer/component'; export default class PixSelectableTag extends Component { @action diff --git a/addon/components/pix-sidebar.js b/addon/components/pix-sidebar.js index e22094f50..538523290 100644 --- a/addon/components/pix-sidebar.js +++ b/addon/components/pix-sidebar.js @@ -1,6 +1,6 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; export default class PixSidebar extends Component { constructor(...args) { diff --git a/addon/components/pix-structure-switcher.js b/addon/components/pix-structure-switcher.js index 1df9fb68d..13a54d285 100644 --- a/addon/components/pix-structure-switcher.js +++ b/addon/components/pix-structure-switcher.js @@ -1,7 +1,7 @@ -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; export default class PixStructureSwitcher extends Component { constructor(...args) { super(...args); diff --git a/addon/components/pix-table-column.js b/addon/components/pix-table-column.js index 466b97f15..e9871ae36 100644 --- a/addon/components/pix-table-column.js +++ b/addon/components/pix-table-column.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { warn } from '@ember/debug'; +import Component from '@glimmer/component'; export default class PixTableColumn extends Component { get displayHeader() { diff --git a/addon/components/pix-table.js b/addon/components/pix-table.js index 432ce8ed5..9cbabfae2 100644 --- a/addon/components/pix-table.js +++ b/addon/components/pix-table.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { warn } from '@ember/debug'; +import Component from '@glimmer/component'; export default class PixTable extends Component { get variant() { diff --git a/addon/components/pix-textarea.js b/addon/components/pix-textarea.js index fea6f117f..b3df6ca91 100644 --- a/addon/components/pix-textarea.js +++ b/addon/components/pix-textarea.js @@ -1,7 +1,7 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; -import { tracked } from '@glimmer/tracking'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; export default class PixTextarea extends Component { // eslint-disable-next-line ember/no-tracked-properties-from-args diff --git a/addon/components/pix-toast-container.js b/addon/components/pix-toast-container.js index 6ea4a5490..f8d3dcfa7 100644 --- a/addon/components/pix-toast-container.js +++ b/addon/components/pix-toast-container.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { service } from '@ember/service'; +import Component from '@glimmer/component'; export default class PixToastContainer extends Component { @service pixToast; diff --git a/addon/components/pix-toast.js b/addon/components/pix-toast.js index 38df3ccaa..7ba4fdec6 100644 --- a/addon/components/pix-toast.js +++ b/addon/components/pix-toast.js @@ -1,7 +1,7 @@ -import Component from '@glimmer/component'; -import { service } from '@ember/service'; -import { action } from '@ember/object'; import { warn } from '@ember/debug'; +import { action } from '@ember/object'; +import { service } from '@ember/service'; +import Component from '@glimmer/component'; const TYPE_SUCCESS = 'success'; const TYPE_ERROR = 'error'; const TYPE_INFORMATION = 'information'; diff --git a/addon/components/pix-toggle-button.js b/addon/components/pix-toggle-button.js index a8214c9da..3eb1faa65 100644 --- a/addon/components/pix-toggle-button.js +++ b/addon/components/pix-toggle-button.js @@ -1,6 +1,6 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; import { guidFor } from '@ember/object/internals'; +import Component from '@glimmer/component'; export default class PixToggleButton extends Component { get className() { diff --git a/addon/components/pix-tooltip.js b/addon/components/pix-tooltip.js index 09868b805..27637b426 100644 --- a/addon/components/pix-tooltip.js +++ b/addon/components/pix-tooltip.js @@ -1,5 +1,5 @@ -import Component from '@glimmer/component'; import { action } from '@ember/object'; +import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; export default class PixTooltip extends Component { diff --git a/addon/components/toast-example.js b/addon/components/toast-example.js index 116704da8..b4e4366ea 100644 --- a/addon/components/toast-example.js +++ b/addon/components/toast-example.js @@ -1,6 +1,6 @@ -import Component from '@glimmer/component'; -import { service } from '@ember/service'; import { action } from '@ember/object'; +import { service } from '@ember/service'; +import Component from '@glimmer/component'; export default class ToastExample extends Component { @service pixToast; diff --git a/addon/services/pix-toast.js b/addon/services/pix-toast.js index 4195f14a5..25c9f21c4 100644 --- a/addon/services/pix-toast.js +++ b/addon/services/pix-toast.js @@ -1,6 +1,6 @@ +import { warn } from '@ember/debug'; import Service from '@ember/service'; import { tracked } from '@glimmer/tracking'; -import { warn } from '@ember/debug'; export default class ToastService extends Service { @tracked content = []; diff --git a/addon/translations/index.js b/addon/translations/index.js index 0337c9eb7..cb39c00d3 100644 --- a/addon/translations/index.js +++ b/addon/translations/index.js @@ -1,4 +1,5 @@ import { createIntl } from '@formatjs/intl'; + import en from './en'; import fr from './fr'; import nl from './nl'; diff --git a/app/services/element-helper.js b/app/services/element-helper.js index 43f98c5dc..ae667c2f7 100644 --- a/app/services/element-helper.js +++ b/app/services/element-helper.js @@ -22,7 +22,7 @@ export default class ElementService extends Service { } createClass(name, rules) { - var style = document.createElement('style'); + const style = document.createElement('style'); style.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(style); diff --git a/app/stories/form-example.stories.js b/app/stories/form-example.stories.js index 8540a937a..9b32cef0f 100644 --- a/app/stories/form-example.stories.js +++ b/app/stories/form-example.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Forms/Exemple de formulaire', diff --git a/app/stories/pix-accordions.stories.js b/app/stories/pix-accordions.stories.js index 3b789fc31..1046e01be 100644 --- a/app/stories/pix-accordions.stories.js +++ b/app/stories/pix-accordions.stories.js @@ -1,4 +1,5 @@ import { hbs } from 'ember-cli-htmlbars'; + import { ICONS } from '../../addon/helpers/icons'; export default { diff --git a/app/stories/pix-button-upload.stories.js b/app/stories/pix-button-upload.stories.js index 5de78359a..14315d13f 100644 --- a/app/stories/pix-button-upload.stories.js +++ b/app/stories/pix-button-upload.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Actions/ButtonUpload', diff --git a/app/stories/pix-button.stories.js b/app/stories/pix-button.stories.js index da1be8ae3..2d3a609b0 100644 --- a/app/stories/pix-button.stories.js +++ b/app/stories/pix-button.stories.js @@ -1,4 +1,5 @@ import { hbs } from 'ember-cli-htmlbars'; + import { ICONS } from '../../addon/helpers/icons'; export default { diff --git a/app/stories/pix-checkbox-variant-tile.stories.js b/app/stories/pix-checkbox-variant-tile.stories.js index 5ac612498..c6e15df59 100644 --- a/app/stories/pix-checkbox-variant-tile.stories.js +++ b/app/stories/pix-checkbox-variant-tile.stories.js @@ -1,4 +1,5 @@ import { hbs } from 'ember-cli-htmlbars'; + import pixCheckboxStories from './pix-checkbox.stories.js'; export default { diff --git a/app/stories/pix-filter-banner.stories.js b/app/stories/pix-filter-banner.stories.js index b1d5d2f1b..5beed1053 100644 --- a/app/stories/pix-filter-banner.stories.js +++ b/app/stories/pix-filter-banner.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Other/Filter banner', diff --git a/app/stories/pix-filterable-and-searchable-select.stories.js b/app/stories/pix-filterable-and-searchable-select.stories.js index 3d5aa1aac..708f71f60 100644 --- a/app/stories/pix-filterable-and-searchable-select.stories.js +++ b/app/stories/pix-filterable-and-searchable-select.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Other/Filterable and searchable select', diff --git a/app/stories/pix-icon-button.stories.js b/app/stories/pix-icon-button.stories.js index 9ec371348..f2ae89e81 100644 --- a/app/stories/pix-icon-button.stories.js +++ b/app/stories/pix-icon-button.stories.js @@ -1,5 +1,6 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; + import { ICONS } from '../../addon/helpers/icons'; export default { diff --git a/app/stories/pix-icon.stories.js b/app/stories/pix-icon.stories.js index e8770597b..6217d8b68 100644 --- a/app/stories/pix-icon.stories.js +++ b/app/stories/pix-icon.stories.js @@ -1,4 +1,5 @@ import { hbs } from 'ember-cli-htmlbars'; + import { ICONS } from '../../addon/helpers/icons.js'; export default { diff --git a/app/stories/pix-indicator-card.stories.js b/app/stories/pix-indicator-card.stories.js index 9484fa269..f937c40dc 100644 --- a/app/stories/pix-indicator-card.stories.js +++ b/app/stories/pix-indicator-card.stories.js @@ -1,4 +1,5 @@ import { hbs } from 'ember-cli-htmlbars'; + import { ICONS } from '../../addon/helpers/icons.js'; export default { diff --git a/app/stories/pix-multi-select.stories.js b/app/stories/pix-multi-select.stories.js index 287334935..a4cf50c09 100644 --- a/app/stories/pix-multi-select.stories.js +++ b/app/stories/pix-multi-select.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Forms/Multi Select', diff --git a/app/stories/pix-radio-button-variant-tile.stories.js b/app/stories/pix-radio-button-variant-tile.stories.js index b2a5dda15..df1b6f813 100644 --- a/app/stories/pix-radio-button-variant-tile.stories.js +++ b/app/stories/pix-radio-button-variant-tile.stories.js @@ -1,4 +1,5 @@ import { hbs } from 'ember-cli-htmlbars'; + import pixRadioButtonStories from './pix-radio-button.stories.js'; export default { diff --git a/app/stories/pix-search-input.stories.js b/app/stories/pix-search-input.stories.js index df94664a6..8a160011d 100644 --- a/app/stories/pix-search-input.stories.js +++ b/app/stories/pix-search-input.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Forms/SearchInput', diff --git a/app/stories/pix-select.stories.js b/app/stories/pix-select.stories.js index aee29f116..bd42b726b 100644 --- a/app/stories/pix-select.stories.js +++ b/app/stories/pix-select.stories.js @@ -1,5 +1,6 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; + import { ICONS } from '../../addon/helpers/icons'; export default { diff --git a/app/stories/pix-toggle-button.stories.js b/app/stories/pix-toggle-button.stories.js index 6cd597089..ec55524a6 100644 --- a/app/stories/pix-toggle-button.stories.js +++ b/app/stories/pix-toggle-button.stories.js @@ -1,5 +1,5 @@ -import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; +import { hbs } from 'ember-cli-htmlbars'; export default { title: 'Navigation/Toggle Button', diff --git a/tests/acceptance/pix-modal-page-test.js b/tests/acceptance/pix-modal-page-test.js index 0aa86182d..d60cd699d 100644 --- a/tests/acceptance/pix-modal-page-test.js +++ b/tests/acceptance/pix-modal-page-test.js @@ -1,7 +1,8 @@ -import { currentURL, click } from '@ember/test-helpers'; import { visit } from '@1024pix/ember-testing-library'; +import { click, currentURL } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import { module, test } from 'qunit'; + import { waitForDialog } from '../helpers/wait-for'; module('Acceptance | PixModalPageTest', function (hooks) { diff --git a/tests/acceptance/pix-sidebar-page-test.js b/tests/acceptance/pix-sidebar-page-test.js index 5f52e95a5..1d724f3cf 100644 --- a/tests/acceptance/pix-sidebar-page-test.js +++ b/tests/acceptance/pix-sidebar-page-test.js @@ -1,7 +1,8 @@ -import { currentURL, click } from '@ember/test-helpers'; import { visit } from '@1024pix/ember-testing-library'; +import { click, currentURL } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import { module, test } from 'qunit'; + import { waitForDialog } from '../helpers/wait-for'; module('Acceptance | PixSidebarPageTest', function (hooks) { diff --git a/tests/helpers/click-by-label.js b/tests/helpers/click-by-label.js index 9f3c789b9..c9ea69da9 100644 --- a/tests/helpers/click-by-label.js +++ b/tests/helpers/click-by-label.js @@ -1,4 +1,5 @@ import { click } from '@ember/test-helpers'; + import getByLabel from './get-by-label'; export default function clickByLabel(labelText) { diff --git a/tests/helpers/create-glimmer-component.js b/tests/helpers/create-glimmer-component.js index 7451388fd..01fdf5e03 100644 --- a/tests/helpers/create-glimmer-component.js +++ b/tests/helpers/create-glimmer-component.js @@ -1,6 +1,6 @@ import { getContext } from '@ember/test-helpers'; +import { dependencySatisfies, importSync, macroCondition } from '@embroider/macros'; import GlimmerComponentManager from '@glimmer/component/-private/ember-component-manager'; -import { macroCondition, dependencySatisfies, importSync } from '@embroider/macros'; export default function createComponent(lookupPath, named = {}) { const { owner } = getContext(); diff --git a/tests/helpers/fill-in-by-label.js b/tests/helpers/fill-in-by-label.js index 702733853..09e819259 100644 --- a/tests/helpers/fill-in-by-label.js +++ b/tests/helpers/fill-in-by-label.js @@ -1,4 +1,5 @@ import { fillIn } from '@ember/test-helpers'; + import getByLabel from './get-by-label'; export default function fillInByLabel(labelText, value) { diff --git a/tests/integration/components/pix-accordions-test.js b/tests/integration/components/pix-accordions-test.js index 7d0572293..4e0664476 100644 --- a/tests/integration/components/pix-accordions-test.js +++ b/tests/integration/components/pix-accordions-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render, clickByText } from '@1024pix/ember-testing-library'; +import { clickByText, render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | PixAccordions', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-app-layout-test.js b/tests/integration/components/pix-app-layout-test.js index 1fb41ecca..21a32e391 100644 --- a/tests/integration/components/pix-app-layout-test.js +++ b/tests/integration/components/pix-app-layout-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-app-layout', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-background-header-test.js b/tests/integration/components/pix-background-header-test.js index 30d722365..4d5e35c27 100644 --- a/tests/integration/components/pix-background-header-test.js +++ b/tests/integration/components/pix-background-header-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-background-header', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-banner-alert-test.js b/tests/integration/components/pix-banner-alert-test.js index b9af4ffaf..97f8f1bc0 100644 --- a/tests/integration/components/pix-banner-alert-test.js +++ b/tests/integration/components/pix-banner-alert-test.js @@ -1,8 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { click } from '@ember/test-helpers'; import { render } from '@1024pix/ember-testing-library'; +import { click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | PixBannerAlert', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-block-test.js b/tests/integration/components/pix-block-test.js index 3de0083a2..70c5daa00 100644 --- a/tests/integration/components/pix-block-test.js +++ b/tests/integration/components/pix-block-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-block', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-button-link-test.js b/tests/integration/components/pix-button-link-test.js index cf7d24e82..dd9501984 100644 --- a/tests/integration/components/pix-button-link-test.js +++ b/tests/integration/components/pix-button-link-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | button-link', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-button-test.js b/tests/integration/components/pix-button-test.js index 5ae9ab02b..85be8c968 100644 --- a/tests/integration/components/pix-button-test.js +++ b/tests/integration/components/pix-button-test.js @@ -1,8 +1,9 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; + import clickByLabel from '../../helpers/click-by-label'; module('Integration | Component | button', function (hooks) { @@ -103,7 +104,7 @@ module('Integration | Component | button', function (hooks) { // given this.set('triggerAction', () => { return new Promise((resolve) => { - let wait = setTimeout(() => { + const wait = setTimeout(() => { clearTimeout(wait); resolve(); }, 1); diff --git a/tests/integration/components/pix-button-upload-test.js b/tests/integration/components/pix-button-upload-test.js index 5f54b9d46..b732ad55a 100644 --- a/tests/integration/components/pix-button-upload-test.js +++ b/tests/integration/components/pix-button-upload-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | button-upload', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-checkbox-test.js b/tests/integration/components/pix-checkbox-test.js index 11b32058d..3826c0a7a 100644 --- a/tests/integration/components/pix-checkbox-test.js +++ b/tests/integration/components/pix-checkbox-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; +import { clickByName, render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; -import { render, clickByName } from '@1024pix/ember-testing-library'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | checkbox', function (hooks) { @@ -214,7 +214,7 @@ module('Integration | Component | checkbox', function (hooks) { await clickByName('Recevoir la newsletter'); assert.true(false, 'It should not be possible to interact with disabled Checkbox'); - } catch (error) { + } catch { // then state did not change assert.true(checkbox.checked, "Checkbox has changed state, but shouldn't have"); } @@ -238,7 +238,7 @@ module('Integration | Component | checkbox', function (hooks) { await clickByName('Recevoir la newsletter'); assert.true(false, 'It should not be possible to interact with disabled Checkbox'); - } catch (error) { + } catch { // then state did not change assert.true(checkbox.checked, "Checkbox has changed state, but shouldn't have"); } diff --git a/tests/integration/components/pix-filter-banner-test.js b/tests/integration/components/pix-filter-banner-test.js index b7308ae10..0b0c9d538 100644 --- a/tests/integration/components/pix-filter-banner-test.js +++ b/tests/integration/components/pix-filter-banner-test.js @@ -1,8 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | filter-banner', function (hooks) { diff --git a/tests/integration/components/pix-filterable-and-searchable-select-test.js b/tests/integration/components/pix-filterable-and-searchable-select-test.js index 35fdfc8b6..b408214d0 100644 --- a/tests/integration/components/pix-filterable-and-searchable-select-test.js +++ b/tests/integration/components/pix-filterable-and-searchable-select-test.js @@ -1,8 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; +import { clickByName, fillByLabel, render } from '@1024pix/ember-testing-library'; import { click } from '@ember/test-helpers'; -import { render, clickByName, fillByLabel } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | PixFilterableAndSearchableSelect', function (hooks) { diff --git a/tests/integration/components/pix-icon-button-test.js b/tests/integration/components/pix-icon-button-test.js index c1825753a..8741066a6 100644 --- a/tests/integration/components/pix-icon-button-test.js +++ b/tests/integration/components/pix-icon-button-test.js @@ -1,7 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import clickByLabel from '../../helpers/click-by-label'; module('Integration | Component | icon-button', function (hooks) { diff --git a/tests/integration/components/pix-icons-test.js b/tests/integration/components/pix-icons-test.js index 66522fecc..e3f9de205 100644 --- a/tests/integration/components/pix-icons-test.js +++ b/tests/integration/components/pix-icons-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | PixIcons', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-indicator-card-test.js b/tests/integration/components/pix-indicator-card-test.js index c7a2aa81e..612680c34 100644 --- a/tests/integration/components/pix-indicator-card-test.js +++ b/tests/integration/components/pix-indicator-card-test.js @@ -1,7 +1,7 @@ -import { assert, module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { assert, module, test } from 'qunit'; module('Integration | Component | PixIndicatorCard', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-input-code-test.js b/tests/integration/components/pix-input-code-test.js index 5199b8898..32004ad79 100644 --- a/tests/integration/components/pix-input-code-test.js +++ b/tests/integration/components/pix-input-code-test.js @@ -1,9 +1,10 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import sinon from 'sinon'; -import { focus, triggerKeyEvent, triggerEvent } from '@ember/test-helpers'; import { render } from '@1024pix/ember-testing-library'; +import { focus, triggerEvent, triggerKeyEvent } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; +import sinon from 'sinon'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; import fillInByLabel from '../../helpers/fill-in-by-label'; diff --git a/tests/integration/components/pix-input-password-test.js b/tests/integration/components/pix-input-password-test.js index 79483f4bf..8906d2598 100644 --- a/tests/integration/components/pix-input-password-test.js +++ b/tests/integration/components/pix-input-password-test.js @@ -1,9 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { click } from '@ember/test-helpers'; - import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-input-password', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-input-test.js b/tests/integration/components/pix-input-test.js index a5a326ad6..972b68355 100644 --- a/tests/integration/components/pix-input-test.js +++ b/tests/integration/components/pix-input-test.js @@ -1,7 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { hbs } from 'ember-cli-htmlbars'; import { render } from '@1024pix/ember-testing-library'; +import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import fillInByLabel from '../../helpers/fill-in-by-label'; module('Integration | Component | PixInput', function (hooks) { diff --git a/tests/integration/components/pix-label-test.js b/tests/integration/components/pix-label-test.js index c5163c893..61d6481e6 100644 --- a/tests/integration/components/pix-label-test.js +++ b/tests/integration/components/pix-label-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { hbs } from 'ember-cli-htmlbars'; import { render } from '@1024pix/ember-testing-library'; +import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | PixLabel', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-modal-test.js b/tests/integration/components/pix-modal-test.js index 8615585fd..2d9f06a02 100644 --- a/tests/integration/components/pix-modal-test.js +++ b/tests/integration/components/pix-modal-test.js @@ -1,9 +1,10 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { click, triggerKeyEvent } from '@ember/test-helpers'; import { render } from '@1024pix/ember-testing-library'; +import { click, triggerKeyEvent } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; module('Integration | Component | modal', function (hooks) { diff --git a/tests/integration/components/pix-multi-select-test.js b/tests/integration/components/pix-multi-select-test.js index 91005f403..8caf466b9 100644 --- a/tests/integration/components/pix-multi-select-test.js +++ b/tests/integration/components/pix-multi-select-test.js @@ -1,14 +1,14 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { - render, - fillByLabel, clickByName, + fillByLabel, + render, waitForElementToBeRemoved, } from '@1024pix/ember-testing-library'; -import userEvent from '@testing-library/user-event'; import { fireEvent } from '@testing-library/dom'; +import userEvent from '@testing-library/user-event'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | multi-select', function (hooks) { diff --git a/tests/integration/components/pix-navigation-button-test.js b/tests/integration/components/pix-navigation-button-test.js index 301ffe058..82ea3e595 100644 --- a/tests/integration/components/pix-navigation-button-test.js +++ b/tests/integration/components/pix-navigation-button-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render, within } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-navigation-button', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-navigation-test.js b/tests/integration/components/pix-navigation-test.js index 98a336ae8..db26c1156 100644 --- a/tests/integration/components/pix-navigation-test.js +++ b/tests/integration/components/pix-navigation-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render, within } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-navigation', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-notification-alert-test.js b/tests/integration/components/pix-notification-alert-test.js index 66c9bf426..1614aedca 100644 --- a/tests/integration/components/pix-notification-alert-test.js +++ b/tests/integration/components/pix-notification-alert-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pixNotificationAlert', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-pagination-test.js b/tests/integration/components/pix-pagination-test.js index 183654f95..355055567 100644 --- a/tests/integration/components/pix-pagination-test.js +++ b/tests/integration/components/pix-pagination-test.js @@ -1,8 +1,8 @@ -import { module, test } from 'qunit'; -import { click } from '@ember/test-helpers'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; +import { click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | pagination', function (hooks) { diff --git a/tests/integration/components/pix-progress-bar-test.js b/tests/integration/components/pix-progress-bar-test.js index e4e33efc1..1da4ba594 100644 --- a/tests/integration/components/pix-progress-bar-test.js +++ b/tests/integration/components/pix-progress-bar-test.js @@ -1,7 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; module('Integration | Component | PixProgressBar', function (hooks) { diff --git a/tests/integration/components/pix-radio-button-test.js b/tests/integration/components/pix-radio-button-test.js index 325ce3a0a..c434e1e74 100644 --- a/tests/integration/components/pix-radio-button-test.js +++ b/tests/integration/components/pix-radio-button-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render, clickByName } from '@1024pix/ember-testing-library'; +import { clickByName, render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | pix-radio-button', function (hooks) { diff --git a/tests/integration/components/pix-return-to-test.js b/tests/integration/components/pix-return-to-test.js index ac4185a8b..2de9b076c 100644 --- a/tests/integration/components/pix-return-to-test.js +++ b/tests/integration/components/pix-return-to-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | pix-return-to', function (hooks) { diff --git a/tests/integration/components/pix-search-input-test.js b/tests/integration/components/pix-search-input-test.js index cd94446f0..8d3f6f1c3 100644 --- a/tests/integration/components/pix-search-input-test.js +++ b/tests/integration/components/pix-search-input-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render, fillByLabel } from '@1024pix/ember-testing-library'; +import { fillByLabel, render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | PixSearchInput', function (hooks) { diff --git a/tests/integration/components/pix-select-test.js b/tests/integration/components/pix-select-test.js index a2d15b5a2..ab9095c52 100644 --- a/tests/integration/components/pix-select-test.js +++ b/tests/integration/components/pix-select-test.js @@ -1,16 +1,16 @@ -import { module, test } from 'qunit'; -import { click, fillIn } from '@ember/test-helpers'; -import { setupRenderingTest } from 'ember-qunit'; import { - render, clickByName, fillByLabel, + render, waitForElementToBeRemoved, } from '@1024pix/ember-testing-library'; +import { click, fillIn } from '@ember/test-helpers'; +import { fireEvent } from '@testing-library/dom'; +import userEvent from '@testing-library/user-event'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; -import userEvent from '@testing-library/user-event'; -import { fireEvent } from '@testing-library/dom'; module('Integration | Component | PixSelect', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-selectable-tag-test.js b/tests/integration/components/pix-selectable-tag-test.js index 56d4632fc..a990ae19e 100644 --- a/tests/integration/components/pix-selectable-tag-test.js +++ b/tests/integration/components/pix-selectable-tag-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | selectable-tag', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-sidebar-test.js b/tests/integration/components/pix-sidebar-test.js index 247be6cda..5bf9810ca 100644 --- a/tests/integration/components/pix-sidebar-test.js +++ b/tests/integration/components/pix-sidebar-test.js @@ -1,9 +1,10 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { click, triggerKeyEvent } from '@ember/test-helpers'; import { render } from '@1024pix/ember-testing-library'; +import { click, triggerKeyEvent } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; module('Integration | Component | Sidebar', function (hooks) { diff --git a/tests/integration/components/pix-stars-test.js b/tests/integration/components/pix-stars-test.js index 4f39ac353..6c0eeafac 100644 --- a/tests/integration/components/pix-stars-test.js +++ b/tests/integration/components/pix-stars-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | stars', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-structure-switcher-test.js b/tests/integration/components/pix-structure-switcher-test.js index c240f0a49..df2c77e87 100644 --- a/tests/integration/components/pix-structure-switcher-test.js +++ b/tests/integration/components/pix-structure-switcher-test.js @@ -1,10 +1,10 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render, fireEvent } from '@1024pix/ember-testing-library'; -import { hbs } from 'ember-cli-htmlbars'; -import sinon from 'sinon'; +import { fireEvent, render } from '@1024pix/ember-testing-library'; import { waitForElementToBeRemoved } from '@testing-library/dom'; import userEvent from '@testing-library/user-event'; +import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; +import sinon from 'sinon'; module('Integration | Component | pix-structure-switcher', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-table-column-test.js b/tests/integration/components/pix-table-column-test.js index 7c46e2fad..934fd0a38 100644 --- a/tests/integration/components/pix-table-column-test.js +++ b/tests/integration/components/pix-table-column-test.js @@ -1,8 +1,8 @@ //! template-lint-disable -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | table-column', function (hooks) { diff --git a/tests/integration/components/pix-table-test.js b/tests/integration/components/pix-table-test.js index 449498b53..fa39daeb1 100644 --- a/tests/integration/components/pix-table-test.js +++ b/tests/integration/components/pix-table-test.js @@ -1,9 +1,9 @@ //! template-lint-disable -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Component | table', function (hooks) { diff --git a/tests/integration/components/pix-tag-test.js b/tests/integration/components/pix-tag-test.js index 7a49d69af..502f97823 100644 --- a/tests/integration/components/pix-tag-test.js +++ b/tests/integration/components/pix-tag-test.js @@ -1,7 +1,7 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-tag', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-textarea-test.js b/tests/integration/components/pix-textarea-test.js index 53401be07..2d2246a1a 100644 --- a/tests/integration/components/pix-textarea-test.js +++ b/tests/integration/components/pix-textarea-test.js @@ -1,8 +1,9 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { triggerEvent } from '@ember/test-helpers'; import { render } from '@1024pix/ember-testing-library'; +import { triggerEvent } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import fillInByLabel from '../../helpers/fill-in-by-label'; module('Integration | Component | textarea', function (hooks) { diff --git a/tests/integration/components/pix-toast-container-test.js b/tests/integration/components/pix-toast-container-test.js index 58b9ef9ac..2df0d8161 100644 --- a/tests/integration/components/pix-toast-container-test.js +++ b/tests/integration/components/pix-toast-container-test.js @@ -1,13 +1,13 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | toast-container', function (hooks) { setupRenderingTest(hooks); module('when toast service content is not empty', function (hooks) { - let toasts = []; + const toasts = []; hooks.beforeEach(function () { toasts.push( { diff --git a/tests/integration/components/pix-toast-test.js b/tests/integration/components/pix-toast-test.js index 50d03a76a..b57cbd9d1 100644 --- a/tests/integration/components/pix-toast-test.js +++ b/tests/integration/components/pix-toast-test.js @@ -1,9 +1,9 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; +import { click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; -import { click } from '@ember/test-helpers'; module('Integration | Component | toast', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-toggle-button-test.js b/tests/integration/components/pix-toggle-button-test.js index 9814d70c1..95cecf9bf 100644 --- a/tests/integration/components/pix-toggle-button-test.js +++ b/tests/integration/components/pix-toggle-button-test.js @@ -1,10 +1,10 @@ -import { module, test } from 'qunit'; -import { click } from '@ember/test-helpers'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; +import { click } from '@ember/test-helpers'; +import userEvent from '@testing-library/user-event'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; -import userEvent from '@testing-library/user-event'; module('Integration | Component | PixToggleButton', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/components/pix-tooltip-test.js b/tests/integration/components/pix-tooltip-test.js index 37a4dd758..249cedfc9 100644 --- a/tests/integration/components/pix-tooltip-test.js +++ b/tests/integration/components/pix-tooltip-test.js @@ -1,8 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; import { render } from '@1024pix/ember-testing-library'; -import { hbs } from 'ember-cli-htmlbars'; import userEvent from '@testing-library/user-event'; +import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; module('Integration | Component | pix-tooltip', function (hooks) { setupRenderingTest(hooks); diff --git a/tests/integration/modifiers/on-escape-action-test.js b/tests/integration/modifiers/on-escape-action-test.js index 7fbf1bab9..11ba95661 100644 --- a/tests/integration/modifiers/on-escape-action-test.js +++ b/tests/integration/modifiers/on-escape-action-test.js @@ -1,8 +1,8 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { triggerKeyEvent } from '@ember/test-helpers'; import { render } from '@1024pix/ember-testing-library'; +import { triggerKeyEvent } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Integration | Modifier | on-escape-action', function (hooks) { diff --git a/tests/test-helper.js b/tests/test-helper.js index abaf966ff..6590be01c 100644 --- a/tests/test-helper.js +++ b/tests/test-helper.js @@ -1,9 +1,10 @@ +import { setApplication } from '@ember/test-helpers'; import Application from 'dummy/app'; import config from 'dummy/config/environment'; +import { start } from 'ember-qunit'; import * as QUnit from 'qunit'; -import { setApplication } from '@ember/test-helpers'; import { setup } from 'qunit-dom'; -import { start } from 'ember-qunit'; + import { contains } from './helpers/contains'; setApplication(Application.create(config.APP)); diff --git a/tests/unit/components/pix-banner-alert-test.js b/tests/unit/components/pix-banner-alert-test.js index 4a15e9c73..e12a7d612 100644 --- a/tests/unit/components/pix-banner-alert-test.js +++ b/tests/unit/components/pix-banner-alert-test.js @@ -1,8 +1,9 @@ -import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -import createGlimmerComponent from '../../helpers/create-glimmer-component'; +import { module, test } from 'qunit'; import sinon from 'sinon'; +import createGlimmerComponent from '../../helpers/create-glimmer-component'; + module('Unit | Component | PixBannerAlert', function (hooks) { setupTest(hooks); diff --git a/tests/unit/components/pix-radio-button-test.js b/tests/unit/components/pix-radio-button-test.js index 853873d40..a4f2655ad 100644 --- a/tests/unit/components/pix-radio-button-test.js +++ b/tests/unit/components/pix-radio-button-test.js @@ -1,5 +1,6 @@ -import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; module('Unit | Component | PixRadioButton', function (hooks) { diff --git a/tests/unit/components/pix-return-to-test.js b/tests/unit/components/pix-return-to-test.js index d94c422a4..df2e08e93 100644 --- a/tests/unit/components/pix-return-to-test.js +++ b/tests/unit/components/pix-return-to-test.js @@ -1,5 +1,6 @@ -import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; module('Unit | Component | pix-return-to', function (hooks) { diff --git a/tests/unit/components/pix-search-input-test.js b/tests/unit/components/pix-search-input-test.js index d5c868453..728eba5cf 100644 --- a/tests/unit/components/pix-search-input-test.js +++ b/tests/unit/components/pix-search-input-test.js @@ -1,8 +1,9 @@ -import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -import createGlimmerComponent from '../../helpers/create-glimmer-component'; +import { module, test } from 'qunit'; import sinon from 'sinon'; +import createGlimmerComponent from '../../helpers/create-glimmer-component'; + module('Unit | Component | pix-search-input', function (hooks) { setupTest(hooks); diff --git a/tests/unit/components/pix-select-test.js b/tests/unit/components/pix-select-test.js index ba32cd8f4..b9d8d1178 100644 --- a/tests/unit/components/pix-select-test.js +++ b/tests/unit/components/pix-select-test.js @@ -1,5 +1,6 @@ -import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + import createGlimmerComponent from '../../helpers/create-glimmer-component'; module('Unit | Component | pix-select', function (hooks) { diff --git a/tests/unit/services/pix-toast-test.js b/tests/unit/services/pix-toast-test.js index 1724164a0..69f0b361b 100644 --- a/tests/unit/services/pix-toast-test.js +++ b/tests/unit/services/pix-toast-test.js @@ -1,6 +1,6 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; import ToastService from '@1024pix/pix-ui/services/pix-toast'; +import { setupTest } from 'ember-qunit'; +import { module, test } from 'qunit'; import sinon from 'sinon'; module('Unit | Service | toast', function (hooks) { diff --git a/tests/unit/translations/flatten-object-test.js b/tests/unit/translations/flatten-object-test.js index 01418b044..597f9594f 100644 --- a/tests/unit/translations/flatten-object-test.js +++ b/tests/unit/translations/flatten-object-test.js @@ -1,5 +1,5 @@ -import { module, test } from 'qunit'; import { flattenObject } from '@1024pix/pix-ui/translations'; +import { module, test } from 'qunit'; module('Unit | Translations', function () { module('#flattenObject', function () {