|
4 | 4 | "description": "Vim keybindings for monaco-editor",
|
5 | 5 | "main": "./lib/index.js",
|
6 | 6 | "scripts": {
|
7 |
| - "test": "echo \"No test in this repo\"", |
8 | 7 | "start": "webpack-dev-server --mode development --host=0.0.0.0 --port=8080",
|
| 8 | + "lint": "eslint . --ext .js,.ts --cache --cache-location ./.cache-eslint/", |
9 | 9 | "clean": "rm -rf lib dist local",
|
10 | 10 | "dist": "webpack --mode production",
|
11 | 11 | "babel": "NODE_ENV=production babel ./src -d lib --ignore src/demo.js",
|
12 |
| - "build": "npm run clean && npm run babel && npm run dist", |
| 12 | + "build": "npm run clean && tsc && npm run dist", |
13 | 13 | "local": "mkdir -p local && cp -r lib dist package.json local",
|
14 | 14 | "prepublishOnly": "npm run build"
|
15 | 15 | },
|
|
28 | 28 | "author": "Brijesh Bittu <[email protected]> (http://bitwiser.in/)",
|
29 | 29 | "license": "MIT",
|
30 | 30 | "devDependencies": {
|
31 |
| - "@babel/cli": "^7.7.0", |
32 |
| - "@babel/core": "^7.7.2", |
33 |
| - "@babel/plugin-syntax-dynamic-import": "^7.2.0", |
34 |
| - "@babel/preset-env": "^7.7.1", |
35 |
| - "babel-loader": "^8.0.6", |
36 |
| - "babel-plugin-transform-class-properties": "^6.24.1", |
| 31 | + "@commitlint/cli": "^8.2.0", |
| 32 | + "@commitlint/config-conventional": "^8.2.0", |
| 33 | + "@typescript-eslint/eslint-plugin": "^2.13.0", |
| 34 | + "@typescript-eslint/parser": "^2.13.0", |
37 | 35 | "css-loader": "^3.2.0",
|
| 36 | + "eslint": "^6.8.0", |
| 37 | + "eslint-config-prettier": "^6.8.0", |
| 38 | + "eslint-plugin-import": "^2.19.1", |
| 39 | + "eslint-plugin-prettier": "^3.1.2", |
| 40 | + "file-loader": "^5.0.2", |
38 | 41 | "html-webpack-plugin": "^3.2.0",
|
39 |
| - "monaco-editor": "0.18.1", |
40 |
| - "monaco-editor-webpack-plugin": "^1.7.0", |
| 42 | + "husky": "^3.1.0", |
| 43 | + "lint-staged": "^9.5.0", |
| 44 | + "monaco-editor": "0.19.0", |
| 45 | + "monaco-editor-webpack-plugin": "^1.8.1", |
| 46 | + "prettier": "^1.19.1", |
41 | 47 | "style-loader": "^1.0.0",
|
| 48 | + "ts-loader": "^6.2.1", |
| 49 | + "typescript": "^3.7.4", |
42 | 50 | "webpack": "^4.41.2",
|
43 | 51 | "webpack-cli": "^3.3.10",
|
44 | 52 | "webpack-dev-server": "^3.9.0"
|
45 | 53 | },
|
46 | 54 | "peerDependencies": {
|
47 |
| - "monaco-editor": "^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0" |
| 55 | + "monaco-editor": "^0.19.0" |
| 56 | + }, |
| 57 | + "lint-staged": { |
| 58 | + "*.@(ts|tsx|js|jsx)": [ |
| 59 | + "prettier --write", |
| 60 | + "yarn lint -- --fix", |
| 61 | + "git add" |
| 62 | + ] |
| 63 | + }, |
| 64 | + "prettier": { |
| 65 | + "printWidth": 120, |
| 66 | + "semi": false, |
| 67 | + "trailingComma": "all", |
| 68 | + "singleQuote": true, |
| 69 | + "arrowParens": "always", |
| 70 | + "parser": "typescript" |
| 71 | + }, |
| 72 | + "husky": { |
| 73 | + "hooks": { |
| 74 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
| 75 | + "pre-commit": "lint-staged" |
| 76 | + } |
48 | 77 | }
|
49 | 78 | }
|
0 commit comments