This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
120 lines (120 loc) · 3.59 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
{
"name": "reqon",
"license": "MPL-2.0",
"private": true,
"type": "module",
"repository": {
"type": "git",
"value": "git+https://github.com/Vinfall/reqon.git"
},
"config": {
"ignore": "test/ coverage/ README* **/manual.wiki package*.json"
},
"scripts": {
"start": "web-ext run -i=$npm_package_config_ignore --bc --url about:debugging#addons",
"test": "node --experimental-vm-modules node_modules/.bin/jest",
"lint": "eslint src/ rules/*.json _locales/*/*.json && web-ext lint -i=$npm_package_config_ignore -w",
"lint-build": "addons-linter --warnings-as-errors web-ext-artifacts/reqon-$(node -p \"require('./manifest.json').version\").zip",
"copy-tldts": "cp -v node_modules/tldts-experimental/dist/index.esm.min.js lib/tldts/",
"copy-lit": "cp -v node_modules/@ajusa/lit/src/lit.css lib/lit/",
"build-manual": "find ./_locales/ -iname \"manual.wiki\" -type f -exec sh -c 'pandoc \"$0\" --from=mediawiki --to=html --output \"${0%.wiki}.html\"' {} \\;",
"postinstall": "npm run copy-tldts && npm run copy-lit",
"prebuild": "npm run build-manual",
"build": "web-ext build -i=$npm_package_config_ignore --overwrite-dest --verbose",
"deploy": "web-ext sign --verbose"
},
"dependencies": {
"@ajusa/lit": "^1.1.0",
"body-parser": "^1.20.2",
"express": "^4.19.2",
"tldts-experimental": "^6.1.41"
},
"devDependencies": {
"addons-linter": "^6.33.0",
"eslint": "^7.32.0",
"eslint-config-problems": "^5.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.8.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^40.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"web-ext": "^8.2.0"
},
"jest": {
"testEnvironment": "jest-environment-jsdom",
"transform": {},
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"src/main/**/*"
],
"coverageReporters": [
"text-summary",
"lcov"
]
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"problems",
"plugin:unicorn/recommended",
"plugin:json/recommended"
],
"env": {
"es6": true,
"browser": true,
"webextensions": true,
"jest": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 12
},
"plugins": [
"jest",
"import",
"promise",
"no-unsanitized",
"simple-import-sort"
],
"rules": {
"indent": [
"warn",
4,
{
"SwitchCase": 1
}
],
"quotes": [
"warn",
"double"
],
"semi": [
"error",
"always"
],
"no-prototype-builtins": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-null": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-dom-node-append": "off",
"unicorn/catch-error-name": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-static-only-class": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-spread": "off",
"unicorn/require-array-join-separator": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn"
}
}
}