feat: stylint

This commit is contained in:
shenyu 2019-12-25 21:43:56 +08:00
parent 3e8987666d
commit 0cccbcc7e0
2 changed files with 46 additions and 1 deletions

45
.stylintrc Normal file
View File

@ -0,0 +1,45 @@
{
"blocks": false,
"brackets": "never",
"colons": false,
"colors": "never",
"commaSpace": false,
"commentSpace": "never",
"cssLiteral": "never",
"customProperties": [],
"depthLimit": false,
"duplicates": false,
"efficient": false,
"exclude": [],
"extendPref": false,
"globalDupe": false,
"groupOutputByFile": false,
"indentPref": false,
"leadingZero": "never",
"maxErrors": false,
"maxWarnings": false,
"mixed": false,
"mixins": [],
"namingConvention": "lowercase-dash",
"namingConventionStrict": false,
"none": "never",
"noImportant": false,
"parenSpace": false,
"placeholders": "always",
"prefixVarsWithDollar": "always",
"quotePref": false,
"reporterOptions": {
"columns": ["lineData", "severity", "description", "rule"],
"columnSplitter": " ",
"showHeaders": false,
"truncate": false
},
"semicolons": "never",
"sortOrder": "never",
"stackedProperties": false,
"trailingWhitespace": "never",
"universal": false,
"valid": false,
"zeroUnits": "never",
"zIndexNormalize": false
}

View File

@ -8,7 +8,7 @@
},
"devDependencies": {},
"scripts": {
"test": "echo \"---test start---\""
"test": "stylint source/css/style.styl -c .stylintrc"
},
"keywords": [
"ayer",