Skip to content

Commit

Permalink
Merge pull request #10 from unic/feature/ESTATICO-170-eslint
Browse files Browse the repository at this point in the history
Introduce ESLint
  • Loading branch information
orioltf committed Jan 25, 2017
2 parents 47d1f40 + b5f83f7 commit 6639f72
Show file tree
Hide file tree
Showing 33 changed files with 596 additions and 881 deletions.
206 changes: 206 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"globals": {
"estatico": true,
"Modernizr": false,
"open": true,
"name": true,
"Promise": false
},
"rules": {
"array-bracket-spacing": [
2,
"never",
{}
],
"block-scoped-var": 0,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": [
2,
{
"properties": "always"
}
],
"comma-dangle": [
2,
"never"
],
"comma-style": [
2,
"last"
],
"complexity": 0,
"curly": [
2,
"all"
],
"dot-location": [
2,
"property"
],
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"indent": [
2,
"tab",
{
"SwitchCase": 1,
"VariableDeclarator": 1
}
],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [
2,
{
"overrides": {
"else": {
"before": true
},
"while": {
"before": true
},
"catch": {
"before": true
},
"in": {
"before": true
}
}
}
],
"linebreak-style": 0,
"lines-around-comment": [
2,
{
"beforeLineComment": true,
"allowBlockStart": true
}
],
"max-depth": [
2,
3
],
"max-len": 0,
"max-params": [
2,
6
],
"max-statements": 0,
"new-cap": 2,
"newline-after-var": [
2,
"always"
],
"no-bitwise": 2,
"no-caller": 2,
"no-cond-assign": 0,
"no-debugger": 0,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-eq-null": 0,
"no-eval": 0,
"no-extend-native": 2,
"no-invalid-this": 0,
"no-irregular-whitespace": 2,
"no-iterator": 0,
"no-loop-func": 0,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 2,
"no-multi-str": 0,
"no-multiple-empty-lines": 2,
"no-new": 2,
"no-new-func": 0,
"no-new-wrappers": 0,
"no-plusplus": 0,
"no-proto": 0,
"no-script-url": 0,
"no-shadow": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-unused-expressions": 0,
"no-unused-vars": 2,
"no-use-before-define": [
2,
{
"functions": false
}
],
"one-var": [
2,
"always"
],
"operator-linebreak": [
2,
"after"
],
"quotes": [
2,
"single"
],
"require-yield": 0,
"semi": [
2,
"always"
],
"space-before-blocks": [
2,
"always"
],
"space-before-function-paren": [
2,
{
"anonymous": "ignore",
"named": "never"
}
],
"space-in-parens": [
2,
"never"
],
"space-infix-ops": 2,
"space-unary-ops": [
2,
{
"words": false,
"nonwords": false
}
],
"spaced-comment": [
2,
"always"
],
"strict": 0,
"valid-typeof": 0,
"wrap-iife": 2,
"yoda": [
2,
"never"
]
}
}
169 changes: 0 additions & 169 deletions .jscsrc

This file was deleted.

0 comments on commit 6639f72

Please sign in to comment.