Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
VOTE-1783: dependabot updates (#885)
Browse files Browse the repository at this point in the history
Bump semver from 5.7.1 to 5.7.2
Bump stylelint from 13 to 15
  • Loading branch information
clmedders authored Jul 28, 2023
1 parent e57a530 commit 9d260d9
Show file tree
Hide file tree
Showing 4 changed files with 875 additions and 3,062 deletions.
152 changes: 6 additions & 146 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,151 +1,11 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"at-rule-no-unknown": null,
"block-no-empty": true,
"color-no-invalid-hex": true,
"comment-no-empty": true,
"declaration-block-no-duplicate-custom-properties": true,
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": [
"consecutive-duplicates-with-different-values"
]
}
],
"declaration-block-no-shorthand-property-overrides": true,
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": true,
"function-calc-no-invalid": true,
"function-calc-no-unspaced-operator": true,
"function-linear-gradient-no-nonstandard-direction": true,
"keyframe-declaration-no-important": true,
"media-feature-name-no-unknown": true,
"named-grid-areas-no-invalid": true,
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"no-empty-source": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-invalid-position-at-import-rule": null,
"no-irregular-whitespace": true,
"property-no-unknown": true,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-no-unknown": true,
"selector-type-no-unknown": [
true,
{
"ignore": [
"custom-elements"
]
}
],
"string-no-newline": true,
"unit-no-unknown": true,
"at-rule-empty-line-before": null,
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-before": "always-single-line",
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "short",
"comment-empty-line-before": [
"always",
{
"except": [
"first-nested"
],
"ignore": [
"stylelint-commands"
]
}
],
"comment-whitespace-inside": "always",
"custom-property-empty-line-before": [
"always",
{
"except": [
"after-custom-property",
"first-nested"
],
"ignore": [
"after-comment",
"inside-single-line-block"
]
}
],
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"declaration-empty-line-before": null,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-max-empty-lines": 0,
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-whitespace-after": "always",
"indentation": 2,
"length-zero-no-unit": true,
"max-empty-lines": 1,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-case": "lower",
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-eol-whitespace": true,
"no-missing-end-of-source-newline": true,
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"property-case": "lower",
"rule-empty-line-before": [
"always-multi-line",
{
"except": [
"first-nested"
],
"ignore": [
"after-comment"
]
}
],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-empty-lines": 0,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-class-pattern": null,
"selector-id-pattern": null,
"no-descending-specificity": null,
"selector-pseudo-element-colon-notation": "single",
"selector-type-case": "lower",
"unit-case": "lower",
"value-keyword-case": "lower",
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-list-max-empty-lines": 0
"media-feature-range-notation": null,
"at-rule-empty-line-before": null
}
}
22 changes: 10 additions & 12 deletions gulp/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@ var colors = require('ansi-colors');
var scss = require('gulp-dart-scss');
var postcss = require("gulp-postcss");
var autoprefixer = require("autoprefixer");
const stylelint = require("stylelint");


gulp.task('scss-lint', function (done) {
gulp.task('scss-lint', async function lintSass(callback) {
if (process.env.NODE_ENV === 'production') {
log(colors.cyan('scss-lint'), 'Disabling linting');
return done();
}
else {
var gulpStylelint = require('gulp-stylelint');

return gulp.src('./assets/styles/**/*.scss')
.pipe(gulpStylelint({
configFile: './.stylelintrc.json',
failAfterError: false,
reporters: [{formatter: "string", console: true}]
}));
const { errored, output } = await stylelint.lint({
files: [
`./assets/styles/**/*.scss`,
],
formatter: "string",
});

callback(errored ? new Error(output) : null);
}

});

gulp.task('styles', gulp.series('scss-lint', function () {
Expand Down
Loading

0 comments on commit 9d260d9

Please sign in to comment.