Skip to content

Commit

Permalink
address lints
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed Nov 3, 2024
1 parent 4c4fd19 commit 84a8ba8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 17 deletions.
9 changes: 1 addition & 8 deletions app/components/card/list.gjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import Component from '@glimmer/component';
import truncateType from 'netrunnerdb/helpers/truncate-type';
import {
eq,
notEq,
not,
or,
notEmpty,
maybe,
} from 'netrunnerdb/utils/template-operators';
import { eq, or, notEmpty, maybe } from 'netrunnerdb/utils/template-operators';
import Icon from '../icon';
import InfluencePips from './influence-pips';
import CardLinkTo from './link-to';
Expand Down
1 change: 0 additions & 1 deletion app/models/card-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default class CardSetModel extends Model {
@attr legacyCode;
@attr firstPrintingId;
@attr releasedBy;
@attr firstPrintingId;
@attr('date') updatedAt;

@belongsTo('card-cycle', { async: true, inverse: 'cardSets' }) cardCycle;
Expand Down
2 changes: 1 addition & 1 deletion app/routes/advanced-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { hash } from 'rsvp';
export default class AdvancedSearchRoute extends Route {
@service store;

async model(params) {
async model() {
let cardTypes = this.store.findAll('cardType');
let cardSubtypes = this.store.findAll('cardSubtype');
let cardSets = this.store.findAll('cardSet');
Expand Down
2 changes: 0 additions & 2 deletions app/routes/decklist.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Route from '@ember/routing/route';
import { service } from '@ember/service';
import { all, hash } from 'rsvp';
import LinkTo from 'netrunnerdb/components/card/link-to';
import { Range } from 'netrunnerdb/helpers/range';

export default class DecklistRoute extends Route {
@service store;
Expand Down
4 changes: 2 additions & 2 deletions app/routes/factions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default class FactionRoute extends Route {

let runners = factions
.filter((faction) => faction.sideId == 'runner' && !faction.isMini)
.sort((a, b) => (a.id == 'neutral_runner' ? 1 : -1));
.sort((a) => (a.id == 'neutral_runner' ? 1 : -1));
let corps = factions
.filter((faction) => faction.sideId == 'corp')
.sort((a, b) => (a.id == 'neutral_corp' ? 1 : -1));
.sort((a) => (a.id == 'neutral_corp' ? 1 : -1));
let minis = factions.filter((faction) => faction.isMini);

return hash({
Expand Down
3 changes: 1 addition & 2 deletions app/routes/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import Route from '@ember/routing/route';
import { service } from '@ember/service';
import { htmlSafe } from '@ember/template';
import { hash } from 'rsvp';
import { range } from '../helpers/range';

export default class HomeRoute extends Route {
@service store;

async model(params) {
async model() {
let decklists = await this.store.findAll('decklist', {
filter: { sort: '-created_at' },
page: { limit: 10 },
Expand Down
1 change: 0 additions & 1 deletion app/routes/set.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Route from '@ember/routing/route';
import { service } from '@ember/service';
import { hash } from 'rsvp';
import { truncateType } from '../helpers/truncate-type';

export default class SetsRoute extends Route {
@service store;
Expand Down

0 comments on commit 84a8ba8

Please sign in to comment.