|
25 | 25 | "publish:npm": "npm publish --access public", |
26 | 26 | "test": "npm run test:ut && npm run test:import", |
27 | 27 | "test:e2e": "jest --config=e2e/jest-e2e.json --detectOpenHandles --forceExit", |
28 | | - "test:ut": "jest --config=jest.json --detectOpenHandles", |
| 28 | + "test:ut": "jest --detectOpenHandles", |
29 | 29 | "test:ut:cov": "npm run test:ut -- --coverage", |
30 | 30 | "test:import": "ts-node tools/import-check.ts", |
31 | 31 | "release": "release-it", |
32 | 32 | "prepare": "husky install" |
33 | 33 | }, |
34 | | - "lint-staged": { |
35 | | - "*.ts": [ |
36 | | - "prettier --write" |
37 | | - ] |
38 | | - }, |
39 | 34 | "dependencies": { |
40 | 35 | "boxen": "5.1.2", |
41 | 36 | "check-disk-space": "3.4.0" |
|
164 | 159 | "@prisma/client": { |
165 | 160 | "optional": true |
166 | 161 | } |
| 162 | + }, |
| 163 | + "lint-staged": { |
| 164 | + "*.ts": [ |
| 165 | + "prettier --write" |
| 166 | + ] |
| 167 | + }, |
| 168 | + "prettier": { |
| 169 | + "trailingComma": "all", |
| 170 | + "singleQuote": true |
| 171 | + }, |
| 172 | + "renovate": { |
| 173 | + "semanticCommits": true, |
| 174 | + "packageRules": [{ |
| 175 | + "depTypeList": ["devDependencies"], |
| 176 | + "automerge": true |
| 177 | + }], |
| 178 | + "extends": [ |
| 179 | + "config:base" |
| 180 | + ] |
| 181 | + }, |
| 182 | + "commitlint": { |
| 183 | + "extends": [ |
| 184 | + "@commitlint/config-angular" |
| 185 | + ], |
| 186 | + "rules": { |
| 187 | + "subject-case": [ |
| 188 | + 2, |
| 189 | + "always", |
| 190 | + [ |
| 191 | + "sentence-case", |
| 192 | + "start-case", |
| 193 | + "pascal-case", |
| 194 | + "upper-case", |
| 195 | + "lower-case" |
| 196 | + ] |
| 197 | + ], |
| 198 | + "type-enum": [ |
| 199 | + 2, |
| 200 | + "always", |
| 201 | + [ |
| 202 | + "build", |
| 203 | + "chore", |
| 204 | + "ci", |
| 205 | + "docs", |
| 206 | + "feat", |
| 207 | + "fix", |
| 208 | + "perf", |
| 209 | + "refactor", |
| 210 | + "revert", |
| 211 | + "style", |
| 212 | + "test", |
| 213 | + "sample" |
| 214 | + ] |
| 215 | + ] |
| 216 | + } |
| 217 | + }, |
| 218 | + "jest": { |
| 219 | + "moduleFileExtensions": [ |
| 220 | + "ts", |
| 221 | + "tsx", |
| 222 | + "js", |
| 223 | + "json" |
| 224 | + ], |
| 225 | + "transform": { |
| 226 | + "^.+\\.ts$": "ts-jest", |
| 227 | + "^.+\\.tsx?$": "ts-jest" |
| 228 | + }, |
| 229 | + "setupFiles": [ |
| 230 | + "<rootDir>/node_modules/reflect-metadata/Reflect.js" |
| 231 | + ], |
| 232 | + "testRegex": "/lib/.*\\.(test|spec).(ts|tsx|js)$", |
| 233 | + "collectCoverageFrom": [ |
| 234 | + "lib/**/*.{js,jsx,tsx,ts}", |
| 235 | + "!**/node_modules/**", |
| 236 | + "!**/vendor/**" |
| 237 | + ], |
| 238 | + "coverageReporters": [ |
| 239 | + "json", |
| 240 | + "lcov" |
| 241 | + ], |
| 242 | + "coverageDirectory": "./coverage", |
| 243 | + "testEnvironment": "node" |
| 244 | + }, |
| 245 | + "eslintConfig": { |
| 246 | + "parser": "@typescript-eslint/parser", |
| 247 | + "parserOptions": { |
| 248 | + "project": "tsconfig.json", |
| 249 | + "sourceType": "module" |
| 250 | + }, |
| 251 | + "plugins": [ |
| 252 | + "@typescript-eslint/eslint-plugin" |
| 253 | + ], |
| 254 | + "extends": [ |
| 255 | + "plugin:@typescript-eslint/eslint-recommended", |
| 256 | + "plugin:@typescript-eslint/recommended", |
| 257 | + "prettier" |
| 258 | + ], |
| 259 | + "root": true, |
| 260 | + "env": { |
| 261 | + "node": true, |
| 262 | + "jest": true |
| 263 | + }, |
| 264 | + "rules": { |
| 265 | + "@typescript-eslint/interface-name-prefix": "off", |
| 266 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 267 | + "@typescript-eslint/no-explicit-any": "off", |
| 268 | + "@typescript-eslint/no-use-before-define": "off", |
| 269 | + "@typescript-eslint/no-non-null-assertion": "off" |
| 270 | + } |
167 | 271 | } |
168 | 272 | } |
0 commit comments