diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..f406394 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,29 @@ +module.exports = { + "env": { + "browser": true, + "commonjs": true, + "es6": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "sourceType": "module" + }, + "rules": { + "indent": [ + "error", + "tab" + ], + "linebreak-style": [ + "error", + "windows" + ], + "quotes": [ + "error", + "double" + ], + "semi": [ + "error", + "always" + ] + } +}; \ No newline at end of file diff --git a/package.json b/package.json index 7db8d46..f3b8786 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "start": "node ./bin/www", - "dev": "nodemon --inspect ./bin/www" + "dev": "nodemon --inspect ./bin/www", + "eslint": "eslint ./bin/www" }, "dependencies": { "body-parser": "~1.17.1",