Skip to content

Commit

Permalink
[REFACTOR]: jscpd configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
helabenkhalfallah committed Jan 22, 2025
1 parent 55434e1 commit b782e0f
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ dist
**/v6y-logs/**
.vscode/
**/coverage**
**/.DS_Store
**/.DS_Store
**/duplications-report
45 changes: 45 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"mode": "strict",
"format": [
"javascript",
"typescript",
"jsx",
"tsx"
],
"reporters": ["html"],
"output": "./duplications-report",
"ignore": [
"**/node_modules/**",
"**/target/**",
"**/coverage/**",
"**/dist/**",
"**/__mocks__/*",
"**/mocks/*",
"**/.husky/**",
"**/.nx/**",
"**/.vscode/.*",
"**/.idea/**",
"**/.gitlab/**",
"**/.github/**",
"**/eslint-config/**",
"**/jest-config/**",
"**/tailwind-config/**",
"**/typescript-config/**",
"**/.eslintrc.**",
"**/.gitlab-ci.**",
"**/tailwind.**",
"**/tsconfig.json",
"**/turbo.json",
"**/database_init.mjs",
"**/jest.**",
"**/__test__/**",
"**/**test.**",
"**/**.config.**",
"**/webpack/**",
"**/**webpack**",
"**/next**.**",
"**/.next/**",
"babel",
".*.d.ts.*"
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"lint": "nx run-many --target=lint --all",
"lint:fix": "nx run-many --target=lint:fix --all --verbose",
"format": "nx run-many --target=format --all",
"verify:code:duplication": "jscpd --config .jscpd.json",
"ts-coverage": "typescript-coverage-report",
"test": "nx run-many --target=test --all",
"init-db": "nx run-many --target=init-db --all",
Expand All @@ -34,6 +35,7 @@
},
"devDependencies": {
"husky": "=9.1.7",
"jscpd": "=4.0.5",
"nx": "=20.3.1",
"typescript-coverage-report": "=1.1.0"
}
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b782e0f

Please sign in to comment.