From 425b65b74e5abedcc0bb6faf4dfe23d855a2f83f Mon Sep 17 00:00:00 2001 From: Ignace Maes Date: Mon, 19 Aug 2024 17:05:58 +0200 Subject: [PATCH] setup plugin-prettier --- .eslintrc.js | 3 ++ app/components/home-button.gts | 4 +- app/components/loading-bar.gts | 6 +-- app/components/pokemon-details.gts | 2 +- app/components/pokemon-grid-item.gts | 2 +- app/models/pokemon.ts | 20 ++++++- app/router.ts | 2 +- app/routes/application.ts | 2 +- app/routes/pokemon/pokemon.ts | 4 +- app/templates/about.gts | 80 ++++++++++++++++++++-------- app/templates/application.gts | 4 +- app/utils/handlers.ts | 2 +- 12 files changed, 96 insertions(+), 35 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3c03cfb..198e11e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,6 +8,7 @@ module.exports = { extends: [ 'eslint:recommended', 'plugin:ember/recommended', // or other configuration + 'plugin:prettier/recommended', ], rules: { // override / enable optional rules @@ -23,6 +24,7 @@ module.exports = { 'plugin:@typescript-eslint/recommended', 'plugin:ember/recommended', 'plugin:ember/recommended-gts', + 'plugin:prettier/recommended', ], rules: { // To use the @RouteTemplate decorator on Glimmer components in `/templates` @@ -37,6 +39,7 @@ module.exports = { 'eslint:recommended', 'plugin:ember/recommended', 'plugin:ember/recommended-gjs', + 'plugin:prettier/recommended', ], }, { diff --git a/app/components/home-button.gts b/app/components/home-button.gts index 6e10d41..3555b80 100644 --- a/app/components/home-button.gts +++ b/app/components/home-button.gts @@ -4,10 +4,10 @@ import { LinkTo } from '@ember/routing'; const HomeButton: TOC =