diff --git a/.eslintrc b/.eslintrc
index 7db87fb..a2e522c 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -7,7 +7,10 @@
"extends": "airbnb",
"rules": {
"no-underscore-dangle": 0,
- "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
+ "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
+ "import/prefer-default-export": 1,
+ "import/no-extraneous-dependencies": 1,
+ "no-await-in-loop": 1
},
"plugins": ["react"],
"settings": {
diff --git a/.gitignore b/.gitignore
index ba2a97b..cd33ac2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
node_modules
coverage
+/dist/*
\ No newline at end of file
diff --git a/jest/cssTransform.js b/jest/cssTransform.js
index 24f3811..6f1e714 100644
--- a/jest/cssTransform.js
+++ b/jest/cssTransform.js
@@ -1,8 +1,8 @@
module.exports = {
process() {
- return 'module.exports = {};'
+ return 'module.exports = {};';
},
getCacheKey() {
- return 'cssTransform'
+ return 'cssTransform';
},
-}
+};
diff --git a/jest/fileTransform.js b/jest/fileTransform.js
index 98f79ba..dee01da 100644
--- a/jest/fileTransform.js
+++ b/jest/fileTransform.js
@@ -1,7 +1,7 @@
-const path = require('path')
+const path = require('path');
module.exports = {
process(src, filename) {
- return `module.exports = ${JSON.stringify(path.basename(filename))};`
+ return `module.exports = ${JSON.stringify(path.basename(filename))};`;
},
-}
\ No newline at end of file
+};
diff --git a/package.json b/package.json
index 146f983..ed6f6cf 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,8 @@
"start": "webpack-dev-server",
"test": "jest",
"test-update-snapshots": "jest --updateSnapshot",
- "deploy": "npm run build && gh-pages -d dist"
+ "deploy": "npm run build && gh-pages -d dist",
+ "lint": "./node_modules/.bin/eslint ."
},
"babel": {
"presets": [
diff --git a/public/blank.html b/public/blank.html
index a25ee66..282005b 100644
--- a/public/blank.html
+++ b/public/blank.html
@@ -8,7 +8,9 @@