Skip to content

Commit

Permalink
chore(package.json): updated eslint to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Madruga committed Jul 22, 2018
1 parent 7fde25b commit cd3a332
Show file tree
Hide file tree
Showing 3 changed files with 454 additions and 411 deletions.
53 changes: 15 additions & 38 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,9 @@
"sourceType": "module"
},

"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": false,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": false,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
},

"rules": {
"block-scoped-var": [0],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [0],
"comma-dangle": [0],
"comma-spacing": [2],
Expand All @@ -47,17 +22,17 @@
"consistent-this": [0, "that"],
"curly": [2, "multi-line"],
"default-case": [2],
"dot-notation": [2, {"allowKeywords": true}],
"dot-notation": [2, { "allowKeywords": true }],
"eol-last": [2],
"eqeqeq": [2],
"func-names": [0],
"func-style": [0, "declaration"],
"generator-star-spacing": [2, "after"],
"guard-for-in": [0],
"handle-callback-err": [0],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2],
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"max-depth": [0, 4],
"max-len": [0, 80, 4],
"max-nested-callbacks": [0, 2],
Expand Down Expand Up @@ -110,7 +85,7 @@
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": [2],
"no-multi-str": [2],
"no-multiple-empty-lines": [2, {"max": 2}],
"no-multiple-empty-lines": [2, { "max": 2 }],
"no-native-reassign": [1],
"no-negated-in-lhs": [2],
"no-nested-ternary": [0],
Expand Down Expand Up @@ -150,10 +125,10 @@
"no-underscore-dangle": [2],
"no-unreachable": [2],
"no-unused-expressions": [2],
"no-unused-vars": [1, {"vars": "all", "args": "after-used"}],
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
"no-use-before-define": [2],
"no-void": [0],
"no-warning-comments": [0, {"terms": ["todo", "fixme", "xxx"], "location": "start"}],
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
"no-with": [2],
"no-extra-parens": [0],
"one-var": [0],
Expand All @@ -163,12 +138,14 @@
"quote-props": [0],
"radix": [0],
"semi": [2],
"semi-spacing": [2, {"before": false, "after": true}],
"semi-spacing": [2, { "before": false, "after": true }],
"sort-vars": [0],
"space-before-function-paren": [2, {"anonymous": "always", "named": "always"}],
"space-before-function-paren": [2, { "anonymous": "always", "named": "always" }],
"space-before-blocks": [0, "always"],
"space-in-brackets": [
0, "never", {
0,
"never",
{
"singleValue": true,
"arraysInArrays": false,
"arraysInObjects": false,
Expand All @@ -179,7 +156,7 @@
],
"space-in-parens": [0],
"space-infix-ops": [2],
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-line-comment": [0, "always"],
"strict": [2, "never"],
"use-isnan": [2],
Expand All @@ -188,6 +165,6 @@
"vars-on-top": [0],
"wrap-iife": [2],
"wrap-regex": [2],
"yoda": [2, "never", {"exceptRange": true}]
"yoda": [2, "never", { "exceptRange": true }]
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"homepage": "https://github.com/pmadruga/react-native-clean-project#readme",
"devDependencies": {
"eslint": "^3.12.2"
"eslint": "5.2.0"
}
}
Loading

0 comments on commit cd3a332

Please sign in to comment.