forked from OSNVR/OS-NVR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 3.19 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
{
"description": "Optional development tools, requires node 12.17+",
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=default --reporters=jest-junit",
"cover": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
"format": "npx prettier -w './{,!(.cache|coverage)/**/!(vendor)/}*.{js,mjs,css}'",
"lint-js": "npx eslint './{,!(.cache|coverage)/**/!(vendor)/}*.{js,mjs}' --cache=true --cache-location=./node_modules/.cache/eslint",
"lint-js-fix": "npx eslint './{,!(.cache|coverage)/**/!(vendor)/}*.{js,mjs}' --fix --cache=true --cache-location=./node_modules/.cache/eslint",
"lint-css": "npx stylelint './{,!(.cache|coverage)/**/!(vendor)/}*.css' --cache=true --cache-location=./node_modules/.cache/stylelint",
"lint-css-fix": "npx stylelint './{,!(.cache|coverage)/**/!(vendor)/}*.css' --fix --cache=true --cache-location=./node_modules/.cache/stylelint"
},
"devDependencies": {
"browserslist": "^4.20.3",
"eslint": "^8.14.0",
"eslint-plugin-compat": "^4.0.2",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^46.0.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-junit": "^15.0.0",
"prettier": "^2.6.2",
"prettier-plugin-go-template": "^0.0.13",
"stylelint": "^15.2.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-rational-order": "^0.0.4",
"stylelint-config-standard": "^30.0.1",
"stylelint-no-unsupported-browser-features": "^6.1.0",
"stylelint-order": "^6.0.3"
},
"jest": {
"testEnvironment": "jsdom",
"transform": {},
"testMatch": [
"**/*_test.mjs"
],
"moduleFileExtensions": [
"js",
"mjs"
],
"cacheDirectory": "./node_modules/.cache/jest",
"coverageDirectory": "coverage",
"coverageReporters": [
"json",
"cobertura"
]
},
"jest-junit": {
"outputDirectory": "coverage/report",
"outputName": "js.xml"
},
"prettier": {
"printWidth": 90,
"tabWidth": 4,
"useTabs": true
},
"eslintConfig": {
"env": {
"browser": true,
"es2015": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:promise/recommended",
"plugin:compat/recommended",
"plugin:unicorn/recommended",
"plugin:jest/recommended",
"plugin:jest/style"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": [
"unicorn",
"jest"
],
"rules": {
"unicorn/consistent-function-scoping": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/filename-case": [
"off"
],
"unicorn/prefer-add-event-listener": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-logical-operator-over-ternary": "off"
}
},
"stylelint": {
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier",
"stylelint-config-rational-order"
],
"plugins": [
"stylelint-no-unsupported-browser-features"
],
"rules": {
"value-keyword-case": null,
"no-descending-specificity": null,
"property-no-vendor-prefix": null,
"plugin/no-unsupported-browser-features": [
true,
{
"ignore": [
"multicolumn",
"css-appearance"
]
}
]
}
},
"browserslist": [
"Chrome 66",
"Edge 79",
"Firefox 60",
"Opera 53",
"Safari 12.1"
]
}