-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
96 lines (96 loc) · 1.87 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
{
"name": "express-ipfilter",
"version": "1.3.2",
"description": "A light-weight IP address based filtering system",
"keywords": [
"express",
"ip ban",
"ip filter",
"ipban",
"ipfilter",
"middleware"
],
"repository": "https://github.com/jetersen/express-ipfilter",
"license": "MIT",
"author": "jetersen",
"main": "index.js",
"types": "index.d.ts",
"files": [
"/index.js",
"/index.d.ts",
"/lib"
],
"scripts": {
"prepare": "husky install",
"test": "jest",
"postversion": "npm run test && git push && git push --tags"
},
"lint-staged": {
"*.js": [
"eslint --fix"
],
"*.{json,css,md}": [
"prettier --write"
]
},
"prettier": {
"bracketSpacing": true,
"semi": false,
"singleQuote": true
},
"eslintConfig": {
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 6
},
"plugins": [
"prettier",
"jest"
],
"rules": {
"prettier/prettier": "warn",
"no-console": "off",
"no-unused-vars": "warn",
"no-var": "warn",
"no-use-before-define": "warn",
"prefer-arrow-callback": "warn"
}
},
"eslintIgnore": [
"coverage"
],
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"index.js",
"lib/**"
]
},
"dependencies": {
"ip": "^2.0.1",
"lodash": "^4.17.11",
"proxy-addr": "^2.0.7",
"range_check": "^2.0.4"
},
"devDependencies": {
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jest": "^27.0.1",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jest": "^29.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1"
},
"engines": {
"node": ">=8.9.0"
}
}