Skip to content

Commit e9eba22

Browse files
author
Krasimir Chariyski
committed
Initial commit
1 parent 114b1b4 commit e9eba22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+9060
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
indent_style = space
10+
indent_size = 4
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.* -lf
2+
text eol=lf

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# IDE
2+
.idea
3+
4+
# NodeJS
5+
node_modules
6+
npm-debug.log
7+
8+
# Dependencies
9+
10+
11+
# Temporary folders
12+
temp
13+
.tmp
14+
tests/reports
15+
16+
# App files
17+
**/styles/*.css
18+
FRONTEND.md
19+
20+
# Distribution folders
21+
dist
22+
package

.jscsrc

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"maxErrors": 200,
3+
"disallowEmptyBlocks": true,
4+
"disallowImplicitTypeConversion": [
5+
"string"
6+
],
7+
"disallowKeywords": [
8+
"with"
9+
],
10+
"disallowKeywordsOnNewLine": [
11+
"else"
12+
],
13+
"disallowMixedSpacesAndTabs": true,
14+
"disallowMultipleLineBreaks": true,
15+
"disallowMultipleLineStrings": true,
16+
"disallowMultipleVarDecl": true,
17+
"disallowPaddingNewlinesInBlocks": null,
18+
"disallowSpaceAfterObjectKeys": true,
19+
"disallowSpaceAfterPrefixUnaryOperators": true,
20+
"disallowSpaceBeforeBinaryOperators": null,
21+
"disallowSpaceBeforeBlockStatements": null,
22+
"disallowSpaceBeforePostfixUnaryOperators": true,
23+
"disallowSpacesInConditionalExpression": null,
24+
"disallowSpacesInFunctionDeclaration": null,
25+
"disallowSpacesInNamedFunctionExpression": null,
26+
"disallowSpacesInsideArrayBrackets": "all",
27+
"disallowSpacesInsideObjectBrackets": true,
28+
"disallowSpacesInsideParentheses": null,
29+
"disallowTrailingComma": null,
30+
"disallowTrailingWhitespace": true,
31+
"disallowYodaConditions": true,
32+
"jsDoc": {
33+
"checkAnnotations": "jsdoc3",
34+
"checkParamNames": true,
35+
"checkRedundantAccess": "enforceLeadingUnderscore",
36+
"checkRedundantParams": true,
37+
"checkRedundantReturns": true,
38+
"checkReturnTypes": true,
39+
"checkTypes": "strictNativeCase",
40+
"disallowNewlineAfterDescription": true,
41+
"enforceExistence": true,
42+
"requireDescriptionCompleteSentence": true,
43+
"requireHyphenBeforeDescription": true,
44+
"requireParamTypes": true,
45+
"requireReturnTypes": true
46+
},
47+
"requireBlocksOnNewline": true,
48+
"requireCamelCaseOrUpperCaseIdentifiers": true,
49+
"requireCapitalizedComments": true,
50+
"requireCapitalizedConstructors": true,
51+
"requireCommaBeforeLineBreak": true,
52+
"requireCurlyBraces": [
53+
"if",
54+
"else",
55+
"for",
56+
"while",
57+
"do",
58+
"try",
59+
"catch",
60+
"case",
61+
"default"
62+
],
63+
"requireDotNotation": true,
64+
"requireKeywordsOnNewLine": null,
65+
"requireLineFeedAtFileEnd": true,
66+
"requireOperatorBeforeLineBreak": true,
67+
"requireParenthesesAroundIIFE": true,
68+
"requireSpaceAfterBinaryOperators": true,
69+
"requireSpaceAfterKeywords": [
70+
"if",
71+
"else",
72+
"for",
73+
"while",
74+
"do",
75+
"switch",
76+
"case",
77+
"return",
78+
"try",
79+
"catch",
80+
"typeof"
81+
],
82+
"requireSpaceAfterLineComment": true,
83+
"requireSpaceAfterPrefixUnaryOperators": null,
84+
"requireSpaceBeforeBinaryOperators": true,
85+
"requireSpaceBeforeBlockStatements": true,
86+
"requireSpaceBeforePostfixUnaryOperators": null,
87+
"requireSpacesInAnonymousFunctionExpression": {
88+
"beforeOpeningRoundBrace": true
89+
},
90+
"requireSpacesInConditionalExpression": true,
91+
"requireSpacesInFunctionDeclaration": {
92+
"beforeOpeningCurlyBrace": true
93+
},
94+
"requireSpacesInFunctionExpression": {
95+
"beforeOpeningCurlyBrace": true
96+
},
97+
"requireSpacesInNamedFunctionExpression": {
98+
"beforeOpeningCurlyBrace": true
99+
},
100+
"safeContextKeyword": [
101+
"that"
102+
],
103+
"validateIndentation": 4,
104+
"validateLineBreaks": "LF",
105+
"validateQuoteMarks": true
106+
}

.jshintrc

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
{
2+
// {int} Maximum error before stopping
3+
"maxerr": 100,
4+
5+
// ================================================================================
6+
// Enforcing
7+
// ================================================================================
8+
9+
// true: Prohibit bitwise operators (&, |, ^, etc.)
10+
"bitwise": true,
11+
12+
// true: Identifiers must be in camelCase
13+
"camelcase": true,
14+
15+
// true: Require {} for every new block or scope
16+
"curly": true,
17+
18+
// true: Require triple equals (===) for comparison
19+
"eqeqeq": true,
20+
21+
// true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
22+
"immed": true,
23+
24+
// {int} Number of spaces to use for indentation.
25+
"indent": 4,
26+
27+
// true: Require variables/functions to be defined before being used
28+
"latedef": true,
29+
30+
// true: Require capitalization of all constructor functions e.g. `new F()`
31+
"newcap": true,
32+
33+
// true: Prohibit use of `arguments.caller` and `arguments.callee`
34+
"noarg": true,
35+
36+
// true: Prohibit use of empty blocks
37+
"noempty": true,
38+
39+
// true: Prohibit use of constructors for side-effects (without assignment)
40+
"nonew": false,
41+
42+
// true: Prohibit use of `++` & `--`
43+
"plusplus": false,
44+
45+
// Quotation mark consistency:
46+
"quotmark": "single",
47+
48+
// true: Require all non-global variables to be declared (prevents global leaks)
49+
"undef": true,
50+
51+
// true: Requires all functions run in ES5 Strict Mode
52+
"strict": false,
53+
54+
// {int} Max number of formal params allowed per function
55+
"maxparams": 3,
56+
57+
// {int} Max depth of nested blocks (within functions)
58+
"maxdepth": 3,
59+
60+
// {int} Max number statements per function
61+
"maxstatements": 30,
62+
63+
// {int} Max cyclomatic complexity per function. The cyclomatic complexity of a section of source code is the count
64+
// of the number of linearly independent paths through the source code.
65+
"maxcomplexity": 10,
66+
67+
// ================================================================================
68+
// Relaxing
69+
// ================================================================================
70+
71+
// true: Tolerate Automatic Semicolon Insertion (no semicolons)
72+
"asi": false,
73+
74+
// true: Tolerate assignments where comparisons would be expected
75+
"boss": false,
76+
77+
// true: Allow debugger statements e.g. browser breakpoints.
78+
"debug": true,
79+
80+
// true: Tolerate use of `== null`
81+
"eqnull": false,
82+
83+
// true: Allow ES5 syntax (ex: getters and setters)
84+
"es5": false,
85+
86+
// true: Allow ES.next (ES6) syntax (ex: `const`)
87+
"esnext": true,
88+
89+
// true: Allow Mozilla specific syntax (extends and overrides esnext features)(ex: `for each`, multiple try/catch, function expression…)
90+
"moz": false,
91+
92+
// true: Tolerate use of `eval` and `new Function()`
93+
"evil": false,
94+
95+
// true: Tolerate `ExpressionStatement` as Programs
96+
"expr": true,
97+
98+
// true: Tolerate defining variables inside control statements"
99+
"funcscope": false,
100+
101+
// true: Allow global "use strict" (also enables 'strict')
102+
"globalstrict": false,
103+
104+
// true: Tolerate using the `__iterator__` property
105+
"iterator": false,
106+
107+
// true: Tolerate omitting a semicolon for the last statement of a 1-line block
108+
"lastsemic": false,
109+
110+
// true: Tolerate possibly unsafe line breakings
111+
"laxbreak": false,
112+
113+
// true: Tolerate comma-first style coding
114+
"laxcomma": false,
115+
116+
// true: Tolerate functions being defined in loops
117+
"loopfunc": false,
118+
119+
// true: Tolerate multi-line strings
120+
"multistr": false,
121+
122+
// true: Tolerate using the `__proto__` property
123+
"proto": false,
124+
125+
// true: Tolerate script-targeted URLs
126+
"scripturl": false,
127+
128+
// true: Allows re-define variables later in code e.g. `var x=1; x=2;`
129+
"shadow": false,
130+
131+
// true: Tolerate using `[]` notation when it can still be expressed in dot notation
132+
"sub": false,
133+
134+
// true: Tolerate `new function () { ... };` and `new Object;`
135+
"supernew": false,
136+
137+
// true: Tolerate using this in a non-constructor function
138+
"validthis": false,
139+
140+
// ================================================================================
141+
// Environments
142+
// ================================================================================
143+
144+
// Web Browser (window, document, etc)
145+
"browser": true,
146+
147+
// Development/debugging (alert, confirm, etc)
148+
"devel": true,
149+
150+
// jQuery
151+
"jquery": true,
152+
153+
// Node.js
154+
"node": true,
155+
156+
// Mocha.js
157+
"mocha": true,
158+
159+
// Additional predefined global variables
160+
"globals": {
161+
"chrome": true,
162+
"sap": true,
163+
"expect": true,
164+
"sinon": true,
165+
"should": true,
166+
"Event": true
167+
}
168+
}

0 commit comments

Comments
 (0)