diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000..ae17938
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,20 @@
+{
+ "root": true,
+ "extends": [
+ "wordpress",
+ "plugin:react/recommended"
+ ],
+ "parserOptions": {
+ "ecmaVersion": 6,
+ "sourceType": "module",
+ "ecmaFeatures": {
+ "jsx": true
+ }
+ },
+ "plugins": [
+ "react"
+ ],
+ "rules": {
+ "react/react-in-jsx-scope": "off"
+ }
+};
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 653d5c3..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = {
- extends: 'wordpress',
- root: true
-};
diff --git a/blocks/activity-list/index.js b/blocks/activity-list/index.js
index 133a5f9..1754339 100644
--- a/blocks/activity-list/index.js
+++ b/blocks/activity-list/index.js
@@ -214,5 +214,5 @@ export default registerBlockType(
save() {
return renderStaticActivityList();
}
- },
+ }
);
diff --git a/blocks/discover/index.js b/blocks/discover/index.js
index 842281f..5d7a293 100644
--- a/blocks/discover/index.js
+++ b/blocks/discover/index.js
@@ -1,3 +1,4 @@
+
/**
* Internal block libraries.
*/
@@ -49,5 +50,5 @@ export default registerBlockType(
save() {
return renderStaticDiscoverBlock();
}
- },
+ }
);
diff --git a/blocks/featured/index.js b/blocks/featured/index.js
index a6cdf2b..cf7a5a7 100644
--- a/blocks/featured/index.js
+++ b/blocks/featured/index.js
@@ -102,5 +102,5 @@ export default registerBlockType(
// @todo WARNING: If the user does not have unfiltered_html, then the amp-img elements will be removed from the saved post_content! Should wp_kses_allowed_html be filtered to allow all AMP elements and attributes that will be used in blocks here?
return renderStaticFeaturedBlock();
}
- },
+ }
);
diff --git a/blocks/hero/index.js b/blocks/hero/index.js
index b215225..8324b92 100644
--- a/blocks/hero/index.js
+++ b/blocks/hero/index.js
@@ -182,5 +182,5 @@ export default registerBlockType(
);
}
- },
+ }
);
diff --git a/blocks/popular/index.js b/blocks/popular/index.js
index 4efda6a..2572387 100644
--- a/blocks/popular/index.js
+++ b/blocks/popular/index.js
@@ -21,7 +21,7 @@ export default registerBlockType(
__( 'Travel' )
],
- edit: props => {
+ edit() {
return (