From e1cff24d344a0a7cced6e02a55a4fe5430ffbc12 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Sun, 24 Dec 2023 00:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +- pnpm-lock.yaml | 162 ++++++++++++++++++-------------------------- stylelint.config.js | 68 +------------------ 3 files changed, 70 insertions(+), 164 deletions(-) diff --git a/package.json b/package.json index b4072b94..14e65270 100755 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@antfu/eslint-config": "2.4.6", "@iconify/json": "^2.2.161", "@iconify/vue": "^4.1.1", - "@stylistic/stylelint-plugin": "^2.0.0", + "@stylistic/stylelint-config": "^1.0.1", "@types/lodash-es": "^4.17.12", "@types/nprogress": "^0.2.3", "@types/path-browserify": "^1.0.2", @@ -80,7 +80,7 @@ "inquirer": "^9.2.12", "lint-staged": "^15.2.0", "npm-run-all": "^4.1.5", - "plop": "^4.0.0", + "plop": "^4.0.1", "sass": "^1.69.5", "simple-git-hooks": "^2.9.0", "stylelint": "^16.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c5f750dd..3f096523 100755 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,9 +139,9 @@ devDependencies: '@iconify/vue': specifier: ^4.1.1 version: 4.1.1(vue@3.3.13) - '@stylistic/stylelint-plugin': - specifier: ^2.0.0 - version: 2.0.0(stylelint@16.0.2) + '@stylistic/stylelint-config': + specifier: ^1.0.1 + version: 1.0.1(stylelint@16.0.2) '@types/lodash-es': specifier: ^4.17.12 version: 4.17.12 @@ -197,8 +197,8 @@ devDependencies: specifier: ^4.1.5 version: 4.1.5 plop: - specifier: ^4.0.0 - version: 4.0.0 + specifier: ^4.0.1 + version: 4.0.1 sass: specifier: ^1.69.5 version: 1.69.5 @@ -3060,6 +3060,16 @@ packages: - typescript dev: true + /@stylistic/stylelint-config@1.0.1(stylelint@16.0.2): + resolution: {integrity: sha512-JgFP88HZEyo34k9RpWVdcQJtLPrMxYE58IO3qypXhmvE/NmZohj+xjDtQ8UfaarnYsLecnldw57/GHum07Ctdw==} + engines: {node: ^18.12 || >=20.9} + peerDependencies: + stylelint: ^16.0.2 + dependencies: + '@stylistic/stylelint-plugin': 2.0.0(stylelint@16.0.2) + stylelint: 16.0.2(typescript@5.3.3) + dev: true + /@stylistic/stylelint-plugin@2.0.0(stylelint@16.0.2): resolution: {integrity: sha512-dHKuT6PGd1WGZLOTuozAM7GdQzdmlmnFXYzvV1jYJXXpcCpV/OJ3+n8TXpMkoOeKHpJydY43EOoZTO1W/FOA4Q==} engines: {node: ^18.12 || >=20.9} @@ -3124,8 +3134,8 @@ packages: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} dev: true - /@types/fined@1.1.3: - resolution: {integrity: sha512-CWYnSRnun3CGbt6taXeVo2lCbuaj4mchVJ4UF/BdU5TSuIn3AmS13pGMwCsBUoehGbhZrBrpNJZSZI5EVilXww==} + /@types/fined@1.1.5: + resolution: {integrity: sha512-2N93vadEGDFhASTIRbizbl4bNqpMOId5zZfj6hHqYZfEzEfO9onnU4Im8xvzo8uudySDveDHBOOSlTWf38ErfQ==} dev: true /@types/hast@2.3.4: @@ -3134,10 +3144,10 @@ packages: '@types/unist': 2.0.6 dev: false - /@types/inquirer@9.0.3: - resolution: {integrity: sha512-CzNkWqQftcmk2jaCWdBTf9Sm7xSw4rkI1zpU/Udw3HX5//adEZUIm9STtoRP1qgWj0CWQtJ9UTvqmO2NNjhMJw==} + /@types/inquirer@9.0.7: + resolution: {integrity: sha512-Q0zyBupO6NxGRZut/JdmqYKOnN95Eg5V8Csg3PGKkP+FnvsUZx1jAyK7fztIszxxMuoBA6E3KXWvdZVXIpx60g==} dependencies: - '@types/through': 0.0.30 + '@types/through': 0.0.33 rxjs: 7.8.1 dev: true @@ -3145,11 +3155,11 @@ packages: resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} dev: true - /@types/liftoff@4.0.1: - resolution: {integrity: sha512-GUUFIP1wHuB6DEg65hkgJdqqmEeK5Vj+Wy5Tza26F9FuaHhtm4BxN00N3PhVUdCcryY9pn3SkcXGGQDLBisAPQ==} + /@types/liftoff@4.0.3: + resolution: {integrity: sha512-UgbL2kR5pLrWICvr8+fuSg0u43LY250q7ZMkC+XKC3E+rs/YBDEnQIzsnhU5dYsLlwMi3R75UvCL87pObP1sxw==} dependencies: - '@types/fined': 1.1.3 - '@types/node': 20.6.0 + '@types/fined': 1.1.5 + '@types/node': 20.10.5 dev: true /@types/lodash-es@4.17.12: @@ -3188,8 +3198,10 @@ packages: resolution: {integrity: sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==} dev: true - /@types/node@20.6.0: - resolution: {integrity: sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg==} + /@types/node@20.10.5: + resolution: {integrity: sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==} + dependencies: + undici-types: 5.26.5 dev: true /@types/node@20.9.0: @@ -3246,10 +3258,10 @@ packages: '@types/estree': 1.0.3 dev: false - /@types/through@0.0.30: - resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} + /@types/through@0.0.33: + resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 20.9.0 + '@types/node': 20.10.5 dev: true /@types/unist@2.0.10: @@ -4348,14 +4360,6 @@ packages: readable-stream: 3.6.2 dev: true - /bl@5.1.0: - resolution: {integrity: sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==} - dependencies: - buffer: 6.0.3 - inherits: 2.0.4 - readable-stream: 3.6.2 - dev: true - /bluebird@3.7.2: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} dev: true @@ -4441,13 +4445,6 @@ packages: ieee754: 1.2.1 dev: true - /buffer@6.0.3: - resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - dev: true - /builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} @@ -4716,13 +4713,13 @@ packages: restore-cursor: 4.0.0 dev: true - /cli-spinners@2.9.0: - resolution: {integrity: sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==} + /cli-spinners@2.9.1: + resolution: {integrity: sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==} engines: {node: '>=6'} dev: true - /cli-spinners@2.9.1: - resolution: {integrity: sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==} + /cli-spinners@2.9.2: + resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} engines: {node: '>=6'} dev: true @@ -5425,10 +5422,6 @@ packages: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} dev: true - /eastasianwidth@0.2.0: - resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - dev: true - /echarts@5.4.3: resolution: {integrity: sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==} dependencies: @@ -5473,10 +5466,6 @@ packages: - '@vue/composition-api' dev: false - /emoji-regex@10.2.1: - resolution: {integrity: sha512-97g6QgOk8zlDRdgq1WxwgTMgEWGVAQvB5Fdpgc1MkNy56la5SKP9GsMXKDOdqwn90/41a8yPwIGk1Y6WVbeMQA==} - dev: true - /emoji-regex@10.3.0: resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==} dev: true @@ -6793,7 +6782,6 @@ packages: /function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - dev: true /function.prototype.name@1.1.5: resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} @@ -6965,7 +6953,7 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: dir-glob: 3.0.1 - fast-glob: 3.3.1 + fast-glob: 3.3.2 ignore: 5.3.0 merge2: 1.4.1 slash: 4.0.0 @@ -7099,7 +7087,6 @@ packages: engines: {node: '>= 0.4'} dependencies: function-bind: 1.1.2 - dev: true /hast-util-from-parse5@7.1.2: resolution: {integrity: sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw==} @@ -7504,12 +7491,12 @@ packages: resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} dependencies: has: 1.0.3 + dev: true /is-core-module@2.13.1: resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: hasown: 2.0.0 - dev: true /is-data-descriptor@0.1.4: resolution: {integrity: sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==} @@ -7762,6 +7749,11 @@ packages: engines: {node: '>=12'} dev: true + /is-unicode-supported@2.0.0: + resolution: {integrity: sha512-FRdAyx5lusK1iHG0TWpVtk9+1i+GjrzRffhDg4ovQ7mcidMQ6mj+MhKPmvh7Xwyv5gIS06ns49CA7Sqg7lC22Q==} + engines: {node: '>=18'} + dev: true + /is-weakmap@2.0.1: resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==} dev: true @@ -8002,7 +7994,7 @@ packages: is-plain-object: 5.0.0 object.map: 1.0.1 rechoir: 0.8.0 - resolve: 1.22.4 + resolve: 1.22.8 dev: true /lilconfig@3.0.0: @@ -8133,9 +8125,9 @@ packages: is-unicode-supported: 0.1.0 dev: true - /log-symbols@5.1.0: - resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==} - engines: {node: '>=12'} + /log-symbols@6.0.0: + resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==} + engines: {node: '>=18'} dependencies: chalk: 5.3.0 is-unicode-supported: 1.3.0 @@ -8889,7 +8881,7 @@ packages: resolution: {integrity: sha512-lKFSRSRuDHhwDKMUobdsvaWCbbDRbV3jMUSMiajQSQux1aNUevAZVxUHc2JERI//W8ABPRbi3ebYuSuIzkNIpQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - '@types/inquirer': 9.0.3 + '@types/inquirer': 9.0.7 change-case: 4.1.2 del: 7.1.0 globby: 13.2.2 @@ -8899,7 +8891,7 @@ packages: lodash.get: 4.4.2 lower-case: 2.0.2 mkdirp: 3.0.1 - resolve: 1.22.4 + resolve: 1.22.8 title-case: 3.0.3 upper-case: 2.0.2 dev: true @@ -9116,18 +9108,18 @@ packages: wcwidth: 1.0.1 dev: true - /ora@7.0.1: - resolution: {integrity: sha512-0TUxTiFJWv+JnjWm4o9yvuskpEJLXTcng8MJuKd+SzAzp2o+OP3HWqNhB4OdJRt1Vsd9/mR0oyaEYlOnL7XIRw==} - engines: {node: '>=16'} + /ora@8.0.1: + resolution: {integrity: sha512-ANIvzobt1rls2BDny5fWZ3ZVKyD6nscLvfFRpQgfWsythlcsVUC9kL0zq6j2Z5z9wwp1kd7wpsD/T9qNPVLCaQ==} + engines: {node: '>=18'} dependencies: chalk: 5.3.0 cli-cursor: 4.0.0 - cli-spinners: 2.9.0 + cli-spinners: 2.9.2 is-interactive: 2.0.0 - is-unicode-supported: 1.3.0 - log-symbols: 5.1.0 - stdin-discarder: 0.1.0 - string-width: 6.1.0 + is-unicode-supported: 2.0.0 + log-symbols: 6.0.0 + stdin-discarder: 0.2.1 + string-width: 7.0.0 strip-ansi: 7.1.0 dev: true @@ -9405,18 +9397,18 @@ packages: pathe: 1.1.1 dev: true - /plop@4.0.0: - resolution: {integrity: sha512-6hsuNofd5crnl7upQSRyw+7zVBZqxF9UZoWqsKqtPthpvtgUuYD+atBx7ZD9RT8qXWnylyCt9bpvYLZPexxDMg==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + /plop@4.0.1: + resolution: {integrity: sha512-5n8QU93kvL/ObOzBcPAB1siVFtAH1TZM6TntJ3JK5kXT0jIgnQV+j+uaOWWFJlg1cNkzLYm8klgASF65K36q9w==} + engines: {node: '>=18'} hasBin: true dependencies: - '@types/liftoff': 4.0.1 + '@types/liftoff': 4.0.3 chalk: 5.3.0 interpret: 3.1.1 liftoff: 4.0.0 minimist: 1.2.8 node-plop: 0.32.0 - ora: 7.0.1 + ora: 8.0.1 v8flags: 4.0.1 dev: true @@ -9679,7 +9671,7 @@ packages: resolution: {integrity: sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==} engines: {node: '>= 10.13.0'} dependencies: - resolve: 1.22.6 + resolve: 1.22.8 dev: true /regenerate-unicode-properties@10.1.1: @@ -9870,15 +9862,6 @@ packages: deprecated: https://github.com/lydell/resolve-url#deprecated dev: true - /resolve@1.22.4: - resolution: {integrity: sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==} - hasBin: true - dependencies: - is-core-module: 2.13.0 - path-parse: 1.0.7 - supports-preserve-symlinks-flag: 1.0.0 - dev: true - /resolve@1.22.6: resolution: {integrity: sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==} hasBin: true @@ -9886,6 +9869,7 @@ packages: is-core-module: 2.13.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + dev: true /resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} @@ -9894,7 +9878,6 @@ packages: is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - dev: true /restore-cursor@3.1.0: resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} @@ -10380,11 +10363,9 @@ packages: engines: {node: '>= 0.6'} dev: true - /stdin-discarder@0.1.0: - resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - bl: 5.1.0 + /stdin-discarder@0.2.1: + resolution: {integrity: sha512-wRXvkxiYhOAduH+LFL/Qpim5zIWKYH1yEGvU0W8PgmabrZZ29iC1LKS8i443SYct12oZmQH7nyEonKiV8RTIsg==} + engines: {node: '>=18'} dev: true /stop-iteration-iterator@1.0.0: @@ -10412,15 +10393,6 @@ packages: is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 - /string-width@6.1.0: - resolution: {integrity: sha512-k01swCJAgQmuADB0YIc+7TuatfNvTBVOoaUWJjTB9R4VJzR5vNWzf5t42ESVZFPS8xTySF7CAdV4t/aaIm3UnQ==} - engines: {node: '>=16'} - dependencies: - eastasianwidth: 0.2.0 - emoji-regex: 10.2.1 - strip-ansi: 7.1.0 - dev: true - /string-width@7.0.0: resolution: {integrity: sha512-GPQHj7row82Hjo9hKZieKcHIhaAIKOJvFSIZXuCU9OASVZrMNUaZuz++SPVrBjnLsnk4k+z9f2EIypgxf2vNFw==} engines: {node: '>=18'} @@ -10853,7 +10825,7 @@ packages: is-regex: 1.1.4 minimist: 1.2.8 object-inspect: 1.12.3 - resolve: 1.22.6 + resolve: 1.22.8 resumer: 0.0.0 string.prototype.trim: 1.2.7 through: 2.3.8 diff --git a/stylelint.config.js b/stylelint.config.js index 3b4c8f40..5d0a2b9a 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -3,10 +3,10 @@ export default { 'stylelint-config-standard-scss', 'stylelint-config-standard-vue/scss', 'stylelint-config-recess-order', + '@stylistic/stylelint-config', ], plugins: [ 'stylelint-scss', - '@stylistic/stylelint-plugin', ], rules: { 'at-rule-no-unknown': null, @@ -35,72 +35,6 @@ export default { ], 'scss/double-slash-comment-empty-line-before': null, 'scss/no-global-function-names': null, - // 提取自 https://github.com/elirasza/stylelint-stylistic/blob/main/config/index.js - '@stylistic/at-rule-name-case': 'lower', - '@stylistic/at-rule-name-space-after': 'always-single-line', - '@stylistic/at-rule-semicolon-newline-after': 'always', - '@stylistic/block-closing-brace-empty-line-before': 'never', - '@stylistic/block-closing-brace-newline-after': 'always', - '@stylistic/block-closing-brace-newline-before': 'always-multi-line', - '@stylistic/block-closing-brace-space-before': 'always-single-line', - '@stylistic/block-opening-brace-newline-after': 'always-multi-line', - '@stylistic/block-opening-brace-space-after': 'always-single-line', - '@stylistic/block-opening-brace-space-before': 'always', - '@stylistic/color-hex-case': 'lower', - '@stylistic/declaration-bang-space-after': 'never', - '@stylistic/declaration-bang-space-before': 'always', - '@stylistic/declaration-block-semicolon-newline-after': 'always-multi-line', - '@stylistic/declaration-block-semicolon-space-after': 'always-single-line', - '@stylistic/declaration-block-semicolon-space-before': 'never', - '@stylistic/declaration-block-trailing-semicolon': 'always', - '@stylistic/declaration-colon-newline-after': 'always-multi-line', - '@stylistic/declaration-colon-space-after': 'always-single-line', - '@stylistic/declaration-colon-space-before': 'never', - '@stylistic/function-comma-newline-after': 'always-multi-line', - '@stylistic/function-comma-space-after': 'always-single-line', - '@stylistic/function-comma-space-before': 'never', - '@stylistic/function-max-empty-lines': 0, - '@stylistic/function-parentheses-newline-inside': 'always-multi-line', - '@stylistic/function-parentheses-space-inside': 'never-single-line', - '@stylistic/function-whitespace-after': 'always', - '@stylistic/indentation': 2, - '@stylistic/max-empty-lines': 1, - '@stylistic/max-line-length': 120, - '@stylistic/media-feature-colon-space-after': 'always', - '@stylistic/media-feature-colon-space-before': 'never', - '@stylistic/media-feature-name-case': 'lower', - '@stylistic/media-feature-parentheses-space-inside': 'never', - '@stylistic/media-feature-range-operator-space-after': 'always', - '@stylistic/media-feature-range-operator-space-before': 'always', - '@stylistic/media-query-list-comma-newline-after': 'always-multi-line', - '@stylistic/media-query-list-comma-space-after': 'always-single-line', - '@stylistic/media-query-list-comma-space-before': 'never', - '@stylistic/no-empty-first-line': true, - '@stylistic/no-eol-whitespace': true, - '@stylistic/no-extra-semicolons': true, - '@stylistic/no-missing-end-of-source-newline': true, - '@stylistic/number-leading-zero': 'always', - '@stylistic/number-no-trailing-zeros': true, - '@stylistic/property-case': 'lower', - '@stylistic/selector-attribute-brackets-space-inside': 'never', - '@stylistic/selector-attribute-operator-space-after': 'never', - '@stylistic/selector-attribute-operator-space-before': 'never', - '@stylistic/selector-combinator-space-after': 'always', - '@stylistic/selector-combinator-space-before': 'always', - '@stylistic/selector-descendant-combinator-no-non-space': true, - '@stylistic/selector-list-comma-newline-after': 'always', - '@stylistic/selector-list-comma-space-before': 'never', - '@stylistic/selector-max-empty-lines': 0, - '@stylistic/selector-pseudo-class-case': 'lower', - '@stylistic/selector-pseudo-class-parentheses-space-inside': 'never', - '@stylistic/selector-pseudo-element-case': 'lower', - '@stylistic/string-quotes': 'double', - '@stylistic/unit-case': 'lower', - '@stylistic/value-list-comma-newline-after': 'always-multi-line', - '@stylistic/value-list-comma-space-after': 'always-single-line', - '@stylistic/value-list-comma-space-before': 'never', - '@stylistic/value-list-max-empty-lines': 0, - // 根据需要覆盖部分规则 '@stylistic/max-line-length': null, '@stylistic/block-closing-brace-newline-after': [ 'always',