-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
118 lines (118 loc) · 2.72 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
{
"name": "sagefy",
"version": "2.0.0",
"description": "Sagefy. Learn anything, adapted for you. Free.",
"main": "docker-compose.yml",
"scripts": {
"precommit": "pretty-quick --staged",
"postinstall": "(cd ./server && npm install) && (cd ./client && npm install)",
"lint": "eslint --ext .jsx,.js .",
"test": "npm run lint",
"posttest": "(cd server && npm run test) && (cd client && npm run test)",
"gendata": "(cd server && npm run gendata)",
"dbmate": "dbmate -d \"./postgres/migrations\" -s \"./postgres/schema.sql\"",
"dbrepl": "docker exec -it sagefy_postgres_1 psql -U sagefy -p 2600",
"prettier": "prettier --write \"**/*.*\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/sagefy/sagefy.git"
},
"author": "Kevin Heis and contributors",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/sagefy/sagefy/issues"
},
"homepage": "https://github.com/sagefy/sagefy#readme",
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-security": "^1.7.1",
"husky": "^3.1.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1"
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": true
}
}
],
"@babel/preset-react"
]
},
"eslintConfig": {
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:security/recommended"
],
"env": {
"node": true,
"browser": true,
"jest": true
},
"globals": {
"expect": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"max-depth": [
"error",
4
],
"max-lines": [
"error",
400
],
"max-params": [
"error",
3
],
"max-statements": [
"error",
20
],
"no-negated-condition": "error",
"complexity": [
"error",
10
],
"no-useless-call": "error",
"object-shorthand": [
"error",
"always"
],
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/jsx-props-no-spreading": "off"
}
},
"eslintIgnore": [
"node_modules/",
"circleci/",
"/home/circleci/",
"home/circleci/"
]
}