Skip to content

Commit 953c899

Browse files
Migrate and fix all ESLint issues. All lint configs are ESM now (#512)
1 parent 171ebfb commit 953c899

File tree

12 files changed

+738
-796
lines changed

12 files changed

+738
-796
lines changed

pnpm-lock.yaml

Lines changed: 579 additions & 693 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vertical-collection/.eslintignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

vertical-collection/.eslintrc.js

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
plugins: ['prettier-plugin-ember-template-tag'],
53
overrides: [
64
{
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
53
rules: {
64
'selector-class-pattern': null,
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
extends: 'recommended',
53
rules: {
64
'no-attrs-in-components': false,

vertical-collection/addon/-private/data-view/radar/radar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class Radar {
130130

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

135135
if (DEBUG) {
136136
this._debugDidUpdate = null;

vertical-collection/addon/-private/data-view/utils/supports-passive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ try {
99
});
1010

1111
window.addEventListener('test', null, opts);
12-
} catch (e) {
12+
} catch {
1313
// do nothing
1414
}
1515

vertical-collection/addon/components/vertical-collection.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ class VerticalCollection extends Component.extend({
429429

430430
if (DEBUG) {
431431
if (this.__visualization) {
432-
console.info('destroying visualization'); // eslint-disable-line no-console
432+
console.info('destroying visualization');
433433
this.__visualization.destroy();
434434
this.__visualization = null;
435435
}
@@ -555,7 +555,7 @@ class VerticalCollection extends Component.extend({
555555
//
556556
if (this.debugVis !== true) {
557557
if (this.__visualization !== null) {
558-
console.info('tearing down existing visualization'); // eslint-disable-line no-console
558+
console.info('tearing down existing visualization');
559559
this.__visualization.destroy();
560560
this.__visualization = null;
561561
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
plugins: [],
3+
};

0 commit comments

Comments
 (0)