Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shared organisation configs (#4696)
* Use shared remark preset * Update eslint-config-stylelint * Use shared prettier config * Format using shared prettier config * Revert "Format using shared prettier config" This reverts commit 76c45a1. * Use latest Prettier shared config * Reduce broardness of Prettier ignore * Format code using shared Prettier config
- Loading branch information
Showing
39 changed files
with
897 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
**/*.css | ||
.coverage | ||
**/fixtures/**/*.css | ||
**/fixtures/**/*.pcss | ||
**/fixtures/**/*.postcss | ||
**/fixtures/**/*.less | ||
**/fixtures/**/*.scss | ||
**/fixtures/**/*.sass | ||
**/fixtures/**/*.sss | ||
**/fixtures/**/*.vue | ||
**/fixtures/**/*.html | ||
**/fixtures/**/*.markdown | ||
lib/utils/parseCalcExpression/parser.js | ||
scripts/**/*.css | ||
system-tests/**/*.css |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
lib/__tests__/fixtures/config-at-rule-empty-line-before.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"rules": { | ||
"at-rule-empty-line-before": ["always", { | ||
"except": ["blockless-after-blockless", "inside-block"] | ||
}] | ||
} | ||
"rules": { | ||
"at-rule-empty-line-before": [ | ||
"always", | ||
{ | ||
"except": ["blockless-after-blockless", "inside-block"] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"block-no-empty": null | ||
} | ||
"rules": { | ||
"block-no-empty": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"block-no-empty": true | ||
} | ||
"rules": { | ||
"block-no-empty": true | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
lib/__tests__/fixtures/config-color-named-custom-message.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rules: | ||
color-named: | ||
- "never" | ||
- message: "Unacceptable" | ||
- 'never' | ||
- message: 'Unacceptable' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"color-no-invalid-hex": true | ||
} | ||
"rules": { | ||
"color-no-invalid-hex": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ignoreFiles": "**/empty-block.css", | ||
"extends": "./config-block-no-empty" | ||
"ignoreFiles": "**/empty-block.css", | ||
"extends": "./config-block-no-empty" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "./config-extending-two" | ||
"extends": "./config-extending-two" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "./config-block-no-empty" | ||
"extends": "./config-block-no-empty" | ||
} |
6 changes: 1 addition & 5 deletions
6
lib/__tests__/fixtures/config-extending-three-with-override.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"./config-color-no-invalid-hex", | ||
"./config-block-no-empty", | ||
"./config-block-empty-ok" | ||
] | ||
"extends": ["./config-color-no-invalid-hex", "./config-block-no-empty", "./config-block-empty-ok"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"./config-block-no-empty", | ||
"./config-color-no-invalid-hex" | ||
] | ||
"extends": ["./config-block-no-empty", "./config-color-no-invalid-hex"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"./config-extending-two", | ||
"./config-relative-plugin" | ||
] | ||
"extends": ["./config-extending-two", "./config-relative-plugin"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"unit-blacklist": ["px"] | ||
} | ||
"rules": { | ||
"unit-blacklist": ["px"] | ||
} | ||
} |
14 changes: 5 additions & 9 deletions
14
lib/__tests__/fixtures/config-plugin-extending-with-plugin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
{ | ||
"extends": [ | ||
"./config-relative-plugin" | ||
], | ||
"plugins": [ | ||
"./plugin-warn-about-bar" | ||
], | ||
"rules": { | ||
"plugin/warn-about-bar": "always", | ||
}, | ||
"extends": ["./config-relative-plugin"], | ||
"plugins": ["./plugin-warn-about-bar"], | ||
"rules": { | ||
"plugin/warn-about-bar": "always" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
"./plugin-nested-warn-about-foo" | ||
], | ||
"rules": { | ||
"plugin/warn-about-foo": "always" | ||
} | ||
"plugins": ["./plugin-nested-warn-about-foo"], | ||
"rules": { | ||
"plugin/warn-about-foo": "always" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
"./plugin-warn-about-foo" | ||
], | ||
"rules": { | ||
"plugin/warn-about-foo": "always" | ||
} | ||
"plugins": ["./plugin-warn-about-foo"], | ||
"rules": { | ||
"plugin/warn-about-foo": "always" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"string-quotes": "single" | ||
} | ||
"rules": { | ||
"string-quotes": "single" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"unknown-rule": null | ||
} | ||
"rules": { | ||
"unknown-rule": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
lib/__tests__/stylelintignore-test/fixtures/config-block-no-empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"block-no-empty": true | ||
} | ||
"rules": { | ||
"block-no-empty": true | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
lib/__tests__/stylelintignore-test/fixtures/config-color-no-invalid-hex.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rules": { | ||
"color-no-invalid-hex": true | ||
} | ||
"rules": { | ||
"color-no-invalid-hex": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.