From 3dbe801052480d43303a79428d13e3166a41abdc Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sat, 25 May 2024 16:35:18 -0700 Subject: [PATCH] Add Prettier to linting pipeline --- .eslintrc.json | 6 +++++- package.json | 1 + pnpm-lock.yaml | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0e65c0e..62a6eda 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,10 @@ { "root": true, - "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "prettier" + ], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], "parserOptions": { diff --git a/package.json b/package.json index 95de889..47442fc 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", "glob": "^10.3.10", "jquery": "^3.7.1", "qunit": "^2.20.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0bc3c1..8c8e7d8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ devDependencies: eslint: specifier: ^8.56.0 version: 8.56.0 + eslint-config-prettier: + specifier: ^9.1.0 + version: 9.1.0(eslint@8.56.0) glob: specifier: ^10.3.10 version: 10.3.10 @@ -872,6 +875,15 @@ packages: engines: {node: '>=10'} dev: true + /eslint-config-prettier@9.1.0(eslint@8.56.0): + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.56.0 + dev: true + /eslint-scope@7.2.2: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}