Skip to content

Commit

Permalink
feat: replace sass-lint and lesslint with stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Nov 14, 2023
1 parent ebbde6b commit bf7f7a7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 17 deletions.
3 changes: 0 additions & 3 deletions common/.lesshintrc.json__if_less

This file was deleted.

9 changes: 0 additions & 9 deletions common/.sass-lint.yml__if_sass

This file was deleted.

13 changes: 13 additions & 0 deletions common/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": [
// @if css
"stylelint-config-standard",
// @endif
// @if sass
"stylelint-config-standard-scss",
// @endif
// @if less
"stylelint-config-standard-less",
// @endif
]
}
18 changes: 13 additions & 5 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,20 @@
"@typescript-eslint/parser": "^5.60.1",
// @endif

"stylelint": "^15.11.0",
// @if css
"stylelint-config-standard": "^34.0.0",
// @endif

// @if sass
"gulp-dart-sass": "^1.0.2",
"node-sass-package-importer": "^5.3.2",
"sass-lint": "^1.13.1",
"stylelint-config-standard-scss": "^11.1.0",
// @endif

// @if less
"gulp-less": "^5.0.0",
"lesshint": "^6.3.7",
"stylelint-config-standard-less": "^2.0.0",
// @endif

// @if jasmine || tape || mocha
Expand Down Expand Up @@ -95,12 +100,15 @@
"promise-polyfill": "^8.3.0"
},
"scripts": {
"lint:js": "eslint src test/* @if playwright */ e2e/* @endif *//* @if typescript */ --ext .js,.ts/* @if react */,.jsx,.tsx/* @endif *//* @endif *//* @if babel && react */ --ext .js,.jsx/* @endif */",
"lint:js": "eslint src/* @if !no-unit-tests */ test/* @endif *//* @if playwright */ e2e/* @endif *//* @if typescript */ --ext .js,.ts/* @if react */,.jsx,.tsx/* @endif *//* @endif *//* @if babel && react */ --ext .js,.jsx/* @endif */",
// @if css
"lint:css": "stylelint \"src/**/*.css\"",
// @endif
// @if sass
"lint:css": "sass-lint -c .sass-lint.yml \"src/**/*.scss\"",
"lint:css": "stylelint \"src/**/*.scss\"",
// @endif
// @if less
"lint:css": "lesshint \"src/**/*.less\"",
"lint:css": "stylelint \"src/**/*.less\"",
// @endif
// @if aurelia
"lint:html": "htmlhint -c .htmlhintrc src",
Expand Down

0 comments on commit bf7f7a7

Please sign in to comment.