From 37a3545ed266794744f1ea5e4f593c982b0341e2 Mon Sep 17 00:00:00 2001 From: Matt Provost Date: Wed, 18 Oct 2023 09:31:21 -0700 Subject: [PATCH] Onboard Stylelint (#229) --- .github/workflows/test-and-build-workflow.yml | 15 +++++++++++++++ gantt-chart/package.json | 1 + gantt-chart/public/index.scss | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-build-workflow.yml b/.github/workflows/test-and-build-workflow.yml index 595101c..87b6f92 100644 --- a/.github/workflows/test-and-build-workflow.yml +++ b/.github/workflows/test-and-build-workflow.yml @@ -51,6 +51,11 @@ jobs: cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart yarn osd bootstrap + - name: Run Stylelint + run: | + cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart + yarn lint:style + - name: Test run: | cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart @@ -117,6 +122,11 @@ jobs: cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart yarn osd bootstrap + - name: Run Stylelint + run: | + cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart + yarn lint:style + - name: Test run: | cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart @@ -175,6 +185,11 @@ jobs: cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart yarn osd bootstrap + - name: Run Stylelint + run: | + cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart + yarn lint:style + - name: Test run: | cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart diff --git a/gantt-chart/package.json b/gantt-chart/package.json index cd2e5da..2e00483 100644 --- a/gantt-chart/package.json +++ b/gantt-chart/package.json @@ -6,6 +6,7 @@ "osd": "node ../../scripts/osd", "opensearch": "node ../../scripts/opensearch", "lint": "eslint .", + "lint:style": "node ../../scripts/stylelint", "build": "yarn plugin-helpers build", "plugin-helpers": "node ../../scripts/plugin_helpers", "test": "../../node_modules/.bin/jest --config ./test/jest.config.js", diff --git a/gantt-chart/public/index.scss b/gantt-chart/public/index.scss index 8b1e0cd..f92f361 100644 --- a/gantt-chart/public/index.scss +++ b/gantt-chart/public/index.scss @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -.embPanel__content[data-loading][data-type=plotlyGanttChart] { +.embPanel__content[data-loading][data-type="plotlyGanttChart"] { pointer-events: auto; filter: none; }