-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathpackage.json
138 lines (138 loc) · 4.22 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "@jupyterlite/pyodide-kernel-root",
"version": "0.3.0",
"private": true,
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"build:prod": "lerna run --stream build:prod",
"build:py": "lerna run --stream build:py",
"build": "lerna run --stream build",
"bump:js:version": "lerna version --no-push --force-publish --no-git-tag-version --yes",
"clean:all": "jlpm clean:build && jlpm clean:dist && lerna run --stream clean:all && jlpm clean:cache",
"clean:build": "rimraf build",
"clean:cache": "rimraf node_modules/.cache build/.lite-cache examples/.jupyterlite.doit.db",
"clean:dist": "rimraf dist",
"clean": "lerna run --stream clean",
"deduplicate": "yarn-berry-deduplicate -s fewer --fail",
"dist:npm": "lerna run --stream dist",
"dist:pypi": "pyproject-build .",
"dist": "jlpm dist:pypi && jlpm dist:npm",
"docs:lite": "cd examples && jupyter lite build",
"docs:sphinx": "sphinx-build -W -b html docs build/docs",
"docs": "jlpm docs:lite && jlpm docs:sphinx",
"eslint:check": "eslint . --cache --cache-location=./build/.cache/eslint --ext .ts,.tsx",
"eslint": "jlpm eslint:check --fix",
"lint": "jlpm lint:js && jlpm lint:py",
"lint:check": "jlpm lint:js:check && jlpm lint:py:check",
"lint:js": "jlpm prettier && jlpm eslint",
"lint:js:check": "jlpm prettier:check && jlpm eslint:check",
"lint:py": "jlpm lint:py:ruff:fix",
"lint:py:check": "jlpm lint:py:pip && jlpm lint:py:ruff:check",
"lint:py:pip": "python -m pip check",
"lint:py:ruff:fix": "ruff format && ruff check --fix-only",
"lint:py:ruff:check": "ruff format --check",
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md,.yml,.yaml}\"",
"prettier:check": "jlpm prettier:base --check",
"prettier": "jlpm prettier:base --write --list-different",
"quickstart": "npm run setup:py && jlpm && jlpm deduplicate && jlpm clean:all && jlpm lint && jlpm build:prod && jlpm dist && jlpm docs && jlpm test",
"serve": "cd build && python -m http.server -b 127.0.0.1",
"setup:py": "python -m pip install -e \".[dev,lint,test,docs]\"",
"test:py": "pytest",
"test": "jlpm test:py"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"lerna": "^7.2.0",
"prettier": "^3.0.3",
"rimraf": "^5.0.1",
"typescript": "~5.2.2",
"yarn-berry-deduplicate": "^6.1.1"
},
"prettier": {
"singleQuote": true,
"printWidth": 88,
"proseWrap": "always",
"overrides": [
{
"files": "**/*tsconfig*.json",
"options": {
"trailingComma": "none"
}
}
]
},
"eslintConfig": {
"ignorePatterns": [
"**/__tests__/",
"**/_pypi.ts",
"**/*.d.ts",
"**/lib/",
"build/",
"coverage",
"dist/",
"docs/",
"node_modules/",
"tests/"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfigbase.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": [
"PascalCase"
],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": false
}
],
"curly": [
"error",
"all"
],
"eqeqeq": "error",
"prefer-arrow-callback": "error"
}
}
}