diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-11-23 10:39:41 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-11-23 10:39:41 -0500 |
commit | 60e2314baaa17fe972f13e6f763e08e03e356c8a (patch) | |
tree | f738fe9515de8277b080fa5a36b9cc56f17fbb20 /web/react/.eslintrc | |
parent | 4b3a3941e04803539f39c057a5c0d44cd30699be (diff) | |
parent | eebec713606de38c1c82a0e199442294c87b45d5 (diff) | |
download | chat-60e2314baaa17fe972f13e6f763e08e03e356c8a.tar.gz chat-60e2314baaa17fe972f13e6f763e08e03e356c8a.tar.bz2 chat-60e2314baaa17fe972f13e6f763e08e03e356c8a.zip |
Merge pull request #1498 from mattermost/eslint-updates
ESLint updates. Enable no magic numbers as warning. Ignore stateless components.
Diffstat (limited to 'web/react/.eslintrc')
-rw-r--r-- | web/react/.eslintrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/.eslintrc b/web/react/.eslintrc index 29ca97faf..935bb638a 100644 --- a/web/react/.eslintrc +++ b/web/react/.eslintrc @@ -47,7 +47,7 @@ "no-irregular-whitespace": 2, "no-unexpected-multiline": 2, "no-unreachable": 2, - "no-magic-numbers": [0, { "enforceConst": true, "detectObjects": true } ], + "no-magic-numbers": [1, { "enforceConst": true, "detectObjects": true } ], "valid-typeof": 2, "block-scoped-var": 2, @@ -190,7 +190,7 @@ "react/no-did-mount-set-state": 2, "react/no-did-update-set-state": 2, "react/no-direct-mutation-state": 2, - "react/no-multi-comp": 2, + "react/no-multi-comp": [2, { "ignoreStateless": true }], "react/no-set-state": 0, "react/no-unknown-property": 2, "react/prefer-es6-class": 2, |