File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
packages/stylelint-config/src Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @commencis/stylelint-config ' : minor
3+ ---
4+
5+ feat: update styled-components config to resolve conflicts with stylistic rules
Original file line number Diff line number Diff line change 11import { StylelintConfig } from '@/types' ;
22
3- import { styledRules } from '@/rules' ;
4-
5- import cssConfig from './css' ;
3+ import { cssRules , orderRules , styledRules } from '@/rules' ;
64
75const styledComponentsConfig : StylelintConfig = {
8- ...cssConfig ,
6+ extends : [ 'stylelint-config-standard' ] ,
7+ plugins : [ 'stylelint-order' ] ,
98 customSyntax : 'postcss-styled-syntax' ,
10-
119 rules : {
12- ...cssConfig . rules ,
10+ ...cssRules ,
11+ ...orderRules ,
1312 ...styledRules ,
1413 } ,
1514} ;
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ export const styledRules = {
1919 'no-empty-source' : null ,
2020 // Disallow vendor prefixes for values
2121 'value-no-vendor-prefix' : true ,
22- // Disallow vendor prefixes for properties
22+ // Disallow vendor prefixes for properties
2323 'property-no-vendor-prefix' : true ,
2424} ;
You can’t perform that action at this time.
0 commit comments