diff --git a/dotfiles/.eslintrc b/dotfiles/.eslintrc index 48fbcd2..56c6d85 100644 --- a/dotfiles/.eslintrc +++ b/dotfiles/.eslintrc @@ -116,6 +116,7 @@ "react/display-name": 0, "react/jsx-uses-react": 1, "react/jsx-pascal-case": 2, + "react/prefer-es6-class": 2, "semi": 1, "strict": [2, "global"], "use-isnan": 2, diff --git a/es5/fix.js b/es5/fix.js index 9798a94..5675667 100644 --- a/es5/fix.js +++ b/es5/fix.js @@ -29,7 +29,8 @@ var es5Options = { sourceType: 'script' }, rules: { - 'react/display-name': 2 + 'react/display-name': 2, + "react/prefer-es6-class": 0, } } };