Adding basic ESLint config

This commit is contained in:
Peter deHaan 2017-06-07 11:26:40 -07:00
parent e077160a47
commit 837be5aa7b
No known key found for this signature in database
GPG key ID: F0FC6C01C6305097
4 changed files with 1225 additions and 747 deletions

View file

@ -23,14 +23,21 @@
"browserify": "^14.4.0",
"buffer-shims": "^1.0.0",
"cross-env": "^5.0.0",
"prettier": "^1.3.1",
"eslint": "3.19.0",
"eslint-plugin-node": "5.0.0",
"eslint-plugin-security": "1.3.0",
"prettier": "1.4.4",
"watchify": "^3.9.0"
},
"engines": {
"node": ">=8.0.0"
},
"license": "MPL-2.0",
"repository": "mozilla/something-awesome",
"scripts": {
"format": "prettier --single-quote --write 'frontend/src/*.js' 'server/*.js'",
"dev": "watchify frontend/src/main.js -o public/bundle.js -d | node server/portal_server.js",
"format": "prettier 'frontend/src/*.js' 'server/*.js' 'public/*.css' --single-quote --write",
"lint": "eslint .",
"start": "watchify frontend/src/main.js -o public/bundle.js -d | cross-env NODE_ENV=production node server/portal_server.js",
"test": "echo \"Error: no test specified\" && exit 1"
}