Move stylelint config to a file

This commit is contained in:
Christopher C. Wells 2021-12-18 13:04:14 -05:00
parent 34038652b8
commit ee0805c824
2 changed files with 19 additions and 19 deletions

19
.stylelintrc Normal file
View File

@ -0,0 +1,19 @@
{
"extends": "stylelint-config-recommended-scss",
"plugins": [
"stylelint-order",
"stylelint-scss"
],
"rules": {
"at-rule-no-vendor-prefix": true,
"indentation": 4,
"media-feature-name-no-vendor-prefix": true,
"order/order": [
"declarations",
"rules"
],
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"value-no-vendor-prefix": true
}
}

View File

@ -125,25 +125,6 @@ function lint(cb) {
pump([
gulp.src(config.watchConfig.stylesGlob),
styleLint({
config: {
extends: 'stylelint-config-recommended-scss',
plugins: [
'stylelint-order',
'stylelint-scss'
],
rules: {
'at-rule-no-vendor-prefix': true,
'indentation': 4,
'media-feature-name-no-vendor-prefix': true,
'order/order': [
'declarations',
'rules'
],
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'value-no-vendor-prefix': true
}
},
reporters: [
{ formatter: 'string', console: true }
]