|
12 | 12 | "build:lib6": "tsc --target es2015 --outDir dist6", |
13 | 13 | "build:watch": "tsc --watch", |
14 | 14 | "clean": "rm -rf dist dist6", |
15 | | - "lint": "tslint -c tslint.full.json --project tsconfig.json --type-check", |
16 | | - "lint:fix": "npm run lint -- --fix", |
| 15 | + "lint": "npm run prettier:check && npm run tslint", |
| 16 | + "lint:fix": "npm run prettier:fix && npm run tslint:fix", |
| 17 | + "prettier:cli": "prettier \"**/*.ts\" \"**/*.js\" \"**/*.json\"", |
| 18 | + "prettier:check": "npm run prettier:cli -- -l", |
| 19 | + "prettier:fix": "npm run prettier:cli -- --write", |
| 20 | + "tslint": "tslint -c tslint.full.json --project tsconfig.json --type-check", |
| 21 | + "tslint:fix": "npm run lint -- --fix", |
17 | 22 | "prepublish": "npm run build", |
18 | 23 | "pretest": "npm run clean && npm run build", |
19 | 24 | "test": "mocha", |
|
22 | 27 | }, |
23 | 28 | "repository": { |
24 | 29 | "type": "git", |
25 | | - "url": |
26 | | - "git+https://github.com/strongloop/loopback-next-extension-starter.git" |
| 30 | + "url": "git+https://github.com/strongloop/loopback-next-extension-starter.git" |
27 | 31 | }, |
28 | 32 | "author": "", |
29 | 33 | "license": "MIT", |
30 | 34 | "bugs": { |
31 | | - "url": |
32 | | - "https://github.com/strongloop/loopback-next-extension-starter/issues" |
| 35 | + "url": "https://github.com/strongloop/loopback-next-extension-starter/issues" |
33 | 36 | }, |
34 | | - "homepage": |
35 | | - "https://github.com/strongloop/loopback-next-extension-starter#readme", |
36 | | - "files": ["README.md", "index.js", "index.d.ts", "dist", "dist6"], |
| 37 | + "homepage": "https://github.com/strongloop/loopback-next-extension-starter#readme", |
| 38 | + "files": [ |
| 39 | + "README.md", |
| 40 | + "index.js", |
| 41 | + "index.d.ts", |
| 42 | + "dist", |
| 43 | + "dist6" |
| 44 | + ], |
37 | 45 | "dependencies": { |
38 | 46 | "@loopback/context": "^4.0.0-alpha.14", |
39 | 47 | "@loopback/core": "^4.0.0-alpha.16", |
|
44 | 52 | "@loopback/testlab": "^4.0.0-alpha.9", |
45 | 53 | "@types/mocha": "^2.2.43", |
46 | 54 | "mocha": "^3.5.3", |
| 55 | + "prettier": "^1.7.4", |
47 | 56 | "tslint": "^5.7.0", |
48 | 57 | "typescript": "^2.5.2" |
49 | 58 | } |
|
0 commit comments