-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: restore commitlint, commitizen, husky, and lint staged
- Loading branch information
1 parent
c38beeb
commit 8e2157d
Showing
29 changed files
with
2,041 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "path": "@commitlint/cz-commitlint" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"/home/mfarabi/workspace/cuHacking/2025-backup/.cz.json":"1","/home/mfarabi/workspace/cuHacking/2025-backup/.github/workflows/BUILD.yml":"2","/home/mfarabi/workspace/cuHacking/2025-backup/.github/workflows/TEST_e2e.yml":"3","/home/mfarabi/workspace/cuHacking/2025-backup/README.md":"4","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs-e2e/playwright.config.ts":"5","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs-e2e/src/docs.spec.ts":"6","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/mdx-components.tsx":"7","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/next.config.mjs":"8","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/specs/index.spec.tsx":"9","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/[[...slug]]/page.tsx":"10","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/layout.config.tsx":"11","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/layout.tsx":"12","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/source.ts":"13","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/tailwind.config.js":"14","/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/app/nx-welcome.tsx":"15","/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/test-setup.ts":"16","/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/tests/routes/_index.spec.tsx":"17","/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/tsconfig.json":"18","/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/tsconfig.spec.json":"19","/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/vitest.config.ts":"20","/home/mfarabi/workspace/cuHacking/2025-backup/commitlint.config.ts":"21","/home/mfarabi/workspace/cuHacking/2025-backup/package.json":"22","/home/mfarabi/workspace/cuHacking/2025-backup/release.config.ts":"23","/home/mfarabi/workspace/cuHacking/2025-backup/tsconfig.base.json":"24","/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs-e2e/eslint.config.js":"25"},{"size":40,"mtime":1731355682275,"results":"26","hashOfConfig":"27"},{"size":1292,"mtime":1731355682275,"results":"28","hashOfConfig":"29"},{"size":2089,"mtime":1731355682275,"results":"30","hashOfConfig":"29"},{"size":4119,"mtime":1731355682275,"results":"31","hashOfConfig":"32"},{"size":1804,"mtime":1731355682275,"results":"33","hashOfConfig":"34"},{"size":15548,"mtime":1731355723799,"results":"35","hashOfConfig":"36"},{"size":753,"mtime":1731355682275,"results":"37","hashOfConfig":"38"},{"size":1342,"mtime":1731355682275,"results":"39","hashOfConfig":"40"},{"size":269,"mtime":1731355682275,"results":"41","hashOfConfig":"36"},{"size":2353,"mtime":1731355682275,"results":"42","hashOfConfig":"38"},{"size":3502,"mtime":1731355682275,"results":"43","hashOfConfig":"34"},{"size":973,"mtime":1731355682275,"results":"44","hashOfConfig":"38"},{"size":1527,"mtime":1731355682275,"results":"45","hashOfConfig":"38"},{"size":960,"mtime":1731355682275,"results":"46","hashOfConfig":"47"},{"size":30706,"mtime":1731355682275,"results":"48","hashOfConfig":"38"},{"size":111,"mtime":1731355682275,"results":"49","hashOfConfig":"38"},{"size":386,"mtime":1731355682275,"results":"50","hashOfConfig":"36"},{"size":739,"mtime":1731355682275,"results":"51","hashOfConfig":"52"},{"size":576,"mtime":1731355682279,"results":"53","hashOfConfig":"52"},{"size":856,"mtime":1731355682279,"results":"54","hashOfConfig":"34"},{"size":6286,"mtime":1731355682279,"results":"55","hashOfConfig":"34"},{"size":3583,"mtime":1731355682279,"results":"56","hashOfConfig":"57"},{"size":141,"mtime":1731355682282,"results":"58","hashOfConfig":"34"},{"size":1306,"mtime":1731355682282,"results":"59","hashOfConfig":"52"},{"size":682,"mtime":1731355682275,"results":"60","hashOfConfig":"47"},{"filePath":"61","messages":"62","suppressedMessages":"63","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"9jot0g",{"filePath":"64","messages":"65","suppressedMessages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1w9oofy",{"filePath":"67","messages":"68","suppressedMessages":"69","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","suppressedMessages":"72","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"j7n83z",{"filePath":"73","messages":"74","suppressedMessages":"75","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1eowi3n",{"filePath":"76","messages":"77","suppressedMessages":"78","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ahkky0",{"filePath":"79","messages":"80","suppressedMessages":"81","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"15g5gp0",{"filePath":"82","messages":"83","suppressedMessages":"84","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"a00fkg",{"filePath":"85","messages":"86","suppressedMessages":"87","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","suppressedMessages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","suppressedMessages":"93","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","suppressedMessages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"100","messages":"101","suppressedMessages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"zvhc17",{"filePath":"103","messages":"104","suppressedMessages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","suppressedMessages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","suppressedMessages":"114","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1q2sngz",{"filePath":"115","messages":"116","suppressedMessages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","suppressedMessages":"120","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"121","messages":"122","suppressedMessages":"123","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","suppressedMessages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"fyjtbu",{"filePath":"127","messages":"128","suppressedMessages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","suppressedMessages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"133","messages":"134","suppressedMessages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/mfarabi/workspace/cuHacking/2025-backup/.cz.json",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/.github/workflows/BUILD.yml",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/.github/workflows/TEST_e2e.yml",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/README.md",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs-e2e/playwright.config.ts",[],["136","137"],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs-e2e/src/docs.spec.ts",[],["138"],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/mdx-components.tsx",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/next.config.mjs",[],["139"],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/specs/index.spec.tsx",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/[[...slug]]/page.tsx",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/layout.config.tsx",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/layout.tsx",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/src/app/(docs)/source.ts",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs/tailwind.config.js",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/app/nx-welcome.tsx",["140"],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/test-setup.ts",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/tests/routes/_index.spec.tsx",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/tsconfig.json",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/tsconfig.spec.json",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/website/vitest.config.ts",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/commitlint.config.ts",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/package.json",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/release.config.ts",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/tsconfig.base.json",[],[],"/home/mfarabi/workspace/cuHacking/2025-backup/apps/docs-e2e/eslint.config.js",[],[],{"ruleId":"141","severity":2,"message":"142","line":12,"column":17,"nodeType":"143","messageId":"144","endLine":12,"endColumn":24,"suppressions":"145"},{"ruleId":"141","severity":2,"message":"142","line":36,"column":27,"nodeType":"143","messageId":"144","endLine":36,"endColumn":34,"suppressions":"146"},{"ruleId":"147","severity":2,"message":"148","line":12,"column":11,"nodeType":"143","endLine":12,"endColumn":14,"suppressions":"149"},{"ruleId":"141","severity":2,"message":"142","line":24,"column":19,"nodeType":"143","messageId":"144","endLine":24,"endColumn":26,"suppressions":"150"},{"ruleId":"151","severity":1,"message":"152","line":11,"column":7,"nodeType":"153","messageId":"154","endLine":429,"endColumn":9},"node/prefer-global/process","Unexpected use of the global variable 'process'. Use 'require(\"process\")' instead.","Identifier","preferModule",["155"],["156"],"react-hooks/rules-of-hooks","React Hook \"use\" is called in function \"docsLayoutPage\" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word \"use\".",["157"],["158"],"react-dom/no-dangerously-set-innerhtml","Using 'dangerouslySetInnerHTML' may have security implications.","JSXElement","noDangerouslySetInnerhtml",{"kind":"159","justification":"160"},{"kind":"159","justification":"160"},{"kind":"159","justification":"160"},{"kind":"159","justification":"160"},"directive",""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm dlx commitlint --edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,29 @@ | ||
// TODO: merge with antfu eslint config | ||
// const { FlatCompat } = require('@eslint/eslintrc'); | ||
// const playwright = require('eslint-plugin-playwright'); | ||
// const baseConfig = require('../../eslint.config.js'); | ||
|
||
// module.exports = [ | ||
// playwright.configs['flat/recommended'], | ||
// ...baseConfig, | ||
// { | ||
// files: ['**/*.ts', '**/*.js'], | ||
// // Override or add rules here | ||
// rules: {}, | ||
// }, | ||
// ] | ||
|
||
import playwright from 'eslint-plugin-playwright' | ||
import baseConfigPromise from '../../eslint.config.js' | ||
|
||
export default (async () => { | ||
const baseConfig = await baseConfigPromise | ||
|
||
return [ | ||
playwright.configs['flat/recommended'], | ||
...baseConfig, | ||
// ...compat.extends("plugin:playwright/recommended"), | ||
// The following configurations are commented out | ||
// ...compat.extends( | ||
// 'plugin:@nx/react-typescript', | ||
// 'next', | ||
// 'next/core-web-vitals' | ||
// ), | ||
// { | ||
// files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], | ||
// rules: { | ||
// '@next/next/no-html-link-for-pages': ['error', 'apps/portal/pages'], | ||
// }, | ||
// }, | ||
// { | ||
// files: ['**/*.ts', '**/*.tsx'], | ||
// rules: {}, | ||
// }, | ||
// { | ||
// files: ['**/*.js', '**/*.jsx'], | ||
// rules: {}, | ||
// }, | ||
// ...compat.config({ env: { jest: true } }).map((config) => ({ | ||
// ...config, | ||
// files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.spec.js', '**/*.spec.jsx'], | ||
// rules: { | ||
// ...config.rules, | ||
// }, | ||
// })), | ||
// { ignores: ['.next/**/*'] }, | ||
{ | ||
files: ['**.ts', '**.js'], | ||
// Override or add rules here | ||
rules: {}, | ||
}, | ||
] | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.