summaryrefslogtreecommitdiffstats
path: root/webapp/.eslintrc.json
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-11-17 12:02:16 -0500
committerGitHub <noreply@github.com>2016-11-17 12:02:16 -0500
commita7987149582a42e0f6d05813bc0f61fcdd6f805c (patch)
treeec862778a119f86c21943db625839bae31de5bb9 /webapp/.eslintrc.json
parentb1db1463f6e858b535d291d3f442eaf8a05bc410 (diff)
downloadchat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.tar.gz
chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.tar.bz2
chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.zip
Updating eslint (#4573)
Diffstat (limited to 'webapp/.eslintrc.json')
-rw-r--r--webapp/.eslintrc.json26
1 files changed, 15 insertions, 11 deletions
diff --git a/webapp/.eslintrc.json b/webapp/.eslintrc.json
index 2762483ef..183df2017 100644
--- a/webapp/.eslintrc.json
+++ b/webapp/.eslintrc.json
@@ -1,12 +1,13 @@
{
"extends": "eslint:recommended",
"parserOptions": {
- "ecmaVersion": 6,
+ "ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true,
- "modules": true
+ "modules": true,
+ "experimentalObjectRestSpread": true
}
},
"parser": "babel-eslint",
@@ -50,6 +51,7 @@
"dot-notation": 2,
"eqeqeq": [2, "smart"],
"func-call-spacing": [2, "never"],
+ "func-name-matching": 0,
"func-names": 2,
"func-style": [2, "declaration"],
"generator-star-spacing": [2, {"before": false, "after": true}],
@@ -136,6 +138,7 @@
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": [2, "always"],
+ "no-return-await": 2,
"no-script-url": 2,
"no-self-assign": [2, {"props": true}],
"no-self-compare": 2,
@@ -166,6 +169,7 @@
"no-useless-constructor": 2,
"no-useless-escape": 2,
"no-useless-rename": 2,
+ "no-useless-return": 2,
"no-var": 0,
"no-void": 2,
"no-warning-comments": 1,
@@ -182,7 +186,6 @@
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-numeric-literals": 2,
- "prefer-reflect": 2,
"prefer-rest-params": 2,
"prefer-spread": 2,
"prefer-template": 0,
@@ -190,6 +193,7 @@
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"react/display-name": [2, { "ignoreTranspilerName": false }],
+ "react/forbid-component-props": 0,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-closing-bracket-location": [2, { "location": "tag-aligned" }],
"react/jsx-curly-spacing": [2, "never"],
@@ -202,26 +206,33 @@
"react/jsx-key": 2,
"react/jsx-max-props-per-line": [2, { "maximum": 1 }],
"react/jsx-no-bind": 0,
+ "react/jsx-no-comment-textnodes": 2,
"react/jsx-no-duplicate-props": [2, { "ignoreCase": false }],
"react/jsx-no-literals": 2,
"react/jsx-no-target-blank": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-space-before-closing": [2, "never"],
+ "react/jsx-tag-spacing": [2, { "closingSlash": "never", "beforeSelfClosing": "never", "afterOpening": "never" }],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
- "react/jsx-no-comment-textnodes": 2,
+ "react/jsx-wrap-multilines": 2,
+ "react/no-children-prop": 2,
"react/no-danger": 0,
+ "react/no-danger-with-children": 2,
"react/no-deprecated": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
+ "react/no-find-dom-node": 1,
"react/no-is-mounted": 2,
"react/no-multi-comp": [2, { "ignoreStateless": true }],
"react/no-render-return-value": 2,
"react/no-set-state": 0,
"react/no-string-refs": 0,
+ "react/no-unescaped-entities": 2,
"react/no-unknown-property": 2,
+ "react/no-unused-prop-types": [1, {"skipShapeProps": true}],
"react/prefer-es6-class": 2,
"react/prefer-stateless-function": 0,
"react/prop-types": 2,
@@ -229,14 +240,7 @@
"react/require-render-return": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 0,
- "react/jsx-wrap-multilines": 2,
- "react/no-find-dom-node": 1,
- "react/forbid-component-props": 0,
- "react/no-danger-with-children": 2,
- "react/no-unused-prop-types": [1, {"skipShapeProps": true}],
"react/style-prop-object": 2,
- "react/no-children-prop": 2,
- "react/no-unescaped-entities": 2,
"require-yield": 2,
"rest-spread-spacing": [2, "never"],
"semi": [2, "always"],