Browse Source

add react eslint support

Gregg Tavares 6 years ago
parent
commit
d0c06efc03
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .eslintrc.js

+ 4 - 0
.eslintrc.js

@@ -5,8 +5,12 @@ module.exports = {
   },
   "parserOptions": {
     "ecmaVersion": 8,
+    "ecmaFeatures": {
+      "jsx": true
+    },
   },
   "plugins": [
+    "eslint-plugin-react",
     "eslint-plugin-html",
     "eslint-plugin-optional-comma-spacing",
     "eslint-plugin-one-variable-per-var",