Skip to content

Commit

Permalink
feat(sass linter): added html reporter for stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
manoncarbonnel authored and dpellier committed Oct 13, 2023
1 parent 5610de2 commit bc9c3b1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ Thumbs.db

# used file storing the artijfrog token, used when building docker image
/artitoken

# Stylelint
stylelint-report.html
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"ignore:rm": "lerna run ignore:rm",
"lerna:ls:pl": "lerna ls -pl",
"lint": "eslint '*/**/*.{js,ts,tsx}'",
"lint:scss": "stylelint 'packages/themes/blue-jeans/src/*/*.scss' 'packages/components/**/*.scss'",
"lint:scss": "stylelint 'packages/themes/blue-jeans/src/*/*.scss' 'packages/components/**/*.scss' --custom-formatter node_modules/stylelint-formatter-html > stylelint-report.html",
"list:releases": "lerna run list:releases",
"ods:graduate": "yarn ods:release:prepare && yarn version:graduate",
"ods:major": "yarn ods:release:prepare && yarn version:major",
Expand Down Expand Up @@ -100,6 +100,7 @@
"stylelint": "^15.10.3",
"stylelint-config-concentric-order": "^5.2.0",
"stylelint-config-standard-scss": "^11.0.0",
"stylelint-formatter-html": "^1.0.1",
"ts-node": "10.7.0"
},
"engines": {
Expand Down
12 changes: 11 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21272,7 +21272,7 @@ __metadata:
languageName: node
linkType: hard

"lodash@npm:^4.17.11, lodash@npm:^4.17.12, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:^4.2.1, lodash@npm:^4.7.0":
"lodash@npm:^4.17.11, lodash@npm:^4.17.12, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:^4.17.5, lodash@npm:^4.2.1, lodash@npm:^4.7.0":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7
Expand Down Expand Up @@ -23241,6 +23241,7 @@ __metadata:
stylelint: ^15.10.3
stylelint-config-concentric-order: ^5.2.0
stylelint-config-standard-scss: ^11.0.0
stylelint-formatter-html: ^1.0.1
ts-node: 10.7.0
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -28914,6 +28915,15 @@ __metadata:
languageName: node
linkType: hard

"stylelint-formatter-html@npm:^1.0.1":
version: 1.0.1
resolution: "stylelint-formatter-html@npm:1.0.1"
dependencies:
lodash: ^4.17.5
checksum: 3e0cfb7ee7299f56eeba14adb127f2dd945b150869541f366638dc74676e837cef5b5c2452da3b2bc8455e4bf60fecc18f36743d6bcd4a5b68ef08db74f9fc53
languageName: node
linkType: hard

"stylelint-order@npm:^6.0.0":
version: 6.0.3
resolution: "stylelint-order@npm:6.0.3"
Expand Down

0 comments on commit bc9c3b1

Please sign in to comment.