mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:28:38 +08:00
调整stylelint规则
This commit is contained in:
+13
-2
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"extends": [
|
||||
"stylelint-config-standard",
|
||||
"stylelint-config-recommended-scss",
|
||||
"stylelint-config-recommended-vue"
|
||||
"stylelint-config-standard-scss",
|
||||
"stylelint-config-recommended",
|
||||
"stylelint-config-recommended-vue/scss"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
@@ -26,6 +27,16 @@
|
||||
"selector-class-pattern": null,
|
||||
"scss/no-global-function-names": null,
|
||||
"scss/at-import-partial-extension": null,
|
||||
"scss/double-slash-comment-empty-line-before": null,
|
||||
"function-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignoreFunctions": [
|
||||
"lighten",
|
||||
"darken"
|
||||
]
|
||||
}
|
||||
],
|
||||
"max-line-length": null
|
||||
}
|
||||
}
|
||||
|
||||
+12
-11
@@ -17,11 +17,11 @@
|
||||
"dependencies": {
|
||||
"@element-plus/icons-vue": "^0.2.7",
|
||||
"@tinymce/tinymce-vue": "^4.0.5",
|
||||
"@vueuse/core": "^7.6.1",
|
||||
"@vueuse/integrations": "^7.6.1",
|
||||
"axios": "^0.25.0",
|
||||
"@vueuse/core": "^7.6.2",
|
||||
"@vueuse/integrations": "^7.6.2",
|
||||
"axios": "^0.26.0",
|
||||
"dayjs": "^1.10.7",
|
||||
"element-plus": "^2.0.1",
|
||||
"element-plus": "^2.0.2",
|
||||
"hotkeys-js": "^3.8.7",
|
||||
"js-cookie": "^3.0.1",
|
||||
"mitt": "^3.0.0",
|
||||
@@ -32,18 +32,18 @@
|
||||
"pinia": "^2.0.11",
|
||||
"qs": "^6.10.3",
|
||||
"tinymce": "^5.10.3",
|
||||
"vue": "^3.2.30",
|
||||
"vue": "^3.2.31",
|
||||
"vue-router": "^4.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^2.2.0",
|
||||
"@vitejs/plugin-vue-jsx": "^1.3.4",
|
||||
"@vue/compiler-sfc": "^3.2.30",
|
||||
"eslint": "^8.8.0",
|
||||
"@vitejs/plugin-vue-jsx": "^1.3.7",
|
||||
"@vue/compiler-sfc": "^3.2.31",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint-plugin-vue": "^8.4.1",
|
||||
"http-server": "^14.1.0",
|
||||
"husky": "^7.0.4",
|
||||
"lint-staged": "^12.3.3",
|
||||
"lint-staged": "^12.3.4",
|
||||
"plop": "^3.0.5",
|
||||
"postcss-html": "^1.3.0",
|
||||
"postcss-scss": "^4.0.3",
|
||||
@@ -52,13 +52,14 @@
|
||||
"stylelint-config-html": "^1.0.0",
|
||||
"stylelint-config-recommended": "^7.0.0",
|
||||
"stylelint-config-recommended-scss": "^5.0.2",
|
||||
"stylelint-config-recommended-vue": "^1.2.0",
|
||||
"stylelint-config-recommended-vue": "^1.3.0",
|
||||
"stylelint-config-standard": "^25.0.0",
|
||||
"stylelint-config-standard-scss": "^3.0.0",
|
||||
"stylelint-scss": "^4.1.0",
|
||||
"svgo": "^2.8.0",
|
||||
"unplugin-auto-import": "^0.5.11",
|
||||
"unplugin-vue-components": "^0.17.18",
|
||||
"vite": "^2.8.0",
|
||||
"vite": "^2.8.2",
|
||||
"vite-plugin-banner": "^0.2.0",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-html": "^3.0.6",
|
||||
|
||||
Generated
+258
-214
File diff suppressed because it is too large
Load Diff
@@ -8,12 +8,11 @@
|
||||
|
||||
// 文字超出隐藏,默认为单行超出隐藏,可设置多行
|
||||
@mixin text-overflow($line: 1, $fixed-width: true) {
|
||||
@if ($line == 1 and $fixed-width == true) {
|
||||
@if $line == 1 and $fixed-width == true {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@else {
|
||||
} @else {
|
||||
/* stylelint-disable-next-line value-no-vendor-prefix */
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
@@ -25,15 +24,15 @@
|
||||
// 定位居中,默认水平居中,可选择垂直居中,或者水平垂直都居中
|
||||
@mixin position-center($type: x) {
|
||||
position: absolute;
|
||||
@if ($type == x) {
|
||||
@if $type == x {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
@if ($type == y) {
|
||||
@if $type == y {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
@if ($type == xy) {
|
||||
@if $type == xy {
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
|
||||
Reference in New Issue
Block a user