diff --git a/.commitlintrc.json b/.commitlintrc.json deleted file mode 100644 index 9d1e69e3a..000000000 --- a/.commitlintrc.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "extends": ["@commitlint/config-angular"], - "rules": { - "subject-case": [ - 2, - "always", - ["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"] - ], - "type-enum": [ - 2, - "always", - [ - "build", - "chore", - "ci", - "docs", - "feat", - "fix", - "perf", - "refactor", - "revert", - "style", - "test", - "sample" - ] - ] - } - } \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 32324a447..000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/eslint-recommended', - 'plugin:@typescript-eslint/recommended', - 'prettier', - ], - root: true, - env: { - node: true, - jest: true, - }, - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-use-before-define': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - }, -}; - diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index ffa374c07..000000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "trailingComma": "all", - "singleQuote": true -} \ No newline at end of file diff --git a/jest.json b/jest.json deleted file mode 100644 index 41c672d0b..000000000 --- a/jest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ], - "transform": { - "^.+\\.ts$": "ts-jest", - "^.+\\.tsx?$": "ts-jest" - }, - "setupFiles": [ - "/node_modules/reflect-metadata/Reflect.js" - ], - "testRegex": "/lib/.*\\.(test|spec).(ts|tsx|js)$", - "collectCoverageFrom": [ - "lib/**/*.{js,jsx,tsx,ts}", - "!**/node_modules/**", - "!**/vendor/**" - ], - "coverageReporters": [ - "json", - "lcov" - ], - "coverageDirectory": "./coverage", - "testEnvironment": "node" -} diff --git a/package.json b/package.json index 30ca92436..a9e1edc07 100644 --- a/package.json +++ b/package.json @@ -25,17 +25,12 @@ "publish:npm": "npm publish --access public", "test": "npm run test:ut && npm run test:import", "test:e2e": "jest --config=e2e/jest-e2e.json --detectOpenHandles --forceExit", - "test:ut": "jest --config=jest.json --detectOpenHandles", + "test:ut": "jest --detectOpenHandles", "test:ut:cov": "npm run test:ut -- --coverage", "test:import": "ts-node tools/import-check.ts", "release": "release-it", "prepare": "husky install" }, - "lint-staged": { - "*.ts": [ - "prettier --write" - ] - }, "dependencies": { "boxen": "5.1.2", "check-disk-space": "3.4.0" @@ -164,5 +159,114 @@ "@prisma/client": { "optional": true } + }, + "lint-staged": { + "*.ts": [ + "prettier --write" + ] + }, + "prettier": { + "trailingComma": "all", + "singleQuote": true + }, + "renovate": { + "semanticCommits": true, + "packageRules": [{ + "depTypeList": ["devDependencies"], + "automerge": true + }], + "extends": [ + "config:base" + ] + }, + "commitlint": { + "extends": [ + "@commitlint/config-angular" + ], + "rules": { + "subject-case": [ + 2, + "always", + [ + "sentence-case", + "start-case", + "pascal-case", + "upper-case", + "lower-case" + ] + ], + "type-enum": [ + 2, + "always", + [ + "build", + "chore", + "ci", + "docs", + "feat", + "fix", + "perf", + "refactor", + "revert", + "style", + "test", + "sample" + ] + ] + } + }, + "jest": { + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "json" + ], + "transform": { + "^.+\\.ts$": "ts-jest", + "^.+\\.tsx?$": "ts-jest" + }, + "setupFiles": [ + "/node_modules/reflect-metadata/Reflect.js" + ], + "testRegex": "/lib/.*\\.(test|spec).(ts|tsx|js)$", + "collectCoverageFrom": [ + "lib/**/*.{js,jsx,tsx,ts}", + "!**/node_modules/**", + "!**/vendor/**" + ], + "coverageReporters": [ + "json", + "lcov" + ], + "coverageDirectory": "./coverage", + "testEnvironment": "node" + }, + "eslintConfig": { + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "tsconfig.json", + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint/eslint-plugin" + ], + "extends": [ + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "prettier" + ], + "root": true, + "env": { + "node": true, + "jest": true + }, + "rules": { + "@typescript-eslint/interface-name-prefix": "off", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-use-before-define": "off", + "@typescript-eslint/no-non-null-assertion": "off" + } } } diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 572846370..000000000 --- a/renovate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "semanticCommits": true, - "packageRules": [{ - "depTypeList": ["devDependencies"], - "automerge": true - }], - "extends": [ - "config:base" - ] -}