Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Maorey committed Aug 31, 2019
1 parent ef6b545 commit cc03d58
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.0

---

- Modify scss patterns to `_*camelCase`

## 1.0.2

---
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Dependencies:

- [stylelint](https://stylelint.io): any version
- [stylelint-scss](https://github.com/kristerkari/stylelint-scss): 3.10.0
- [stylelint-order](https://github.com/hudochenkov/stylelint-order): 3.10.0
- [stylelint-order](https://github.com/hudochenkov/stylelint-order): 3.1.0
- [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard#readme): 18.3.0
- [stylelint-config-rational-order](https://github.com/constverum/stylelint-config-rational-order): 0.1.2

Expand Down
18 changes: 10 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const pattern = '^_*[a-z]+\\d*(?:[A-Z][a-z]+\\d*)*$' // _*camelCasea

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'],
plugins: ['stylelint-scss', 'stylelint-order'],
Expand Down Expand Up @@ -28,15 +30,15 @@ module.exports = {
},
],
'media-feature-name-no-vendor-prefix': true,
// class选择器名约束:selector-class-pattern 呃,不能区分是否CSS Modules
'property-no-vendor-prefix': true,
'selector-max-id': 0,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'local'],
},
],
'selector-max-id': 0,
// class选择器名约束:selector-class-pattern 呃,不能区分是否CSS Modules
'string-quotes': 'single',
'selector-no-vendor-prefix': true,
'selector-no-qualifying-type': true,
Expand All @@ -45,20 +47,20 @@ module.exports = {
'value-no-vendor-prefix': true,
// see: https://github.com/kristerkari/stylelint-scss#list-of-rules
'scss/at-rule-no-unknown': true,
'scss/at-mixin-pattern': pattern,
'scss/at-function-pattern': pattern,
'scss/at-else-empty-line-before': 'never',
'scss/at-extend-no-missing-placeholder': true,
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-colon-space-after': 'alw/ays',
'scss/at-import-no-partial-leading-underscore': true,
'scss/at-import-partial-extension-blacklist': ['scss'],
'scss/at-mixin-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/at-function-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/at-if-closing-brace-space-after': 'always-intermediate',
'scss/at-else-closing-brace-space-after': 'always-intermediate',
'scss/at-if-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-else-closing-brace-newline-after': 'always-last-in-chain',
'scss/dollar-variable-pattern': '^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/percent-placeholder-pattern': '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/dollar-variable-pattern': pattern,
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never',
'scss/percent-placeholder-pattern': pattern,
'scss/selector-no-redundant-nesting-selector': true,
// see: https://github.com/hudochenkov/stylelint-order#list-of-rules
'order/order': [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-config-scss-maorey",
"version": "1.0.2",
"version": "1.1.0",
"description": "My stylelint config with scss",
"keywords": [
"stylelint-config",
Expand Down

0 comments on commit cc03d58

Please sign in to comment.