feat: eslint config (airbnb), adds cache option for lint npm script

This commit is contained in:
Simon Reinsperger
2017-03-07 16:12:39 +01:00
parent 3187d066a0
commit 1e87dfdb6b
3 changed files with 11 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
"clean": "npm run clean:public",
"copy:files": "find ./pages -maxdepth 1 -type f -regextype posix-extended -regex '.+\\.(pdf|txt|png|jpg|jpeg|gif)$' -exec cp -v {} ./public ';'",
"copy": "npm run copy:files",
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
"lint": "./node_modules/.bin/eslint --cache --ext .js,.jsx --ignore-pattern public .",
"test": "echo \"Error: no test specified\" && exit 1",
"deploy": "gatsby build --prefix-links && gh-pages -d public"
},