Skip to content

Commit

Permalink
chore: add stylint dependency and config files + update .gitignore 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
CPatchane committed May 5, 2017
1 parent db19928 commit 46394e7
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 10 deletions.
40 changes: 38 additions & 2 deletions .gitignore
@@ -1,7 +1,10 @@
# NPM packages folder.
# NPM
node_modules/
npm-debug.log
yarn-error.log

# build files

# Build
build/


Expand All @@ -10,5 +13,38 @@ build/
!**/locales/en.json


# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
desktop.ini


# Editors / IDEs
.floo
.flooignore


# Mobile
mobile/hooks
mobile/platforms
mobile/plugins
mobile/www
mobile/keys


# fastlane
mobile/fastlane/README.md
mobile/fastlane/report.xml
mobile/fastlane/Error*.png
mobile/fastlane/Preview.html
mobile/Preview.html


# Default
# /!\ KEEP THIS SECTION THE LAST ONE
!.gitkeep
120 changes: 120 additions & 0 deletions .stylintrc
@@ -0,0 +1,120 @@
{
"blocks": "never",
"brackets": {
"expect": "never",
"error": true
},
"colons": {
"expect": "never",
"error": true
},
"colors": {
"expect": "always",
"error": true
},
"commaSpace": {
"expect": "always",
"error": true
},
"commentSpace": {
"expect": "always",
"error": true
},
"cssLiteral": "never",
"customProperties": [],
"depthLimit": 4,
"duplicates": {
"expect": true,
"error": true
},
"efficient": {
"expect": "always",
"error": true
},
"exclude": [],
"extendPref": "@extend",
"globalDupe": {
"expect": true,
"error": true
},
"groupOutputByFile": {
"expect": true,
"error": true
},
"indentPref": {
"expect": 4,
"error": true
},
"leadingZero": {
"expect": "never",
"error": true
},
"maxErrors": false,
"maxWarnings": false,
"mixed": {
"expect": true,
"error": true
},
"mixins": ["top-padded","right-padded","bottom-padded","left-padded","vertically-padded","horizontally-padded","padded","top-spaced","right-spaced","bottom-spaced","left-spaced","vertically-spaced","horizontally-spaced","spaced","hide","reset"],
"namingConvention": {
"expect": "lowercase-dash",
"error": true
},
"namingConventionStrict": false,
"none": {
"expect": "never",
"error": true
},
"noImportant": {
"expect": true,
"error": true
},
"parenSpace": {
"expect": "never",
"error": true
},
"placeholders": {
"expect": "always",
"error": true
},
"prefixVarsWithDollar": false,
"quotePref": {
"expect": "single",
"error": true
},
"reporterOptions": {
"columns": ["lineData", "severity", "description", "rule"],
"columnSplitter": " ",
"showHeaders": false,
"truncate": true
},
"semicolons": {
"expect": "never",
"error": true
},
"sortOrder": false,
"stackedProperties": {
"expect": "never",
"error": true
},
"trailingWhitespace": {
"expect": "never",
"error": true
},
"universal": {
"expect": "never",
"error": true
},
"valid": {
"expect": true,
"error": true
},
"zeroUnits": {
"expect": "never",
"error": true
},
"zIndexNormalize": {
"expect": 1,
"error": true
}
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -97,6 +97,7 @@
"script-ext-html-webpack-plugin": "^1.7.1",
"standard": "^8.6.0",
"style-loader": "0.13.1",
"stylint": "^1.5.9",
"stylus": "0.54.5",
"stylus-loader": "2.3.1",
"svg-sprite-loader": "^0.3.0",
Expand Down

0 comments on commit 46394e7

Please sign in to comment.