Skip to content

Commit

Permalink
Fix Circuit UI's Stylelint config
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Mar 14, 2024
1 parent 17659ae commit b9544b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-cars-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sumup/foundry": patch
---

Fixed the config for Circuit UI's Stylelint plugin.
8 changes: 2 additions & 6 deletions src/configs/stylelint/__snapshots__/config.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ exports[`stylelint > with options > should return a config for { plugins: ['Circ
],
"plugins": [
"stylelint-no-unsupported-browser-features",
"@sumup/circuit-ui",
"@sumup/stylelint-plugin-circuit-ui",
],
"reportDescriptionlessDisables": true,
"reportInvalidScopeDisables": true,
"reportNeedlessDisables": true,
"rules": {
"@sumup/circuit-ui/component-lifecycle-imports": "error",
"@sumup/circuit-ui/no-deprecated-components": "warn",
"@sumup/circuit-ui/no-deprecated-props": "warn",
"@sumup/circuit-ui/no-invalid-custom-properties": "error",
"@sumup/circuit-ui/no-renamed-props": "error",
"circuit-ui/no-invalid-custom-properties": true,
"declaration-block-no-redundant-longhand-properties": null,
"media-feature-range-notation": [
"prefix",
Expand Down
8 changes: 2 additions & 6 deletions src/configs/stylelint/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ const base: StylelintConfig = {
function customizePlugin(plugins: Plugin[]) {
const pluginMap: { [key in Plugin]?: StylelintConfig } = {
[Plugin.CIRCUIT_UI]: {
plugins: ['@sumup/circuit-ui'],
plugins: ['@sumup/stylelint-plugin-circuit-ui'],
rules: {
'@sumup/circuit-ui/component-lifecycle-imports': 'error',
'@sumup/circuit-ui/no-invalid-custom-properties': 'error',
'@sumup/circuit-ui/no-renamed-props': 'error',
'@sumup/circuit-ui/no-deprecated-props': 'warn',
'@sumup/circuit-ui/no-deprecated-components': 'warn',
'circuit-ui/no-invalid-custom-properties': true,
},
},
};
Expand Down

0 comments on commit b9544b3

Please sign in to comment.