|
3 | 3 | "version": "1.2.1", |
4 | 4 | "description": "A plugin for displaying mathematical functions in obsidian.md.", |
5 | 5 | "repository": "https://github.com/leonhma/obsidian-functionplot", |
6 | | - "type": "module", |
7 | 6 | "author": "leonhma", |
8 | 7 | "license": "MIT", |
9 | 8 | "private": true, |
|
12 | 11 | "build": "yarn lint && webpack", |
13 | 12 | "test": "jest", |
14 | 13 | "format": "yarn prettier --write .", |
15 | | - "lint": "yarn eslint .", |
16 | | - "storybook": "start-storybook -p 6006", |
17 | | - "build-storybook": "build-storybook" |
| 14 | + "lint": "yarn eslint -c .eslintrc.json .", |
| 15 | + "postinstall": "husky install" |
18 | 16 | }, |
19 | 17 | "devDependencies": { |
20 | 18 | "@babel/core": "^7.20.12", |
|
25 | 23 | "@typescript-eslint/parser": "^5.41.0", |
26 | 24 | "babel-loader": "^8.3.0", |
27 | 25 | "css-loader": "^6.7.3", |
28 | | - "eslint": "^8.26.0", |
29 | | - "eslint-config-prettier": "^8.5.0", |
30 | | - "eslint-plugin-storybook": "^0.6.10", |
| 26 | + "eslint": "^8.34.0", |
| 27 | + "eslint-plugin-svelte3": "^4.0.0", |
| 28 | + "husky": "^8.0.3", |
31 | 29 | "jest": "^29.2.2", |
32 | | - "nested-object-assign": "^1.0.4", |
| 30 | + "jest-environment-jsdom": "^29.4.2", |
| 31 | + "lint-staged": "^13.1.1", |
33 | 32 | "prettier": "^2.7.1", |
| 33 | + "prettier-plugin-svelte": "^2.9.0", |
34 | 34 | "sass": "^1.58.0", |
35 | 35 | "sass-loader": "^13.0.2", |
36 | 36 | "style-loader": "^3.3.1", |
|
50 | 50 | "function-plot": "^1.23.1", |
51 | 51 | "html-to-image": "^1.11.3", |
52 | 52 | "obsidian": "0.16.3" |
| 53 | + }, |
| 54 | + "lint-staged": { |
| 55 | + "*.js": "eslint --cache --fix", |
| 56 | + "*.{js,css,md,svelte}": "prettier --write" |
53 | 57 | } |
54 | 58 | } |
0 commit comments