This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 218b82576b Change prettier config to json (#43353)
218b82576b is described below

commit 218b82576b506bbee075e0920a36556cfb82a86d
Author: Pierre Jeambrun <pierrejb...@gmail.com>
AuthorDate: Fri Oct 25 06:09:33 2024 +0800

    Change prettier config to json (#43353)
---
 airflow/ui/.prettierrc        | 13 +++++++++++++
 airflow/ui/prettier.config.js | 39 ---------------------------------------
 2 files changed, 13 insertions(+), 39 deletions(-)

diff --git a/airflow/ui/.prettierrc b/airflow/ui/.prettierrc
new file mode 100644
index 0000000000..93ba8a38a4
--- /dev/null
+++ b/airflow/ui/.prettierrc
@@ -0,0 +1,13 @@
+{
+  "$schema": "http://json.schemastore.org/prettierrc";,
+  "endOfLine": "lf",
+  "importOrder": ["<THIRD_PARTY_MODULES>", "^(src|openapi)/", "^[./]"],
+  "importOrderSeparation": true,
+  "jsxSingleQuote": false,
+  "plugins": ["@trivago/prettier-plugin-sort-imports"],
+  "printWidth": 80,
+  "singleQuote": false,
+  "tabWidth": 2,
+  "trailingComma": "all",
+  "useTabs": false
+}
diff --git a/airflow/ui/prettier.config.js b/airflow/ui/prettier.config.js
deleted file mode 100644
index 7846b10ed0..0000000000
--- a/airflow/ui/prettier.config.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*!
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * @import { Config } from "prettier";
- * @import { PluginConfig } from "@trivago/prettier-plugin-sort-imports";
- */
-
-/**
- * Prettier configuration.
- */
-export default /** @type {const} @satisfies {Config & PluginConfig} */ ({
-  endOfLine: "lf",
-  importOrder: ["<THIRD_PARTY_MODULES>", "^(src|openapi)/", "^[./]"],
-  importOrderSeparation: true,
-  jsxSingleQuote: false,
-  plugins: ["@trivago/prettier-plugin-sort-imports"],
-  printWidth: 80,
-  singleQuote: false,
-  tabWidth: 2,
-  trailingComma: "all",
-  useTabs: false,
-});

Reply via email to