|
28 | 28 | "build:electron:all": "KUI_KEEP_NODE_MODULE=\"$(cat mw-node-modules.txt)\" KUI_HEADLESS_WEBPACK=true KUI_LAUNCHER=$PWD/bin/codeflare kui-build-electron",
|
29 | 29 | "build": "npm run compile && webpack --mode production",
|
30 | 30 | "postinstall": "npm run compile",
|
| 31 | + "format": "prettier --write '**/*.{scss,css,html,js,json,md,ts,tsx}'", |
| 32 | + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", |
31 | 33 | "open": "electron . shell",
|
32 | 34 | "start": "WATCH_ARGS='-open' npm run watch",
|
33 | 35 | "test": "echo \"Error: no test specified\" && exit 1"
|
34 | 36 | },
|
35 | 37 | "keywords": [],
|
36 | 38 | "author": "@starpit",
|
37 | 39 | "license": "Apache-2.0",
|
| 40 | + "eslintConfig": { |
| 41 | + "parser": "@typescript-eslint/parser", |
| 42 | + "plugins": [ |
| 43 | + "@typescript-eslint" |
| 44 | + ], |
| 45 | + "env": { |
| 46 | + "browser": true, |
| 47 | + "node": true |
| 48 | + }, |
| 49 | + "rules": { |
| 50 | + "@typescript-eslint/no-unused-vars": "error" |
| 51 | + }, |
| 52 | + "extends": [ |
| 53 | + "eslint:recommended", |
| 54 | + "plugin:@typescript-eslint/recommended" |
| 55 | + ] |
| 56 | + }, |
| 57 | + "eslintIgnore": [ |
| 58 | + "mdist", |
| 59 | + "dist", |
| 60 | + ".#*", |
| 61 | + "*~" |
| 62 | + ], |
| 63 | + "lint-staged": { |
| 64 | + "**/*.{scss,css,html,js,json,md,ts,tsx}": [ |
| 65 | + "prettier --write", |
| 66 | + "git add" |
| 67 | + ], |
| 68 | + "**/*.{js,ts,tsx}": [ |
| 69 | + "eslint --fix", |
| 70 | + "git add" |
| 71 | + ] |
| 72 | + }, |
| 73 | + "prettier": { |
| 74 | + "semi": false, |
| 75 | + "printWidth": 120 |
| 76 | + }, |
38 | 77 | "devDependencies": {
|
39 | 78 | "@kui-shell/builder": "11.5.0-dev-20220523-155545",
|
40 | 79 | "@kui-shell/proxy": "11.5.0-dev-20220523-155545",
|
41 | 80 | "@kui-shell/react": "11.5.0-dev-20220523-155545",
|
42 | 81 | "@kui-shell/webpack": "11.5.0-dev-20220523-155545",
|
| 82 | + "@types/debug": "^4.1.7", |
43 | 83 | "@types/node": "14.11.8",
|
44 | 84 | "@types/react": "17.0.39",
|
45 | 85 | "@types/react-dom": "17.0.11",
|
| 86 | + "@types/uuid": "^8.3.4", |
| 87 | + "@typescript-eslint/eslint-plugin": "^5.25.0", |
| 88 | + "@typescript-eslint/parser": "^5.25.0", |
46 | 89 | "concurrently": "7.2.0",
|
47 | 90 | "electron": "18.2.4",
|
| 91 | + "eslint": "^8.15.0", |
| 92 | + "husky": "^8.0.1", |
| 93 | + "lint-staged": "^12.4.1", |
| 94 | + "prettier": "^2.6.2", |
48 | 95 | "typescript": "4.6.4"
|
49 | 96 | },
|
50 | 97 | "dependencies": {
|
|
0 commit comments