From 6f4b9ec2f4b570f4c92333aa104d252b77b1e327 Mon Sep 17 00:00:00 2001 From: Martin Paulucci Date: Fri, 1 Apr 2016 14:04:34 -0700 Subject: [PATCH] Disable react/display-name since we use ES6 classes. --- dist/.eslintrc | 1 + dist/es5/.eslintrc | 1 + dotfiles/.eslintrc | 1 + es5/fix.js | 3 +++ 4 files changed, 6 insertions(+) diff --git a/dist/.eslintrc b/dist/.eslintrc index 672842ce..c463a178 100644 --- a/dist/.eslintrc +++ b/dist/.eslintrc @@ -109,6 +109,7 @@ "no-with": 2, "prefer-const": 1, "radix": 2, + "react/display-name": 0, "react/jsx-uses-react": 1, "strict": [2,"global"], "use-isnan": 2, diff --git a/dist/es5/.eslintrc b/dist/es5/.eslintrc index 95774aa0..3f0f7478 100644 --- a/dist/es5/.eslintrc +++ b/dist/es5/.eslintrc @@ -189,6 +189,7 @@ "no-with": 2, "prefer-const": 1, "radix": 2, + "react/display-name": 2, "react/jsx-uses-react": 1, "strict": [ 2, diff --git a/dotfiles/.eslintrc b/dotfiles/.eslintrc index 7aec0da5..2f727c41 100644 --- a/dotfiles/.eslintrc +++ b/dotfiles/.eslintrc @@ -112,6 +112,7 @@ "no-with": 2, "prefer-const": 1, "radix": 2, + "react/display-name": 0, "react/jsx-uses-react": 1, "strict": [2, "global"], "use-isnan": 2, diff --git a/es5/fix.js b/es5/fix.js index ab48c608..9798a94d 100644 --- a/es5/fix.js +++ b/es5/fix.js @@ -27,6 +27,9 @@ var es5Options = { parserOptions: { ecmaVersion: 5, sourceType: 'script' + }, + rules: { + 'react/display-name': 2 } } };