Skip to content

Commit

Permalink
Bump stylelint to ^15.6.1 (mui#36351)
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Dudak <[email protected]>
  • Loading branch information
renovate[bot] and michaldudak authored Jul 3, 2023
1 parent 9a13253 commit fb6ad9a
Show file tree
Hide file tree
Showing 56 changed files with 271 additions and 427 deletions.
18 changes: 12 additions & 6 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
module.exports = {
processors: ['stylelint-processor-styled-components'],
extends: 'stylelint-config-standard',
ignoreFiles: [
// TypeScript declaration files contain no styles.
// Stylelint is also reporting parseError on `docs/types/react-docgen.d.ts`.
'**/*.d.ts',
],
rules: {
'value-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
'alpha-value-notation': null,
'declaration-colon-newline-after': null,
'function-parentheses-newline-inside': null, // not compatible with prettier
'media-feature-range-notation': null,
'no-empty-source': null,
'no-missing-end-of-source-newline': null,
'declaration-colon-newline-after': null,
'selector-class-pattern': null,
'string-no-newline': null, // not compatible with prettier
'value-keyword-case': null,
'value-list-comma-newline-after': null, // not compatible with prettier
'function-parentheses-newline-inside': null, // not compatible with prettier
'string-no-newline': null, // not compatible with prettier
},
overrides: [
{
files: ['**/*.js', '**/*.cjs', '**/*.mjs', '**/*.jsx', '**/*.ts', '**/*.tsx'],
customSyntax: 'postcss-styled-syntax',
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -42,7 +42,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -42,7 +42,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -44,7 +44,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -45,7 +45,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -40,7 +40,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -40,7 +40,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/UnstyledButtonsSpan.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -42,7 +42,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/UnstyledButtonsSpan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const blue = {
};

const CustomButton = styled(Button)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -43,7 +43,7 @@ const CustomButton = styled(Button)`
}
&.${buttonClasses.focusVisible} {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/UseButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const blue = {
};

const CustomButtonRoot = styled('button')`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -72,7 +72,7 @@ const CustomButtonRoot = styled('button')`
}
&.focusVisible {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/UseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const blue = {
};

const CustomButtonRoot = styled('button')`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5rem;
background-color: ${blue[500]};
Expand All @@ -65,7 +65,7 @@ const CustomButtonRoot = styled('button')`
}
&.focusVisible {
box-shadow: 0 4px 20px 0 rgba(61, 71, 82, 0.1), 0 0 0 5px rgba(0, 127, 255, 0.5);
box-shadow: 0 4px 20px 0 rgb(61 71 82 / 0.1), 0 0 0 5px rgb(0 127 255 / 0.5);
outline: none;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/form-control/BasicFormControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Label = styled(({ children, className }) => {
</p>
);
})`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
margin-bottom: 4px;
Expand Down Expand Up @@ -93,7 +93,7 @@ const HelperText = styled((props) => {

return showRequiredError ? <p {...props}>This field is required.</p> : null;
})`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
`;

Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/form-control/BasicFormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const Label = styled(
);
},
)`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
margin-bottom: 4px;
Expand Down Expand Up @@ -95,7 +95,7 @@ const HelperText = styled((props: {}) => {

return showRequiredError ? <p {...props}>This field is required.</p> : null;
})`
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const OkMark = styled('span')`
margin-left: 8px;
margin-top: 10px;
position: absolute;
color: rgba(125, 200, 0, 1);
color: rgb(125 200 0 / 1);
`;

const blue = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const OkMark = styled('span')`
margin-left: 8px;
margin-top: 10px;
position: absolute;
color: rgba(125, 200, 0, 1);
color: rgb(125 200 0 / 1);
`;

const blue = {
Expand Down
7 changes: 2 additions & 5 deletions docs/data/base/components/modal/KeepMountedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ const StyledModal = styled(Modal)(`
const StyledBackdrop = styled(Backdrop)`
z-index: -1;
position: fixed;
right: 0;
bottom: 0;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
inset: 0;
background-color: rgb(0 0 0 / 0.5);
-webkit-tap-highlight-color: transparent;
`;

Expand Down
7 changes: 2 additions & 5 deletions docs/data/base/components/modal/KeepMountedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ const StyledModal = styled(Modal)(`
const StyledBackdrop = styled(Backdrop)`
z-index: -1;
position: fixed;
right: 0;
bottom: 0;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
inset: 0;
background-color: rgb(0 0 0 / 0.5);
-webkit-tap-highlight-color: transparent;
`;

Expand Down
12 changes: 3 additions & 9 deletions docs/data/base/components/modal/ModalUnstyled.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ const grey = {
const StyledModal = styled(Modal)`
position: fixed;
z-index: 1300;
right: 0;
bottom: 0;
top: 0;
left: 0;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -80,11 +77,8 @@ const StyledModal = styled(Modal)`
const StyledBackdrop = styled(Backdrop)`
z-index: -1;
position: fixed;
right: 0;
bottom: 0;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
inset: 0;
background-color: rgb(0 0 0 / 0.5);
-webkit-tap-highlight-color: transparent;
`;

Expand Down
12 changes: 3 additions & 9 deletions docs/data/base/components/modal/ModalUnstyled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ const grey = {
const StyledModal = styled(Modal)`
position: fixed;
z-index: 1300;
right: 0;
bottom: 0;
top: 0;
left: 0;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -77,11 +74,8 @@ const StyledModal = styled(Modal)`
const StyledBackdrop = styled(Backdrop)`
z-index: -1;
position: fixed;
right: 0;
bottom: 0;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
inset: 0;
background-color: rgb(0 0 0 / 0.5);
-webkit-tap-highlight-color: transparent;
`;

Expand Down
12 changes: 3 additions & 9 deletions docs/data/base/components/modal/NestedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ const grey = {
const StyledModal = styled(Modal)`
position: fixed;
z-index: 1300;
right: 0;
bottom: 0;
top: 0;
left: 0;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -117,11 +114,8 @@ const StyledModal = styled(Modal)`
const StyledBackdrop = styled(Backdrop)`
z-index: -1;
position: fixed;
right: 0;
bottom: 0;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
inset: 0;
background-color: rgb(0 0 0 / 0.5);
-webkit-tap-highlight-color: transparent;
`;

Expand Down
12 changes: 3 additions & 9 deletions docs/data/base/components/modal/NestedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ const grey = {
const StyledModal = styled(Modal)`
position: fixed;
z-index: 1300;
right: 0;
bottom: 0;
top: 0;
left: 0;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -114,11 +111,8 @@ const StyledModal = styled(Modal)`
const StyledBackdrop = styled(Backdrop)`
z-index: -1;
position: fixed;
right: 0;
bottom: 0;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
inset: 0;
background-color: rgb(0 0 0 / 0.5);
-webkit-tap-highlight-color: transparent;
`;

Expand Down
Loading

0 comments on commit fb6ad9a

Please sign in to comment.