Skip to content

Commit

Permalink
Merge pull request #15 from NewOrbit/ws-patch-4
Browse files Browse the repository at this point in the history
Release 4.0.0
  • Loading branch information
thyde1 authored Feb 28, 2024
2 parents 46affde + 7ee04c2 commit 7810ee0
Show file tree
Hide file tree
Showing 4 changed files with 2,542 additions and 67 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NewOrbit standard config for stylelint
### Setup

- Install peer dependencies
`npm install stylelint stylelint-scss stylelint-order stylelint-no-unsupported-browser-features --save-dev`
`npm install stylelint stylelint-config-standard-scss @stylistic/stylelint-config stylelint-scss stylelint-order stylelint-no-unsupported-browser-features --save-dev`
- Add `.stylelintrc.json` file with the following contents:

```json
Expand Down Expand Up @@ -50,7 +50,7 @@ config.plugins.push(new StyleLintPlugin(styleLintOptions));

## Visual Studio Code
To make life better in Visual Studio Code when using stylelint install:
[VSCode Stylelint Plugin](https://github.com/shinnn/vscode-stylelint)
[VSCode Stylelint Plugin](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint)

## License

Expand Down
64 changes: 6 additions & 58 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
"use strict";

module.exports = {
"extends": [
"stylelint-config-standard-scss",
"@stylistic/stylelint-config"
],
"plugins": [
"stylelint-order",
"stylelint-scss",
"stylelint-no-unsupported-browser-features"
],
"rules": {
"@stylistic/indentation": null,
"@stylistic/max-line-length": 160,
"at-rule-disallowed-list": ["extend"],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true,
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "short",
"color-named": "never",
"color-no-invalid-hex": true,
Expand All @@ -34,8 +30,6 @@ module.exports = {
}
],
"comment-whitespace-inside": "always",
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": [
true,
{
Expand Down Expand Up @@ -215,13 +209,7 @@ module.exports = {
"animation-iteration-count",
"animation-direction"
],
"declaration-block-semicolon-newline-after": "always",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"declaration-property-value-disallowed-list": {
"/^transition/": [
"/all/"
Expand All @@ -241,34 +229,12 @@ module.exports = {
},
"font-family-name-quotes": "always-where-recommended",
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-url-quotes": "always",
"function-whitespace-after": "always",
"indentation": 4,
"length-zero-no-unit": true,
"max-empty-lines": 1,
"max-nesting-depth": 3,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-duplicate-selectors": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-missing-end-of-source-newline": true,
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"plugin/no-unsupported-browser-features": [true, {
"severity": "warning",
"browsers": [
Expand All @@ -280,7 +246,6 @@ module.exports = {
"ie 11"
]
}],
"property-case": "lower",
"property-no-vendor-prefix": true,
"rule-empty-line-before": [
"always-multi-line",
Expand All @@ -294,15 +259,7 @@ module.exports = {
}
],
"scss/selector-no-redundant-nesting-selector": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-compound-selectors": 3,
"selector-max-empty-lines": 0,
"selector-max-id": 0,
"selector-max-specificity": "0,4,0",
"selector-max-type": [
Expand All @@ -314,29 +271,20 @@ module.exports = {
}
],
"selector-no-qualifying-type": true,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower",
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"string-quotes": "double",
"unit-disallowed-list": [
[ "px" ],
{
"ignoreProperties": {

"px": [ "/^border(-(top|bottom|left|right))?(-width)?$/" ]
}
}
],
"unit-case": "lower",
"unit-no-unknown": true,
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-no-vendor-prefix": true,
},
}
Loading

0 comments on commit 7810ee0

Please sign in to comment.