change linter to standard

This commit is contained in:
Unknown
2018-11-12 10:28:59 +00:00
parent 19f3edf55a
commit 04d80c7c2f
19 changed files with 837 additions and 691 deletions

View File

@@ -7,25 +7,10 @@
"dev": "nodemon -w src --exec \"babel-node src\"",
"build": "npx babel src -d dist",
"start": "node dist",
"lint": "eslint src",
"lint": "standard \"src/**/*.js\"",
"test-watch": "ava --watch",
"test": "ava --verbose"
},
"eslintConfig": {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"rules": {
"no-console": 0,
"no-unused-vars": 1
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/developit/express-es6-rest-api.git"
@@ -54,8 +39,8 @@
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"ava": "1.0.0-beta.8",
"eslint": "^3.1.1",
"nodemon": "^1.9.2"
"nodemon": "^1.9.2",
"standard": "^12.0.1"
},
"babel": {
"presets": [