Skip to content

Commit

Permalink
Updated lint-related packages (#205)
Browse files Browse the repository at this point in the history
* chore: Updated lint-related packages

* chore: Added lockfile

* chore: Fixed linting errors

---------

Co-authored-by: ijlee2 <[email protected]>
  • Loading branch information
ijlee2 and ijlee2 authored Aug 1, 2023
1 parent 9700297 commit e8cc728
Show file tree
Hide file tree
Showing 8 changed files with 1,328 additions and 680 deletions.
36 changes: 18 additions & 18 deletions docs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@embroider/macros": "^1.11.1",
"@embroider/router": "^2.1.1",
"@embroider/webpack": "^3.0.0",
"@gavant/glint-template-types": "^0.3.3",
"@gavant/glint-template-types": "^0.3.4",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"@glint/core": "^1.0.2",
Expand All @@ -59,10 +59,10 @@
"@glint/template": "^1.0.2",
"@percy/cli": "^1.26.1",
"@percy/ember": "^4.2.0",
"@tsconfig/ember": "^2.0.0",
"@tsconfig/ember": "^3.0.0",
"@types/qunit": "^2.19.6",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"autoprefixer": "^10.4.14",
"broccoli-asset-rev": "^3.0.0",
"concurrently": "^8.2.0",
Expand Down Expand Up @@ -92,31 +92,31 @@
"ember-source": "~5.0.0",
"ember-svg-jar": "^2.4.2",
"ember-template-imports": "^3.4.2",
"ember-template-lint": "^5.10.3",
"ember-template-lint-plugin-prettier": "^4.2.0",
"ember-template-lint": "^5.11.1",
"ember-template-lint-plugin-prettier": "^5.0.0",
"ember-test-selectors": "^6.0.0",
"embroider-css-modules": "^0.1.9",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-ember": "^11.8.0",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-qunit": "^7.3.4",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-ember": "^11.10.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-qunit": "^8.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-typescript-sort-keys": "^2.3.0",
"loader.js": "^4.7.0",
"postcss": "^8.4.24",
"postcss-loader": "^7.3.3",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"qunit": "^2.19.4",
"qunit-dom": "^2.0.0",
"stylelint": "^15.9.0",
"stylelint-config-standard": "^33.0.0",
"stylelint-no-unsupported-browser-features": "^6.1.0",
"stylelint": "^15.10.2",
"stylelint-config-standard": "^34.0.0",
"stylelint-no-unsupported-browser-features": "^7.0.0",
"stylelint-order": "^6.0.3",
"stylelint-prettier": "^3.0.0",
"stylelint-prettier": "^4.0.2",
"type-css-modules": "^0.2.3",
"typescript": "^5.1.3",
"typescript": "^5.1.6",
"webpack": "^5.88.0"
},
"engines": {
Expand Down
12 changes: 8 additions & 4 deletions docs-app/tests/integration/components/ui/form/checkbox-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ module('Integration | Component | ui/form/checkbox', function (hooks) {
});

test('We can click on the checkbox to toggle the value', async function (this: TestContext, assert) {
assert.expect(6);

let expectedValue = false;

this.updateChangeset = ({ key, value }) => {
assert.step('onUpdate');

assert.strictEqual(
value,
expectedValue,
Expand Down Expand Up @@ -162,14 +162,16 @@ module('Integration | Component | ui/form/checkbox', function (hooks) {
assert
.dom('[data-test-feedback]')
.doesNotExist('We should not see an error message.');

assert.verifySteps(['onUpdate', 'onUpdate']);
});

test('We can press the Space key to toggle the value', async function (this: TestContext, assert) {
assert.expect(6);

let expectedValue = false;

this.updateChangeset = ({ key, value }) => {
assert.step('onUpdate');

assert.strictEqual(
value,
expectedValue,
Expand Down Expand Up @@ -220,5 +222,7 @@ module('Integration | Component | ui/form/checkbox', function (hooks) {
assert
.dom('[data-test-feedback]')
.doesNotExist('We should not see an error message.');

assert.verifySteps(['onUpdate', 'onUpdate']);
});
});
6 changes: 4 additions & 2 deletions docs-app/tests/integration/components/ui/form/input-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ module('Integration | Component | ui/form/input', function (hooks) {
});

test('We can pass @onUpdate to get the updated value', async function (this: TestContext, assert) {
assert.expect(6);

let expectedValue = '';

this.updateChangeset = ({ key, value }) => {
assert.step('onUpdate');

assert.strictEqual(
value,
expectedValue,
Expand Down Expand Up @@ -154,6 +154,8 @@ module('Integration | Component | ui/form/input', function (hooks) {
assert
.dom('[data-test-feedback]')
.doesNotExist('We should not see an error message.');

assert.verifySteps(['onUpdate', 'onUpdate']);
});

test('We can pass @type to create an email input', async function (this: TestContext, assert) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ module('Integration | Component | ui/form/textarea', function (hooks) {
});

test('We can pass @onUpdate to get the updated value', async function (this: TestContext, assert) {
assert.expect(6);

let expectedValue = '';

this.updateChangeset = ({ key, value }) => {
assert.step('onUpdate');

assert.strictEqual(
value,
expectedValue,
Expand Down Expand Up @@ -155,5 +155,7 @@ module('Integration | Component | ui/form/textarea', function (hooks) {
assert
.dom('[data-test-feedback]')
.doesNotExist('We should not see an error message.');

assert.verifySteps(['onUpdate', 'onUpdate']);
});
});
4 changes: 0 additions & 4 deletions docs-app/tests/unit/utils/components/widgets/widget-3-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ module('Unit | Utility | components/widgets/widget-3', function () {

module('When images is an array with 1 element', function () {
test("returns the only image regardless of the container's dimensions", function (this: TestContext, assert) {
assert.expect(35);

const images = [
{
url: '/images/widgets/widget-3/[email protected]',
Expand Down Expand Up @@ -112,8 +110,6 @@ module('Unit | Utility | components/widgets/widget-3', function () {

module('When images is an array with more than 1 element', function () {
test('returns the image that fits the container well', function (this: TestContext, assert) {
assert.expect(35);

const images = concertData.images;

const expectedUrls = new Map([
Expand Down
28 changes: 14 additions & 14 deletions ember-container-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,36 @@
"@babel/preset-typescript": "^7.22.5",
"@babel/runtime": "^7.22.5",
"@embroider/addon-dev": "^3.1.1",
"@gavant/glint-template-types": "^0.3.3",
"@gavant/glint-template-types": "^0.3.4",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"@glint/core": "^1.0.2",
"@glint/environment-ember-loose": "^1.0.2",
"@glint/template": "^1.0.2",
"@rollup/plugin-babel": "^6.0.3",
"@tsconfig/ember": "^2.0.0",
"@tsconfig/ember": "^3.0.0",
"@types/ember__component": "^4.0.14",
"@types/ember__destroyable": "^4.0.2",
"@types/ember__object": "^4.0.6",
"@types/ember__owner": "^4.0.4",
"@types/ember__runloop": "^4.0.3",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"concurrently": "^8.2.0",
"ember-template-lint": "^5.10.3",
"ember-template-lint-plugin-prettier": "^4.2.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-ember": "^11.8.0",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-prettier": "^4.2.1",
"ember-template-lint": "^5.11.1",
"ember-template-lint-plugin-prettier": "^5.0.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-ember": "^11.10.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-typescript-sort-keys": "^2.3.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"rollup": "^3.25.1",
"rollup-plugin-copy": "^3.4.0",
"typescript": "^5.1.3"
"typescript": "^5.1.6"
},
"engines": {
"node": "16.* || >= 18"
Expand Down
Loading

0 comments on commit e8cc728

Please sign in to comment.