Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Icehunter committed May 2, 2016
0 parents commit 812cf3b
Show file tree
Hide file tree
Showing 16 changed files with 1,226 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015", "stage-0"],
"plugins": ["transform-es2015-modules-commonjs"]
}
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/distribution/*
**/lib/*
**/node_modules/*
**/gulpfile.js
**/packman.js
**/tables-*.js
**/webpack.config.js
**/webpack.*.config.js
187 changes: 187 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"jquery": true,
"node": true
},
"plugins": [
"babel"
],
"globals": {
"SES": true,
"Config": true
},
"settings": {
"ecamscript": 6
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
# "globalReturn": true,
"jsx": true
# "experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"rules": {
# Possible Errors
"comma-dangle": [2, "never"],
"no-console": 0,
"no-extra-parens": [2, "functions"],
"no-inner-declarations": [2, "functions"],

# Best Practices
"accessor-pairs": 2,
"block-scoped-var": 2,
"complexity": [1, 11],
"consistent-return": 1,
"curly": [2, "all"],
"default-case": 2,
"dot-notation": [2, {
"allowKeywords": true,
"allowPattern": "^[a-z]+(_[a-z]+)+$"
}],
"eqeqeq": [2, "smart"],
"guard-for-in": 1,
"no-alert": 2,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-implicit-coercion": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new-func": 1,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-proto": 2,
"no-return-assign": 1,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-useless-call": 1,
"no-void": 2,
"no-warning-comments": [2, {
"terms": ["todo", "fixme", "xxx"],
"location": "start"
}],
"no-with": 2,
"radix": 1,
"wrap-iife": [2, "inside"],
"yoda": [2, "never"],

# Strict Mode
"strict": [2, "global"],

# Variables
"no-undefined": 1,
"no-unused-vars": [1, {
"vars": "all",
"args": "after-used"
}],

# Node.js and CommonJS
"global-require": 1,
"handle-callback-err": 2,
"no-mixed-requires": [0, false],
"no-new-require": 1,

# Stylistic Issues
"array-bracket-spacing": [0, "never"],
"brace-style": [0, "1tbs"],
"computed-property-spacing": [0, "never"],
"consistent-this": [0, "that"],
"func-style": [0, "declaration"],
"indent": [2, 2, {
"SwitchCase": 1
}],
"jsx-quotes": [2, "prefer-single"],
"key-spacing": [0, {
"beforeColon": false,
"afterColon": true
}],
"linebreak-style": [0, "unix"],
"max-depth": [0, 4],
"max-len": [0, 80, 4],
"max-nested-callbacks": [0, 2],
"max-params": [0, 3],
"max-statements": [0, 10],
"new-cap": 2,
"no-mixed-spaces-and-tabs": [2, false],
"no-multiple-empty-lines": [0, {
"max": 2
}],
"object-curly-spacing": [0, "never"],
"one-var": [0, "always"],
"operator-assignment": [0, "always"],
"quotes": [2, "single"],
"semi-spacing": [0, {
"before": false,
"after": true
}],
"semi": [2, "always"],
"space-in-parens": [0, "never"],
"space-unary-ops": [0, {
"words": true,
"nonwords": false
}],

# ECMAScript 6
"no-const-assign": 2,
"no-var": 2,
"object-shorthand": 0, # See Babel
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-reflect": 2,
"prefer-spread": 2,
"prefer-template": 2,

# Babel
"babel/generator-star-spacing": 1,
"babel/new-cap": 1,
"babel/array-bracket-spacing": 1,
"babel/object-curly-spacing": [1, "always"],
"babel/object-shorthand": [1, "always"],
"babel/arrow-parens": 1,
"babel/no-await-in-loop": 1
}
}
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.coverData/*
*.log
*.logs
configuration/env.json
debug/*
lib/*
node_modules/*
reports/*
.coverrun

.idea/*

local-config.json
38 changes: 38 additions & 0 deletions .jsbeautifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"html": {
"indent_char": " ",
"indent_scripts": "normal",
"indent_size": 2,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"brace_style": "collapse",
"unformatted": ["a", "sub", "sup", "b", "i", "u"],
"wrap_line_length": 0
},
"css": {
"indent_char": " ",
"indent_size": 2
},
"js": {
"indent_size": 2,
"indent_char": " ",
"eol": "\n",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": false,
"space_after_anon_function": true,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"break_chained_methods": false,
"eval_code": false,
"unescape_strings": false,
"wrap_line_length": 0,
"wrap_attributes": "auto",
"wrap_attributes_indent_size": 4,
"end_with_newline": true
}
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/*
Empty file added CHANGELOG.md
Empty file.
Loading

0 comments on commit 812cf3b

Please sign in to comment.