From 1fc766b0bd01a31a6af99e58d37cfdc4a3bf1c3c Mon Sep 17 00:00:00 2001 From: Gabriel Santerre Date: Sun, 29 Oct 2023 13:19:16 -0400 Subject: [PATCH] chore(stylelint): cleanup configuration --- .stylelintrc.json | 19 ++++++------------- stories/src/multi-drag/task.tsx | 4 ++-- stories/src/primatives/quote-list.tsx | 3 --- stories/src/table/with-clone.tsx | 3 --- stories/src/table/with-dimension-locking.tsx | 3 --- stories/src/table/with-fixed-columns.tsx | 3 --- stories/src/table/with-portal.tsx | 3 --- 7 files changed, 8 insertions(+), 30 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 8137d3ac7..bf1602de7 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,21 +1,14 @@ { - "processors": [ - [ - "stylelint-processor-styled-components", - { - "moduleName": "@emotion/styled" - } - ] - ], + "customSyntax": "postcss-styled-syntax", "extends": [ - "stylelint-config-standard", - "stylelint-config-styled-components", - "stylelint-config-prettier" + "stylelint-config-standard" ], "rules": { - "declaration-empty-line-before": null, - "comment-empty-line-before": null, "block-no-empty": null, + "comment-empty-line-before": null, + "declaration-empty-line-before": null, + "no-empty-source": null, + "declaration-block-no-redundant-longhand-properties": null, "value-keyword-case": null } } diff --git a/stories/src/multi-drag/task.tsx b/stories/src/multi-drag/task.tsx index 462b8347a..bd9d93e55 100644 --- a/stories/src/multi-drag/task.tsx +++ b/stories/src/multi-drag/task.tsx @@ -88,9 +88,9 @@ const Container = styled.div` border-color: ${colors.G200}; } `; -/* stylelint-disable block-no-empty */ + const Content = styled.div``; -/* stylelint-enable */ + const size = 30; const SelectionCount = styled.div` diff --git a/stories/src/primatives/quote-list.tsx b/stories/src/primatives/quote-list.tsx index ad7149ee5..49f7a1746 100644 --- a/stories/src/primatives/quote-list.tsx +++ b/stories/src/primatives/quote-list.tsx @@ -67,11 +67,8 @@ const ScrollContainer = styled.div` max-height: ${scrollContainerHeight}px; `; -/* stylelint-disable block-no-empty */ const Container = styled.div``; -/* stylelint-enable */ - interface Props { listId?: string; listType?: string; diff --git a/stories/src/table/with-clone.tsx b/stories/src/table/with-clone.tsx index 820fa827a..42c936efd 100644 --- a/stories/src/table/with-clone.tsx +++ b/stories/src/table/with-clone.tsx @@ -239,13 +239,10 @@ const Header = styled.header` margin-bottom: ${grid * 2}px; `; -/* stylelint-disable block-no-empty */ const LayoutControl = styled.div``; const CopyTableButton = styled.button``; -/* stylelint-enable */ - interface AppProps { initial: Quote[]; } diff --git a/stories/src/table/with-dimension-locking.tsx b/stories/src/table/with-dimension-locking.tsx index d26309220..8f56b17f6 100644 --- a/stories/src/table/with-dimension-locking.tsx +++ b/stories/src/table/with-dimension-locking.tsx @@ -156,13 +156,10 @@ const Header = styled.header` margin-bottom: ${grid * 2}px; `; -/* stylelint-disable block-no-empty */ const LayoutControl = styled.div``; const CopyTableButton = styled.button``; -/* stylelint-enable */ - interface AppProps { initial: Quote[]; } diff --git a/stories/src/table/with-fixed-columns.tsx b/stories/src/table/with-fixed-columns.tsx index 2ad62056e..b889960c8 100644 --- a/stories/src/table/with-fixed-columns.tsx +++ b/stories/src/table/with-fixed-columns.tsx @@ -81,13 +81,10 @@ const Header = styled.header` margin-bottom: ${grid * 2}px; `; -/* stylelint-disable block-no-empty */ const LayoutControl = styled.div``; const CopyTableButton = styled.button``; -/* stylelint-enable */ - interface AppProps { initial: Quote[]; } diff --git a/stories/src/table/with-portal.tsx b/stories/src/table/with-portal.tsx index cc7896080..ab03eeead 100644 --- a/stories/src/table/with-portal.tsx +++ b/stories/src/table/with-portal.tsx @@ -242,13 +242,10 @@ const Header = styled.header` margin-bottom: ${grid * 2}px; `; -/* stylelint-disable block-no-empty */ const LayoutControl = styled.div``; const CopyTableButton = styled.button``; -/* stylelint-enable */ - interface AppProps { initial: Quote[]; }