Skip to content

Commit

Permalink
Fix lesshint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Apr 29, 2016
1 parent 54045fc commit c66a226
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 102 deletions.
9 changes: 8 additions & 1 deletion .lesshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
"qualifyingElement": false,
"duplicateProperty": false,
"importPath": false,
"finalNewline": false
"finalNewline": false,
"excludedFiles": [
"components/layout/style/mixin.less",
"components/style/core/base.less",
"components/style/core/iconfont.less",
"components/style/core/normalize.less",
"components/style/mixins/compatibility.less"
]
}
2 changes: 1 addition & 1 deletion components/button/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ title: 按钮类型
import { Button } from 'antd';

ReactDOM.render(<div>
<Button type="primary">主按钮</Button>
<Button type="primary">主按钮1</Button>
<Button>次按钮</Button>
<Button type="ghost">幽灵按钮</Button>
<Button type="dashed">虚线按钮</Button>
Expand Down
2 changes: 1 addition & 1 deletion components/checkbox/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
vertical-align: middle;

&:hover,
&-focused {
&-focused {
.@{checkbox-inner-prefix-cls} {
border-color: #bcbcbc;
}
Expand Down
1 change: 1 addition & 0 deletions components/layout/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
.col(1); // kickstart it
}

// lesshint false
.loop-grid-columns(@index, @class) when (@index > 0) {
.col@{class}-@{index} {
display: block;
Expand Down
98 changes: 0 additions & 98 deletions components/style/core/layouts.less

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"lint": "npm run srclint && npm run demolint && npm run lesshint",
"srclint": "RUN_ENV=SRC eslint components test site scripts ./*.js --ext '.js,.jsx'",
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
"lesshint": "lesshint components/style -e 'components/style/+(core|mixins)/+(base|iconfont|normalize|layouts|compatibility|grid).less'",
"lesshint": "lesshint components",
"eslint-fix": "eslint --fix components test site scripts ./*.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
"test": "npm run lint && npm run dist && npm run jest",
"jest": "jest",
Expand Down

0 comments on commit c66a226

Please sign in to comment.