Browse Source

chore: stylelint plugin upgrade (#40883)

pull/40891/head
Amumu 2 years ago
committed by GitHub
parent
commit
ea6acbc592
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .stylelintrc.js
  2. 2
      package.json

8
.stylelintrc.js

@ -1,9 +1,11 @@
module.exports = { module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'], extends: [
'stylelint-config-standard',
'stylelint-prettier/recommended',
'stylelint-config-rational-order',
],
// 使用 stylelint 来 lint css in js? https://github.com/emotion-js/emotion/discussions/2694 // 使用 stylelint 来 lint css in js? https://github.com/emotion-js/emotion/discussions/2694
plugins: ['stylelint-prettier'],
rules: { rules: {
'prettier/prettier': true,
'function-name-case': ['lower'], 'function-name-case': ['lower'],
'function-no-unknown': [ 'function-no-unknown': [
true, true,

2
package.json

@ -278,7 +278,7 @@
"stylelint": "^15.1.0", "stylelint": "^15.1.0",
"stylelint-config-rational-order": "^0.1.2", "stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^30.0.0", "stylelint-config-standard": "^30.0.0",
"stylelint-prettier": "^2.0.0", "stylelint-prettier": "^3.0.0",
"sylvanas": "^0.6.1", "sylvanas": "^0.6.1",
"terser": "^5.16.1", "terser": "^5.16.1",
"ts-node": "^10.8.2", "ts-node": "^10.8.2",

Loading…
Cancel
Save