Skip to content

Commit

Permalink
feat: fix settings for sfra config to support modern presets
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssimon committed Dec 13, 2022
1 parent 984672e commit 2181f76
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 5 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"dependencies": {
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard-scss": "^6.1.0",
"stylelint-scss": "^4.3.0"
},
"peerDependencies": {
Expand Down
30 changes: 26 additions & 4 deletions sfra.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = {
extends: 'stylelint-config-standard',
plugins: [
'stylelint-scss',
],
extends: 'stylelint-config-standard-scss',
customSyntax: 'postcss-scss',
rules: {
indentation: 4,
'scss/at-import-no-partial-leading-underscore': true,
Expand All @@ -23,5 +21,29 @@ module.exports = {
'no-duplicate-selectors': null,

'max-empty-lines': null,

'alpha-value-notation': null,
'color-function-notation': null,
'font-family-name-quotes': null,
'function-url-quotes': null,
'import-notation': null,
'max-line-length': null,
'no-empty-first-line': null,
'number-max-precision': null,
'property-no-vendor-prefix': null,
'scss/at-mixin-argumentless-call-parentheses': null,
'scss/comment-no-empty': null,
'scss/dollar-variable-empty-line-before': null,
'scss/dollar-variable-pattern': null,
'scss/double-slash-comment-empty-line-before': null,
'scss/double-slash-comment-whitespace-inside': null,
'scss/no-global-function-names': null,
'scss/operator-no-unspaced': null,
'selector-attribute-quotes': null,
'selector-class-pattern': null,
'selector-id-pattern': null,
'selector-not-notation': null,
'shorthand-property-no-redundant-values': null,
'string-quotes': null,
},
};
45 changes: 44 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ __metadata:
stylelint: 14.16.0
stylelint-config-recess-order: ^3.0.0
stylelint-config-standard: ^29.0.0
stylelint-config-standard-scss: ^6.1.0
stylelint-scss: ^4.3.0
peerDependencies:
stylelint: ">=14.0.0"
Expand Down Expand Up @@ -6446,6 +6447,15 @@ __metadata:
languageName: node
linkType: hard

"postcss-scss@npm:^4.0.2":
version: 4.0.6
resolution: "postcss-scss@npm:4.0.6"
peerDependencies:
postcss: ^8.4.19
checksum: 133a1cba31e2e167f4e841e66ec6a798eaf44c7911f9182ade0b5b1e71a8198814aa390b8c9d5db6b01358115232e5b15b1a4f8c5198acfccfb1f3fdbd328cdf
languageName: node
linkType: hard

"postcss-selector-parser@npm:^6.0.10, postcss-selector-parser@npm:^6.0.6":
version: 6.0.10
resolution: "postcss-selector-parser@npm:6.0.10"
Expand Down Expand Up @@ -7567,6 +7577,23 @@ __metadata:
languageName: node
linkType: hard

"stylelint-config-recommended-scss@npm:^8.0.0":
version: 8.0.0
resolution: "stylelint-config-recommended-scss@npm:8.0.0"
dependencies:
postcss-scss: ^4.0.2
stylelint-config-recommended: ^9.0.0
stylelint-scss: ^4.0.0
peerDependencies:
postcss: ^8.3.3
stylelint: ^14.10.0
peerDependenciesMeta:
postcss:
optional: true
checksum: 9680c6709239229fbf988529b7fd2cb751feca29cecbcf1054ce136807c031e2e089b94aa4d193fc2dc60410774145e6800210ebb5f72af9c553c4fc4a26a0cd
languageName: node
linkType: hard

"stylelint-config-recommended@npm:^9.0.0":
version: 9.0.0
resolution: "stylelint-config-recommended@npm:9.0.0"
Expand All @@ -7576,6 +7603,22 @@ __metadata:
languageName: node
linkType: hard

"stylelint-config-standard-scss@npm:^6.1.0":
version: 6.1.0
resolution: "stylelint-config-standard-scss@npm:6.1.0"
dependencies:
stylelint-config-recommended-scss: ^8.0.0
stylelint-config-standard: ^29.0.0
peerDependencies:
postcss: ^8.3.3
stylelint: ^14.14.0
peerDependenciesMeta:
postcss:
optional: true
checksum: eac8cc4e5f1b4ec8bba6a7bd84fe1010765f46357483bbe63f74c1ffdb01a2dd650d3751072b35869933facaacbf4adb0dcd7f141d01c5adbf72eaf720d54653
languageName: node
linkType: hard

"stylelint-config-standard@npm:^29.0.0":
version: 29.0.0
resolution: "stylelint-config-standard@npm:29.0.0"
Expand All @@ -7599,7 +7642,7 @@ __metadata:
languageName: node
linkType: hard

"stylelint-scss@npm:^4.3.0":
"stylelint-scss@npm:^4.0.0, stylelint-scss@npm:^4.3.0":
version: 4.3.0
resolution: "stylelint-scss@npm:4.3.0"
dependencies:
Expand Down

0 comments on commit 2181f76

Please sign in to comment.