From ee0805c8249c337bf2b2db53573e5badc8343732 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 18 Dec 2021 13:04:14 -0500 Subject: [PATCH] Move stylelint config to a file --- .stylelintrc | 19 +++++++++++++++++++ gulpfile.js | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 .stylelintrc diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 00000000..b388b8ad --- /dev/null +++ b/.stylelintrc @@ -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 + } +} diff --git a/gulpfile.js b/gulpfile.js index a65ae0bb..9f44a383 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 } ]