Skip to content

Commit 4dad841

Browse files
author
jack
committed
设置style校验规则
1 parent 56597b7 commit 4dad841

File tree

6 files changed

+9975
-6012
lines changed

6 files changed

+9975
-6012
lines changed

.stylelintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.js
2+
*.jsx

.stylelintrc.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* @Description :
3+
* @Date : 2022-01-17 01:14:34 +0800
4+
* @Author : JackChou
5+
* @LastEditTime: 2022-01-17 01:40:29 +0800
6+
* @LastEditors : JackChou
7+
*/
8+
module.exports = {
9+
extends: [
10+
'stylelint-config-standard',
11+
'stylelint-config-standard-scss',
12+
'stylelint-config-html/html',
13+
'stylelint-config-html/vue',
14+
],
15+
plugins: ['stylelint-order'],
16+
rules: {
17+
'stylelint(custom-property-no-missing-var-function': null,
18+
'order/properties-order': [
19+
'position',
20+
'top',
21+
'right',
22+
'bottom',
23+
'left',
24+
'z-index',
25+
'display',
26+
'justify-content',
27+
'align-items',
28+
'float',
29+
'clear',
30+
'overflow',
31+
'overflow-x',
32+
'overflow-y',
33+
// https://347830076.github.io/myBlog/standard/stylelint.html#%E8%87%AA%E5%AE%9A%E4%B9%89css%E5%B1%9E%E6%80%A7%E9%A1%BA%E5%BA%8F%E8%A7%84%E5%88%99
34+
],
35+
},
36+
}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# hello-vue
1+
# vue2-to-web-component
22

3+
记录 vue component 转为 web component
4+
5+
```bash
6+
"wc": "vue-cli-service build --target wc --name ng-bi './src/components/*.vue'"
7+
```
38
## Project setup
49
```
510
npm install

0 commit comments

Comments
 (0)