summaryrefslogtreecommitdiffstats
path: root/webapp/.eslintrc.json
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-09-23 12:29:54 -0400
committerGitHub <noreply@github.com>2016-09-23 12:29:54 -0400
commit93f2b6a83302ceef5c98be4fb696840608ad3bc3 (patch)
tree89e86c5983058189f032c817573bfd945491b4e7 /webapp/.eslintrc.json
parent214f9c13a261064733c23d762fa521444fbd7a9c (diff)
downloadchat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.tar.gz
chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.tar.bz2
chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.zip
Updating ESLint (#4085)
Diffstat (limited to 'webapp/.eslintrc.json')
-rw-r--r--webapp/.eslintrc.json31
1 files changed, 25 insertions, 6 deletions
diff --git a/webapp/.eslintrc.json b/webapp/.eslintrc.json
index c5c100e6e..2762483ef 100644
--- a/webapp/.eslintrc.json
+++ b/webapp/.eslintrc.json
@@ -36,6 +36,7 @@
"block-scoped-var": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"camelcase": [2, {"properties": "never"}],
+ "class-methods-use-this": 1,
"comma-dangle": [2, "never"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
@@ -48,6 +49,7 @@
"dot-location": [2, "object"],
"dot-notation": 2,
"eqeqeq": [2, "smart"],
+ "func-call-spacing": [2, "never"],
"func-names": 2,
"func-style": [2, "declaration"],
"generator-star-spacing": [2, {"before": false, "after": true}],
@@ -56,14 +58,16 @@
"id-blacklist": 0,
"indent": [2, 4, {"SwitchCase": 0}],
"jsx-quotes": [2, "prefer-single"],
- "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
+ "key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "strict"}],
"keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
+ "line-comment-position": 0,
"linebreak-style": 2,
"lines-around-comment": [2, { "beforeBlockComment": true, "beforeLineComment": true, "allowBlockStart": true, "allowBlockEnd": true }],
"max-lines": [1, {"max": 450, "skipBlankLines": true, "skipComments": false}],
"max-nested-callbacks": [1, {"max":1}],
"max-nested-callbacks": [2, {"max":2}],
"max-statements-per-line": [2, {"max": 1}],
+ "multiline-ternary": [1, "never"],
"new-cap": 2,
"new-parens": 2,
"newline-before-return": 0,
@@ -99,6 +103,8 @@
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-func-assign": 2,
+ "no-global-assign": 2,
+ "no-implicit-coercion": 2,
"no-implicit-globals": 0,
"no-implied-eval": 2,
"no-inner-declarations": 0,
@@ -131,12 +137,14 @@
"no-redeclare": 2,
"no-return-assign": [2, "always"],
"no-script-url": 2,
- "no-self-assign": 2,
+ "no-self-assign": [2, {"props": true}],
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": [2, {"hoist": "functions"}],
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
+ "no-tabs": 0,
+ "no-template-curly-in-string": 2,
"no-ternary": 0,
"no-this-before-super": 2,
"no-throw-literal": 2,
@@ -149,6 +157,7 @@
"no-unneeded-ternary": [2, {"defaultAssignment": false}],
"no-unreachable": 2,
"no-unsafe-finally": 2,
+ "no-unsafe-negation": 2,
"no-unused-expressions": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"],
@@ -172,6 +181,7 @@
"padded-blocks": [2, "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
+ "prefer-numeric-literals": 2,
"prefer-reflect": 2,
"prefer-rest-params": 2,
"prefer-spread": 2,
@@ -184,6 +194,7 @@
"react/jsx-closing-bracket-location": [2, { "location": "tag-aligned" }],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-equals-spacing": [2, "never"],
+ "react/jsx-filename-extension": 2,
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-handler-names": 0,
"react/jsx-indent": [2, 4],
@@ -196,11 +207,10 @@
"react/jsx-no-target-blank": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
- "react/jsx-filename-extension": 2,
"react/jsx-space-before-closing": [2, "never"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
- "react/no-comment-textnodes": 2,
+ "react/jsx-no-comment-textnodes": 2,
"react/no-danger": 0,
"react/no-deprecated": 2,
"react/no-did-mount-set-state": 2,
@@ -219,19 +229,28 @@
"react/require-render-return": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 0,
- "react/wrap-multilines": 2,
+ "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"],
"semi-spacing": [2, {"before": false, "after": true}],
"sort-imports": 0,
+ "sort-keys": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
+ "symbol-description": 2,
"template-curly-spacing": [2, "never"],
- "valid-typeof": 2,
+ "valid-typeof": [2, {"requireStringLiterals": false}],
"vars-on-top": 0,
"wrap-iife": [2, "outside"],
"wrap-regex": 2,