Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,272 changes: 579 additions & 693 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions vertical-collection/.eslintignore

This file was deleted.

67 changes: 0 additions & 67 deletions vertical-collection/.eslintrc.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict';

module.exports = {
export default {
plugins: ['prettier-plugin-ember-template-tag'],
overrides: [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict';

module.exports = {
export default {
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
rules: {
'selector-class-pattern': null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict';

module.exports = {
export default {
extends: 'recommended',
rules: {
'no-attrs-in-components': false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class Radar {

// In older versions of Ember/IE, binding anything on an object in the template
// adds observers which creates __ember_meta__
this.__ember_meta__ = null; // eslint-disable-line camelcase
this.__ember_meta__ = null;

if (DEBUG) {
this._debugDidUpdate = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ try {
});

window.addEventListener('test', null, opts);
} catch (e) {
} catch {
// do nothing
}

Expand Down
4 changes: 2 additions & 2 deletions vertical-collection/addon/components/vertical-collection.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class VerticalCollection extends Component.extend({

if (DEBUG) {
if (this.__visualization) {
console.info('destroying visualization'); // eslint-disable-line no-console
console.info('destroying visualization');
this.__visualization.destroy();
this.__visualization = null;
}
Expand Down Expand Up @@ -555,7 +555,7 @@ class VerticalCollection extends Component.extend({
//
if (this.debugVis !== true) {
if (this.__visualization !== null) {
console.info('tearing down existing visualization'); // eslint-disable-line no-console
console.info('tearing down existing visualization');
this.__visualization.destroy();
this.__visualization = null;
}
Expand Down
3 changes: 3 additions & 0 deletions vertical-collection/babel.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
plugins: [],
};
138 changes: 138 additions & 0 deletions vertical-collection/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/**
* Debugging:
* https://eslint.org/docs/latest/use/configure/debug
* ----------------------------------------------------
*
* Print a file's calculated configuration
*
* npx eslint --print-config path/to/file.js
*
* Inspecting the config
*
* npx eslint --inspect-config
*
*/
import babelParser from '@babel/eslint-parser/experimental-worker';
import js from '@eslint/js';
import { defineConfig, globalIgnores } from 'eslint/config';
import prettier from 'eslint-config-prettier';
import ember from 'eslint-plugin-ember/recommended';
import importPlugin from 'eslint-plugin-import';
import n from 'eslint-plugin-n';
import globals from 'globals';

const esmParserOptions = {
ecmaFeatures: { modules: true },
ecmaVersion: 'latest',
};

export default defineConfig([
globalIgnores([
'dist/',
'dist-*/',
'declarations/',
'coverage/',
'!**/.*',

// REMOVE IN THE V2 ADDON PR
// (these files won't exist)
'ember-cli-build.js',
'index.js',
'testem.js',
'tests/**/*',
]),
js.configs.recommended,
prettier,
ember.configs.base,
ember.configs.gjs,
/**
* https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options
*/
{
linterOptions: {
reportUnusedDisableDirectives: 'error',
},
},
{
files: ['**/*.js'],
languageOptions: {
parser: babelParser,
},
},
{
files: ['**/*.{js,gjs}'],
languageOptions: {
parserOptions: esmParserOptions,
globals: {
...globals.browser,
},
},
},
{
files: ['src/**/*'],
plugins: {
import: importPlugin,
},
rules: {
// require relative imports use full extensions
'import/extensions': ['error', 'always', { ignorePackages: true }],

'ember/closure-actions': 'off',
'ember/no-get': 'off',
'ember/no-classic-components': 'off',
'ember/require-tagless-components': 'off',
'ember/no-classic-classes': 'off',
'ember/no-actions-hash': 'off',
'ember/no-runloop': 'off',
},
},
/**
* CJS node files
*/
{
files: ['**/*.cjs'],
plugins: {
n,
},

languageOptions: {
sourceType: 'script',
ecmaVersion: 'latest',
globals: {
...globals.node,
},
},
},
/**
* ESM node files
*/
{
files: ['**/*.mjs'],
plugins: {
n,
},

languageOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
parserOptions: esmParserOptions,
globals: {
...globals.node,
},
},
},
// REMOVE IN THE V2 ADDON PR
// (these files moved to src)
{
files: ['addon/**/*'],
rules: {
'ember/closure-actions': 'off',
'ember/no-get': 'off',
'ember/no-classic-components': 'off',
'ember/require-tagless-components': 'off',
'ember/no-classic-classes': 'off',
'ember/no-actions-hash': 'off',
'ember/no-runloop': 'off',
},
},
]);
19 changes: 11 additions & 8 deletions vertical-collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"@ember/test-helpers": "~3.3.1",
"@ember/test-waiters": "~3.1.0",
"@embroider/test-setup": "^3.0.1",
"@eslint/js": "^9.39.2",
"@glimmer/component": "^1.0.0",
"@glimmer/tracking": "^1.0.0",
"@warp-drive/build-config": "4.13.0-alpha.8",
Expand All @@ -94,20 +95,22 @@
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^5.11.2",
"ember-try": "^4.0.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-ember": "^11.10.0",
"eslint-plugin-n": "^16.0.1",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-ember": "^12.7.5",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-n": "^17.23.2",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-qunit": "^8.0.0",
"globals": "^16.5.0",
"loader.js": "^4.7.0",
"prettier": "^3.0.2",
"prettier": "^3.8.1",
"prettier-plugin-ember-template-tag": "^2.0.6",
"qunit": "^2.19.4",
"qunit-dom": "^3.5.0",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^34.0.0",
"stylelint-prettier": "^4.0.2",
"stylelint": "^17.0.0",
"stylelint-config-standard": "^40.0.0",
"stylelint-prettier": "^5.0.3",
"webpack": "^5.88.2"
},
"engines": {
Expand Down