diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..daaaeb71 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,20 @@ +module.exports = { + "env": { + "browser": true, + "es6": true + }, + "extends": "standard", + "plugins": [ + "standard", + "promise" + ], + "globals": { + "DISQUS": true + }, + "rules": { + "semi": "off", + "space-before-function-paren": "off", + "no-tabs": "off", + "indent": ["error", "tab"] + } +}; \ No newline at end of file diff --git a/package.json b/package.json index 7c11d86e..a62fdb0e 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,10 @@ "babel-cli": "^6.6.5", "babel-loader": "^6.2.2", "cssnano": "^3.4.0", + "eslint": "^3.9.1", + "eslint-config-standard": "^6.2.1", + "eslint-plugin-promise": "^3.3.1", + "eslint-plugin-standard": "^2.0.1", "gulp": "^3.8.10", "gulp-concat": "^2.4.1", "gulp-if": "^2.0.0",