-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lint): add stylelint for LESS and normalize whitespaces
Like #2501, but for LESS. No functionality change.
- Loading branch information
Showing
58 changed files
with
24,247 additions
and
23,845 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module.exports = { | ||
extends: [ | ||
'stylelint-config-standard', | ||
], | ||
customSyntax: 'postcss-less', | ||
ignoreFiles: [ | ||
'dist/**', | ||
'test/coverage/**', | ||
], | ||
rules: { | ||
indentation: 4, | ||
'at-rule-empty-line-before': null, | ||
'block-closing-brace-newline-before': null, | ||
'declaration-block-trailing-semicolon': null, // bad formatting with "each()" | ||
'declaration-empty-line-before': null, | ||
'max-line-length': null, | ||
'rule-empty-line-before': null, | ||
|
||
// TODO | ||
'no-descending-specificity': null, // 11532 errors | ||
'property-case': null, // 338 errors | ||
'string-quotes': null, // 249 errors | ||
'no-duplicate-selectors': null, // 212 errors | ||
'selector-not-notation': null, // 169 errors | ||
'no-invalid-position-at-import-rule': null, // 104 errors | ||
'at-rule-no-unknown': null, // 104 errors | ||
'import-notation': null, // 55 errors | ||
'function-no-unknown': null, // 43 errors | ||
'property-no-vendor-prefix': null, // 31 errors | ||
'selector-no-vendor-prefix': null, // 19 errors | ||
'number-leading-zero': null, // 19 errors | ||
'declaration-block-no-redundant-longhand-properties': null, // 12 errors | ||
'value-keyword-case': null, // 11 errors | ||
'value-no-vendor-prefix': null, // 9 errors | ||
'keyframes-name-pattern': null, // 9 errors | ||
'color-function-notation': null, // 8 errors | ||
'alpha-value-notation': null, // 8 errors | ||
'selector-attribute-quotes': null, // 7 errors | ||
'number-no-trailing-zeros': null, // 6 errors | ||
'shorthand-property-no-redundant-values': null, // 5 errors | ||
'declaration-block-no-duplicate-properties': null, // 2 errors | ||
'number-max-precision': null, // 2 errors | ||
'color-hex-case': null, // 1 error | ||
'color-hex-length': null, // 1 error | ||
}, | ||
}; |
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
Oops, something went wrong.