From e8ac7f1a9a3973ecce6942b2f26d16e65902aa70 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Fri, 1 Dec 2023 07:54:54 -0800 Subject: fix: invalid prettier configuration in last commit --- .github/workflows/automation.yml | 15 +++++++++++++++ lua/conform/formatters/prettier.lua | 13 ------------- 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/automation.yml diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml new file mode 100644 index 0000000..ad3afed --- /dev/null +++ b/.github/workflows/automation.yml @@ -0,0 +1,15 @@ +name: Remove Label + +on: [issue_comment] + +jobs: + # Remove the "question" label when a new comment is added. + # This lets me ask a question, tag the issue with "question", and filter out all "question"-tagged + # issues in my "needs triage" filter. + remove_question: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: question diff --git a/lua/conform/formatters/prettier.lua b/lua/conform/formatters/prettier.lua index 5b00d7b..ea45ffb 100644 --- a/lua/conform/formatters/prettier.lua +++ b/lua/conform/formatters/prettier.lua @@ -1,16 +1,3 @@ -require("conform").setup({ - formatters = { - prettier = { - args = function(ctx) - if vim.endswith(ctx.filename, ".ejs") then - return { "--stdin-filepath", "$FILENAME", "--parser", "html" } - end - return { "--stdin-filepath", "$FILENAME" } - end, - }, - }, -}) - local util = require("conform.util") ---@type conform.FileFormatterConfig return { -- cgit v1.2.3-70-g09d2