-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
136 lines (136 loc) · 3.33 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"name": "file-naming-enforcer",
"version": "0.0.0-development",
"description": "Enforce developers to use only one file naming convention inside the project",
"main": "dist/index.js",
"author": "sztadii",
"license": "ISC",
"homepage": "https://github.com/sztadii/file-naming-enforcer",
"keywords": [
"enforcer",
"validation",
"file enforcer",
"file naming enforcer",
"convention enforcer"
],
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/sztadii/file-naming-enforcer.git"
},
"scripts": {
"prepublishOnly": "npm run build",
"start": "concurrently -k -r -s first \"npm run lint-scripts-watch\" \"npm run test-watch\"",
"test": "jest",
"test-watch": "jest --watch",
"build": "npm run clean && tsc --project ./tsconfig.build.json",
"lint": "npm run lint-scripts && npm run lint-file-names",
"lint-file-names": "file-naming-enforcer type=kebabCase",
"lint-scripts": "esw \"./**/*.ts\" --ignore-path .gitignore --color --max-warnings 0",
"lint-scripts-watch": "esw \"./**/*.ts\" --ignore-path .gitignore --color --watch --cache",
"format": "prettier \"src/**/*.ts\" --write",
"clean": "rm -rf dist",
"type-check": "tsc --noEmit",
"semantic-release": "semantic-release"
},
"dependencies": {
"find": "0.3.0",
"lodash": "4.17.20"
},
"devDependencies": {
"@commitlint/cli": "12.1.4",
"@commitlint/config-conventional": "12.1.4",
"@types/find": "0.2.1",
"@types/jest": "26.0.19",
"@types/lodash": "4.14.167",
"@types/node": "14.17.1",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.11.1",
"concurrently": "4.1.2",
"eslint": "5.16.0",
"eslint-plugin-jest": "22.21.0",
"eslint-watch": "4.0.2",
"file-naming-enforcer": "^1.9.0",
"husky": "1.3.1",
"jest": "26.6.3",
"lint-staged": "8.2.1",
"prettier": "1.19.1",
"regenerator-runtime": "0.13.7",
"semantic-release": "17.4.4",
"ts-jest": "26.4.4",
"ts-node": "8.10.2",
"typescript": "3.9.7"
},
"bin": {
"file-naming-enforcer": "dist/index.js",
"fne": "dist/index.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.ts": [
"npm run lint",
"npm run format",
"git add"
]
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$",
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
}
},
"prettier": {
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"semi": false
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"jest"
],
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"env": {
"es6": true,
"node": true,
"jest": true
},
"rules": {
"no-console": "off",
"no-unused-vars": "off"
}
},
"engines": {
"node": "18.17.0"
}
}