Skip to content

Node.js based forum software built for the modern web

Add npm script to run eslint

Mathias Schreck159da18e9f84
diff --git a/.gitignore b/.gitignore
index a83a93d01f..510c95a201 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@ provision.sh
*.komodoproject
.DS_Store
feeds/recent.rss
+.eslintcache
logs/
@@ -51,4 +52,4 @@ tx.exe
.transifexrc
##Coverage output
-coverage
\ No newline at end of file
+coverage
diff --git a/package.json b/package.json
index e581eeb255..6b4ad6bfcf 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,7 @@
"main": "app.js",
"scripts": {
"start": "node loader.js",
+ "lint": "eslint --cache .",
"test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- ./tests -t 10000"
},
"dependencies": {