forked from tumpio/requestcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
119 lines (119 loc) · 3.55 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
{
"name": "requestcontrol",
"license": "MPL-2.0",
"private": true,
"type": "module",
"repository": {
"type": "git",
"value": "git+https://github.com/tumpio/requestcontrol.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",
"coverage": "codecov",
"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/request_control-$(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",
"tldts-experimental": "^5.7.38"
},
"devDependencies": {
"addons-linter": "^3.9.0",
"codecov": "^3.8.2",
"eslint": "^7.30.0",
"eslint-config-problems": "^5.0.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-json": "^3.0.0",
"eslint-plugin-no-unsanitized": "^3.1.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-unicorn": "^34.0.1",
"jest": "^27.0.6",
"web-ext": "^6.2.0"
},
"jest": {
"testEnvironment": "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"
}
}
}