Skip to content

Commit 7d5f7a2

Browse files
committed
add lesshint
1 parent ee917cd commit 7d5f7a2

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

.lesshintrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"propertyOrdering": false,
3+
"hexLength": "short",
4+
"stringQuotes": false,
5+
"decimalZero": false,
6+
"importantRule": false,
7+
"zeroUnit": "no_unit",
8+
"qualifyingElement": false,
9+
"duplicateProperty": false,
10+
"importPath": false,
11+
"finalNewline": false,
12+
"spaceAroundComma": false,
13+
14+
"fileExtensions": [".less", ".css"],
15+
"excludedFiles": [
16+
"test.less"
17+
]
18+
}

package.json

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
2-
"name": "react-hello-world",
3-
"version": "0.0.1",
4-
"description": "React Project Boilerplate, with React + Babel + Webpack",
5-
"author": "jiangxiyang",
2+
"name": "react-antd-admin",
3+
"version": "1.0.0",
4+
"description": "React Admin Boilerplate, with React + Ant Design",
5+
"author": "jiangxy <[email protected]>",
6+
"license": "Apache-2.0",
67
"engines": {
78
"node": ">=5.0 <7",
89
"npm": ">=3.3 <4"
910
},
11+
"keywords": [
12+
"ant",
13+
"react",
14+
"admin",
15+
"frontend"
16+
],
1017
"devDependencies": {
1118
"antd": "1.6.3",
1219
"babel-core": "6.4.5",
@@ -24,6 +31,7 @@
2431
"file-loader": "0.9.0",
2532
"less": "2.7.1",
2633
"less-loader": "2.2.3",
34+
"lesshint": "2.0.2",
2735
"react": "15.0.2",
2836
"react-cookie": "0.4.7",
2937
"react-dom": "15.0.2",
@@ -43,8 +51,8 @@
4351
"prod": "NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js",
4452
"clean": "rm dist/bundle*",
4553
"dev": "webpack-dev-server --devtool eval --progress --colors --content-base dist --hot --inline",
46-
"eslint": "eslint --ext .js,.jsx src --fix",
54+
"eslint": "eslint --ext .js,.jsx src",
4755
"stylelint": "stylelint \"src/**/*.css\"",
48-
"lint": "npm run eslint && npm run stylelint"
56+
"lesshint": "lesshint src/"
4957
}
5058
}

0 commit comments

Comments
 (0)