-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
58 lines (58 loc) · 1.77 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
{
"name": "event-radar-api",
"version": "1.0.0",
"private": true,
"description": "Event manager tool",
"homepage": "",
"license": "See LICENSE file",
"author": {
"name": "Chetan Patil"
},
"scripts": {
"check-ruby-shebang": "sh -c 'if head -n 1 $0 | grep -qE \"^#!/.*\\bruby\"; then npm run rubocop:fix; fi'",
"lint": "prettier --check .",
"lint:commit": "commitlint --edit",
"lint:commit:head": "commitlint --from=HEAD~1",
"lint:fix": "prettier --write .",
"lint:ruby": "bundle exec rubocop -A --parallel --color && bundle exec bundle-audit check --update && bundle exec rails_best_practices && bundle exec reek && bundle exec rake traceroute && bundle exec brakeman --no-pager",
"pre-commit": "lint-staged",
"prepare": "husky",
"rubocop:fix": "bundle exec rubocop --force-exclusion --parallel --color",
"test": "bundle exec rspec"
},
"lint-staged": {
"./**/*.{json,md,yml,yaml,sh,xml,svg,html,Dockerfile}": [
"prettier --write"
],
"*.{rb,ru}": [
"npm run rubocop:fix",
"bundle exec reek",
"bundle exec rake traceroute"
],
"Gemfile, Gemfile.lock": [
"npm run rubocop:fix",
"bundle exec bundle-audit check --update"
],
"*": [
"npm run check-ruby-shebang"
],
"*.md": "markdownlint --fix"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/format": "^19.5.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"markdownlint": "^0.35.0",
"markdownlint-cli": "^0.42.0",
"prettier": "^3.3.3",
"prettier-plugin-autocorrect": "^0.4.1",
"prettier-plugin-packagejson": "^2.5.2",
"prettier-plugin-sh": "^0.14.0"
},
"engines": {
"node": "22.x",
"npm": "10.x"
}
}