-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 2.05 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "hello-world",
"version": "0.0.0",
"description": "Hello World plugin description",
"repository": "https://github.com/jmerle/inkdrop-hello-world",
"license": "MIT",
"main": "./src/index",
"scripts": {
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint --format codeframe 'src/**'",
"lint:prettier": "prettier --check --ignore-path .gitignore '**/*.{js,less,yml,json}'",
"fix": "yarn fix:eslint && yarn fix:prettier",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "prettier --write --ignore-path .gitignore '**/*.{js,less,yml,json}'"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.18.13",
"@babel/eslint-parser": "^7.18.9",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-react": "^7.30.1",
"husky": "4.3.8",
"lint-staged": "^13.0.3",
"prettier": "2.7.1",
"rimraf": "^3.0.2"
},
"engines": {
"inkdrop": "^5.x"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"electron": "16.0.10"
}
}
],
"@babel/preset-react"
]
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"plugins": [
"react"
],
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"inkdrop": true
},
"settings": {
"react": {
"version": "latest"
}
},
"ignorePatterns": [
"dist/"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged --concurrent false"
}
},
"lint-staged": {
"*.js": [
"eslint --format codeframe --fix"
],
"*.{js,less,yml,json}": [
"prettier --write"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid"
}
}