Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Fix SCSS style linter reporting unexpected duplicate "position" for _back-to-top.scss#240

Merged
richard67 merged 1 commit intodevelopmentfrom
development-fix-scss-stylelint-duplicate-property
Nov 15, 2020
Merged

Fix SCSS style linter reporting unexpected duplicate "position" for _back-to-top.scss#240
richard67 merged 1 commit intodevelopmentfrom
development-fix-scss-stylelint-duplicate-property

Conversation

@richard67
Copy link
Member

Pull Request for remaining issue mentioned in #235 .

Summary of Changes

Fixes the remaining SCSS code style errors found by the stylelint tool in the Cassiopeia template's SCSS files here:

https://github.com/joomla/cassiopeia/blob/development/templates/cassiopeia/scss/blocks/_back-to-top.scss#L22-L23

The duplicate property can't be avoided, as far as @drmenzelit told me.

So this PR adds a comment for the style linter to ignore that one line.

See https://stylelint.io/user-guide/ignore-code for how to do that.

Testing Instructions

Checkout the branch of this PR, then run composer install and npm ci, then run
node ./node_modules/stylelint/bin/stylelint.js --config build/.stylelintrc.json -s scss "templates/**/*.scss"
in the Joomla root folder.

Actual result BEFORE applying this Pull Request

templates/cassiopeia/scss/blocks/_back-to-top.scss
 23:3  > Unexpected duplicate "position"   declaration-block-no-duplicate-properties

Expected result AFTER applying this Pull Request

No errors reported by the style linter.

Documentation Changes Required

None.

@richard67 richard67 requested a review from drmenzelit November 15, 2020 10:10
@richard67 richard67 merged commit 7c7ff6e into development Nov 15, 2020
@richard67 richard67 deleted the development-fix-scss-stylelint-duplicate-property branch November 15, 2020 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants