|
6 | 6 | "main": "dist/redaxios.js", |
7 | 7 | "umd:main": "dist/redaxios.umd.js", |
8 | 8 | "module": "dist/redaxios.module.js", |
| 9 | + "types": "dist/index.d.ts", |
9 | 10 | "scripts": { |
10 | | - "build": "microbundle", |
11 | | - "test": "eslint src test && karmatic", |
12 | | - "release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish" |
| 11 | + "build": "microbundle && tsc", |
| 12 | + "test": "npm run format:check && eslint src test && karmatic", |
| 13 | + "release": "npm t && git commit -am \"$npm_package_version\" && git tag $npm_package_version && git push && git push --tags && npm publish", |
| 14 | + "format": "prettier --write './**/*.{js,json,yml,md}'", |
| 15 | + "format:check": "prettier --check './**/*.{js,json,yml,md}'" |
13 | 16 | }, |
14 | 17 | "files": [ |
15 | 18 | "dist", |
16 | 19 | "src" |
17 | 20 | ], |
18 | 21 | "eslintConfig": { |
19 | | - "extends": "developit" |
| 22 | + "extends": [ |
| 23 | + "developit", |
| 24 | + "prettier" |
| 25 | + ], |
| 26 | + "rules": { |
| 27 | + "jest/no-jasmine-globals": "off" |
| 28 | + } |
| 29 | + }, |
| 30 | + "prettier": { |
| 31 | + "arrowParens": "always", |
| 32 | + "trailingComma": "none", |
| 33 | + "singleQuote": true, |
| 34 | + "endOfLine": "lf", |
| 35 | + "useTabs": true, |
| 36 | + "printWidth": 120, |
| 37 | + "overrides": [ |
| 38 | + { |
| 39 | + "files": "**/*.json", |
| 40 | + "options": { |
| 41 | + "parser": "json-stringify", |
| 42 | + "useTabs": false, |
| 43 | + "tabWidth": 2 |
| 44 | + } |
| 45 | + } |
| 46 | + ] |
20 | 47 | }, |
21 | 48 | "repository": "developit/redaxios", |
22 | 49 | "keywords": [ |
|
27 | 54 | "license": "Apache-2.0", |
28 | 55 | "homepage": "https://github.com/developit/redaxios", |
29 | 56 | "devDependencies": { |
| 57 | + "@types/jest": "^26.0.4", |
| 58 | + "core-js": "2.6.11", |
30 | 59 | "eslint": "^6.8.0", |
31 | 60 | "eslint-config-developit": "^1.1.1", |
| 61 | + "eslint-config-prettier": "6.11.0", |
32 | 62 | "file-loader": "^5.0.2", |
33 | 63 | "isomorphic-fetch": "^2.2.1", |
34 | | - "jest": "^24.9.0", |
35 | | - "karmatic": "^1.4.0", |
| 64 | + "karmatic": "^2.1.0", |
36 | 65 | "microbundle": "^0.11.0", |
| 66 | + "prettier": "2.0.5", |
37 | 67 | "sinon": "^8.0.4", |
| 68 | + "typescript": "3.9.3", |
38 | 69 | "webpack": "^4.41.5" |
39 | 70 | } |
40 | 71 | } |
0 commit comments