Browse Source
* chore(deps): update dependency stylelint to v15 * Update package.json * test: remove stylelint-config-prettier * test: remove stylelint-config-prettier * stylelint@15 * json to js --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: yoyo837 <yoyo837@hotmail.com>pull/40705/head
renovate[bot]
2 years ago
committed by
GitHub
3 changed files with 43 additions and 47 deletions
@ -0,0 +1,40 @@ |
|||
module.exports = { |
|||
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'], |
|||
// 使用 stylelint 来 lint css in js? https://github.com/emotion-js/emotion/discussions/2694
|
|||
plugins: ['stylelint-prettier'], |
|||
rules: { |
|||
'prettier/prettier': true, |
|||
'function-name-case': ['lower'], |
|||
'function-no-unknown': [ |
|||
true, |
|||
{ |
|||
ignoreFunctions: [ |
|||
'fade', |
|||
'fadeout', |
|||
'tint', |
|||
'darken', |
|||
'ceil', |
|||
'fadein', |
|||
'floor', |
|||
'unit', |
|||
'shade', |
|||
'lighten', |
|||
'percentage', |
|||
'-', |
|||
], |
|||
}, |
|||
], |
|||
'import-notation': null, |
|||
'no-descending-specificity': null, |
|||
'no-invalid-position-at-import-rule': null, |
|||
'declaration-empty-line-before': null, |
|||
'keyframes-name-pattern': null, |
|||
'custom-property-pattern': null, |
|||
'number-max-precision': 8, |
|||
'alpha-value-notation': 'number', |
|||
'color-function-notation': 'legacy', |
|||
'selector-class-pattern': null, |
|||
'selector-id-pattern': null, |
|||
'selector-not-notation': null, |
|||
}, |
|||
}; |
@ -1,43 +0,0 @@ |
|||
{ |
|||
"extends": [ |
|||
"stylelint-config-standard", |
|||
"stylelint-config-rational-order", |
|||
"stylelint-config-prettier" |
|||
], |
|||
"customSyntax": "postcss-less", |
|||
"plugins": ["stylelint-declaration-block-no-ignored-properties"], |
|||
"rules": { |
|||
"function-name-case": ["lower"], |
|||
"function-no-unknown": [ |
|||
true, |
|||
{ |
|||
"ignoreFunctions": [ |
|||
"fade", |
|||
"fadeout", |
|||
"tint", |
|||
"darken", |
|||
"ceil", |
|||
"fadein", |
|||
"floor", |
|||
"unit", |
|||
"shade", |
|||
"lighten", |
|||
"percentage", |
|||
"-" |
|||
] |
|||
} |
|||
], |
|||
"import-notation": null, |
|||
"no-descending-specificity": null, |
|||
"no-invalid-position-at-import-rule": null, |
|||
"declaration-empty-line-before": null, |
|||
"keyframes-name-pattern": null, |
|||
"custom-property-pattern": null, |
|||
"number-max-precision": 8, |
|||
"alpha-value-notation": "number", |
|||
"color-function-notation": "legacy", |
|||
"selector-class-pattern": null, |
|||
"selector-id-pattern": null, |
|||
"selector-not-notation": null |
|||
} |
|||
} |
Loading…
Reference in new issue