Skip to content

Commit

Permalink
Merge pull request #1 from codex-js-modules/initial
Browse files Browse the repository at this point in the history
Initial
  • Loading branch information
talyguryn authored Oct 28, 2017
2 parents 4748817 + 273eb61 commit e102b10
Show file tree
Hide file tree
Showing 7 changed files with 405 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .eslintrc
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
}
}
62 changes: 62 additions & 0 deletions .jshintrc
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
}
2 changes: 2 additions & 0 deletions lib/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e102b10

Please sign in to comment.