-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from codex-js-modules/initial
Initial
- Loading branch information
Showing
7 changed files
with
405 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
/** Enable ES6 features */ | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"classes": true | ||
} | ||
}, | ||
"rules": { | ||
|
||
"arrow-spacing": [2, { | ||
"before": true, | ||
"after": true | ||
}], | ||
|
||
/** Variables */ | ||
"no-catch-shadow": 2, | ||
"no-delete-var": 2, | ||
"no-label-var": 2, | ||
"no-shadow-restricted-names": 2, | ||
"no-shadow": 2, | ||
"no-undef-init": 2, | ||
"no-undef": 2, | ||
"no-unused-vars": 1, | ||
|
||
/** Style */ | ||
"array-bracket-spacing": [2, "never", { | ||
"singleValue": true, | ||
"objectsInArrays": true, | ||
"arraysInArrays": true | ||
}], | ||
"quotes": [1, "single", "avoid-escape"], | ||
"eqeqeq": 0, | ||
"brace-style": [2, "1tbs"], | ||
|
||
"comma-spacing": [2, { | ||
"before": false, | ||
"after": true | ||
}], | ||
"comma-style": [2, "last"], | ||
"eol-last": 0, | ||
"no-nested-ternary": 1, | ||
"no-trailing-spaces": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"padded-blocks": [2, "never"], | ||
"space-before-blocks": 1, | ||
"space-before-function-paren": [1, { | ||
"anonymous": "always", | ||
"named": "never" | ||
}], | ||
"spaced-comment": [2, "always", { | ||
"exceptions": ["-", "+"], | ||
"markers": ["=", "!"] | ||
}], | ||
"semi": [2, "always"], | ||
"indent": [2, 2, { | ||
"SwitchCase": 1, | ||
"VariableDeclarator": 2 | ||
}], | ||
"camelcase": [2, { | ||
"properties": "always" | ||
}], | ||
"newline-after-var": [1, "always"], | ||
"require-jsdoc": ["error", { | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true, | ||
"ArrowFunctionExpression": false | ||
} | ||
}] | ||
|
||
}, | ||
"globals": { | ||
"document": true, | ||
"module": true, | ||
"require": true, | ||
"window": true, | ||
"console": true, | ||
"define": true, | ||
"FormData": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
/* | ||
* ENVIRONMENTS | ||
* ================= | ||
*/ | ||
|
||
// Define globals exposed by modern browsers. | ||
"browser": true, | ||
|
||
// Define globals exposed by Node.js. | ||
"node": true, | ||
|
||
// Define globals exposed by CodeX Team | ||
"predef": [], | ||
|
||
// Allow ES6. | ||
"esversion": 6, | ||
|
||
/* | ||
* ENFORCING OPTIONS | ||
* ================= | ||
*/ | ||
|
||
// Force all variable names to use either camelCase style or UPPER_CASE | ||
// with underscores. | ||
"camelcase": true, | ||
|
||
// Prohibit use of == and != in favor of === and !==. | ||
"eqeqeq": true, | ||
|
||
// Enforce tab width of 2 spaces. | ||
"indent": 2, | ||
|
||
// Prohibit use of a variable before it is defined. | ||
"latedef": true, | ||
|
||
// Enforce line length to 100 characters | ||
"maxlen": 120, | ||
|
||
// Require capitalized names for constructor functions. | ||
"newcap": true, | ||
|
||
// Enforce use of single quotation marks for strings. | ||
"quotmark": "single", | ||
|
||
// Enforce placing 'use strict' at the top function scope | ||
"strict": true, | ||
|
||
// Prohibit use of explicitly undeclared variables. | ||
"undef": true, | ||
|
||
// Warn when variables are defined but never used. | ||
"unused": true, | ||
|
||
/* | ||
* RELAXING OPTIONS | ||
* ================= | ||
*/ | ||
|
||
// Suppress warnings about == null comparisons. | ||
"eqnull": true | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.