Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit a8447d2

Browse files
committed
build: add stylelint to project
1 parent 83e98a9 commit a8447d2

File tree

5 files changed

+1171
-22
lines changed

5 files changed

+1171
-22
lines changed

.stylelintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
node_modules
3+
public
4+
___
5+
*.json

.stylelintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
extends: ['stylelint-config-standard'],
3+
rules: {
4+
indentation: 2,
5+
'at-rule-no-unknown': [
6+
true,
7+
{
8+
ignoreAtRules: [
9+
'tailwind',
10+
'apply',
11+
'variants',
12+
'responsive',
13+
'screen',
14+
],
15+
},
16+
],
17+
'declaration-block-trailing-semicolon': null,
18+
'no-descending-specificity': null,
19+
},
20+
}

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"scripts": {
55
"dev": "vite",
66
"build": "vue-tsc --noEmit && vite build",
7-
"serve": "vite preview"
7+
"serve": "vite preview",
8+
"stylelint": "stylelint .",
9+
"lint": "stylelint . && eslint .",
10+
"eslint": "eslint"
811
},
912
"files": [
1013
"dist"
@@ -34,6 +37,8 @@
3437
"eslint-plugin-vue": "^7.14.0",
3538
"eslint-plugin-vue-scoped-css": "^1.2.2",
3639
"sass": "^1.35.2",
40+
"stylelint": "^13.13.1",
41+
"stylelint-config-standard": "^22.0.0",
3742
"typescript": "^4.3.2",
3843
"vite": "^2.4.0",
3944
"vue-tsc": "^0.0.24"

src/gitart-vue-dialog/components/GDialogContent.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ export default defineComponent({
5252
border-radius: 4px;
5353
margin: 24px;
5454
overflow-y: auto;
55-
pointer-events: auto;
5655
transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
5756
width: 100%;
5857
z-index: inherit;
59-
box-shadow: 0 11px 15px -7px rgb(0 0 0 / 20%),
60-
0 24px 38px 3px rgb(0 0 0 / 14%), 0 9px 46px 8px rgb(0 0 0 / 12%);
58+
box-shadow:
59+
0 11px 15px -7px rgb(0 0 0 / 20%),
60+
0 24px 38px 3px rgb(0 0 0 / 14%),
61+
0 9px 46px 8px rgb(0 0 0 / 12%);
6162
6263
&:not(#{$dialog}--fullscreen) {
6364
max-height: 90%;

0 commit comments

Comments
 (0)