Skip to content

Commit

Permalink
Merge pull request #183 from Commencis/feature/styled-components-config
Browse files Browse the repository at this point in the history
feat: update styled-components config to resolve stylistic rule conflicts
  • Loading branch information
ymehmetcan authored Dec 25, 2024
2 parents 3720ad0 + 66aa5d3 commit 927bb31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-rocks-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commencis/stylelint-config': minor
---

feat: update styled-components config to resolve conflicts with stylistic rules
11 changes: 5 additions & 6 deletions packages/stylelint-config/src/configs/styled.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { StylelintConfig } from '@/types';

import { styledRules } from '@/rules';

import cssConfig from './css';
import { cssRules, orderRules, styledRules } from '@/rules';

const styledComponentsConfig: StylelintConfig = {
...cssConfig,
extends: ['stylelint-config-standard'],
plugins: ['stylelint-order'],
customSyntax: 'postcss-styled-syntax',

rules: {
...cssConfig.rules,
...cssRules,
...orderRules,
...styledRules,
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/src/rules/styledRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export const styledRules = {
'no-empty-source': null,
// Disallow vendor prefixes for values
'value-no-vendor-prefix': true,
// Disallow vendor prefixes for properties
// Disallow vendor prefixes for properties
'property-no-vendor-prefix': true,
};

0 comments on commit 927bb31

Please sign in to comment.