Skip to content

Commit

Permalink
Merge pull request #24 from stefanbc/express
Browse files Browse the repository at this point in the history
Merge express branch into master
  • Loading branch information
stefanbc authored Apr 22, 2017
2 parents 203a6c0 + 41ae102 commit fb9e2db
Show file tree
Hide file tree
Showing 81 changed files with 2,233 additions and 1,494 deletions.
20 changes: 20 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
engines:
duplication:
enabled: true
config:
languages:
javascript:
mass_threshold: 60
eslint:
enabled: true
fixme:
enabled: true
scss-lint:
enabled: true
ratings:
paths:
- "**.js"
- "**.scss"
exclude_paths:
- bin/
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*{.,-}min.js
78 changes: 78 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 8,
sourceType: 'module'
},
extends: 'eslint:recommended',
env: {
browser: true,
es6: true,
jquery: true,
commonjs: true,
node: true
},
globals: {
'-Promise': true,
'require': true,
'module': true
},
rules: {
'semi': ['error', 'always'],
'no-unused-vars': ['error', { 'args': 'after-used' }],
'curly': 'error',
'no-alert': 'error',
'eqeqeq': 'error',
'no-eval': 'error',
'no-implied-eval': 'error',
'guard-for-in': 'error',
'wrap-iife': 'error',
'no-caller': 'error',
'no-new': 'error',
'no-eq-null': 'error',
'no-unused-expressions': 'error',
'accessor-pairs': 'error',
'block-scoped-var': 'error',
'no-loop-func': 'error',
'dot-notation': 'error',
'no-div-regex': 'error',
'no-extra-bind': 'error',
'no-iterator': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-octal-escape': 'error',
'no-proto': 'error',
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-compare': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-void': 'error',
'no-with': 'error',
'radix': 'error',
'yoda': 'error',
'no-catch-shadow': 'error',
'no-label-var': 'error',
'no-shadow-restricted-names': 'error',
'no-undef-init': 'error',
'no-use-before-define': 'error',
'callback-return': 'error',
'global-require': 'error',
'handle-callback-err': 'error',
'no-path-concat': 'error',
'no-process-exit': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-spacing': ['error', { before: false, after: true }],
'consistent-this': 'error',
'indent': ['error', 4, { 'SwitchCase': 1 }],
'object-curly-spacing': ['error', 'always', { objectsInObjects: false }],
'no-var': 'error',
'require-yield': 'error',
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
'object-shorthand': ['error', 'always', { avoidExplicitReturnArrows: true }],
'no-console': ["warn", { allow: ["warn", "error"] }]
}
};
42 changes: 39 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
.sass-cache
.vagrant
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://docs.npmjs.com/cli/shrinkwrap#caveats
node_modules
npm-debug.log
bower_components

# Debug log from npm
npm-debug.log

# Sass
.sass-cache
*.map

# misc
.DS_STORE
jsconfig.json
.vscode
31 changes: 31 additions & 0 deletions .pug-lintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"disallowAttributeConcatenation": true,
"disallowAttributeInterpolation": true,
"disallowBlockExpansion": true,
"disallowClassAttributeWithStaticValue": true,
"disallowClassLiteralsBeforeIdLiterals": true,
"disallowDuplicateAttributes": true,
"disallowHtmlText": true,
"disallowIdAttributeWithStaticValue": true,
"disallowLegacyMixinCall": true,
"disallowMultipleLineBreaks": true,
"disallowSpaceAfterCodeOperator": true,
"disallowSpacesInsideAttributeBrackets": true,
"requireClassLiteralsBeforeAttributes": true,
"requireIdLiteralsBeforeAttributes": true,
"requireLowerCaseAttributes": true,
"requireLowerCaseTags": true,
"requireSpecificAttributes": [
{
"img": [
"alt"
]
}
],
"requireStrictEqualityOperators": true,
"validateAttributeSeparator": " ",
"validateDivTags": true,
"validateIndentation": 4,
"validateSelfClosingTags": true,
"validateTemplateString": true
}
96 changes: 96 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
files:
include: '**/*.s+(a|c)ss'
options:
formatter: stylish
merge-default-rules: true
rules:
extends-before-mixins: 0
extends-before-declarations: 0
placeholder-in-extend: 0

# Mixins
mixins-before-declarations: 0

# Line Spacing
one-declaration-per-line: 2
empty-line-between-blocks: 2
single-line-per-selector: 2

# Disallows
no-attribute-selectors: 0
no-color-hex: 0
no-color-keywords: 2
no-color-literals:
- 2
- allow-rgba: true
no-combinators: 0
no-css-comments: 2
no-debug: 2
no-disallowed-properties: 0
no-duplicate-properties: 2
no-empty-rulesets: 2
no-extends: 0
no-ids: 2
no-important: 2
no-invalid-hex: 2
no-mergeable-selectors: 2
no-misspelled-properties: 2
no-qualifying-elements: 0
no-trailing-whitespace: 2
no-trailing-zero: 2
no-transition-all: 2
no-universal-selectors: 0
no-url-domains: 2
no-url-protocols: 2
no-vendor-prefixes: 2
no-warn: 2
property-units: 0

# Nesting
declarations-before-nesting: 2
force-attribute-nesting: 2
force-element-nesting: 0
force-pseudo-nesting: 0

# Name Formats
class-name-format: 2
function-name-format: 2
id-name-format: 0

# Style Guide
attribute-quotes: 2
bem-depth: 0
border-zero: 2
brace-style: 2
clean-import-paths: 2
empty-args: 0
hex-length: 2
hex-notation: 2
indentation:
- 2
- size: 4
leading-zero: 2
max-line-length: 0
max-file-line-count: 0
nesting-depth: 0
property-sort-order: 0
pseudo-element: 2
quotes: 2
shorthand-values: 2
url-quotes: 2
variable-for-property: 2
zero-unit: 2

# Inner Spacing
space-after-comma: 2
space-before-colon: 2
space-after-colon: 2
space-before-brace: 2
space-before-bang: 2
space-after-bang: 2
space-between-parens: 2
space-around-operator: 2

# Final Items
trailing-semicolon: 2
final-newline: 0
18 changes: 5 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
language: node_js
node_js:
- "5"
- "5.1"
- "4"
- "4.2"
- "4.1"
- "4.0"
- "0.12"
- "0.11"
- "0.10"
before_install:
- "7"
- "6"
before_install:
- npm install -g grunt-cli
- gem install sass
install: npm install
before_script: grunt
install:
- npm install
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The MIT License (MIT)
MIT License

Copyright (c) 2016 Stefan Cosma

Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading

0 comments on commit fb9e2db

Please sign in to comment.