-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: moving to npm-shareable-configs v2 (#74)
- Loading branch information
Showing
59 changed files
with
3,777 additions
and
4,944 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
This file was deleted.
Oops, something went wrong.
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,17 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
#echo '🏗️👷 Styling your project before committing👷♂️🏗️' | ||
#echo 'please be patient, this may take a while...' | ||
# | ||
## Check ESLint Standards | ||
#docker-compose exec -T -e FORCE_COLOR=1 app pnpm lint || | ||
# ( | ||
# echo '🔨❌ Yoo, you have a problem in your code. Check linter 🔨❌ | ||
# Run pnpm lint, add changes and try commit again.' | ||
# false | ||
# ) | ||
# | ||
#echo '🎉 No error found: committing this now.... ✨🚀🏄♂️🍻' | ||
|
||
pnpm lint-staged --verbose --concurrent false |
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,5 @@ | ||
.pnpm-store | ||
packages/**/node_modules | ||
packages/**/.turbo | ||
apps/**/node_modules | ||
apps/**/.turbo |
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,3 +1,3 @@ | ||
module.exports = { | ||
...require("@wayofdev/secretlint-config"), | ||
}; | ||
...require('@wayofdev/secretlint-config'), | ||
} |
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
// @ts-check | ||
|
||
/** | ||
* This files overrides the base lint-staged.config.js present in the root directory. | ||
* It allows to run eslint based the package specific requirements. | ||
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} | ||
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md} | ||
*/ | ||
|
||
const { | ||
getEslintFixCmd, | ||
jsonRules, | ||
secretsRules, | ||
mdRules, | ||
yamlRules, | ||
htmlRules, | ||
} = require('@wayofdev/lint-staged-config') | ||
|
||
/** | ||
* @typedef {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>} LintRule | ||
*/ | ||
const rules = { | ||
'**/*.{js,jsx,ts,tsx}': (/** @type {any} */ filenames) => { | ||
return getEslintFixCmd({ | ||
cwd: __dirname, | ||
fix: true, | ||
cache: true, | ||
// when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause | ||
// a change here can potentially break things without proper visibility. | ||
rules: ['react-hooks/exhaustive-deps: off'], | ||
maxWarnings: 25, | ||
files: filenames, | ||
}) | ||
}, | ||
...jsonRules, | ||
...secretsRules, | ||
...mdRules, | ||
...yamlRules, | ||
...htmlRules, | ||
} | ||
|
||
module.exports = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// @ts-check | ||
|
||
/** | ||
* This files overrides the base lint-staged.config.js present in the root directory. | ||
* It allows to run eslint based the package specific requirements. | ||
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} | ||
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md} | ||
*/ | ||
|
||
const { | ||
getEslintFixCmd, | ||
jsonRules, | ||
secretsRules, | ||
mdRules, | ||
yamlRules, | ||
htmlRules, | ||
} = require('@wayofdev/lint-staged-config') | ||
|
||
/** | ||
* @typedef {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>} LintRule | ||
*/ | ||
const rules = { | ||
'**/*.{js,jsx,ts,tsx}': (/** @type {any} */ filenames) => { | ||
return getEslintFixCmd({ | ||
cwd: __dirname, | ||
fix: true, | ||
cache: true, | ||
// when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause | ||
// a change here can potentially break things without proper visibility. | ||
rules: ['react-hooks/exhaustive-deps: off'], | ||
maxWarnings: 25, | ||
files: filenames, | ||
}) | ||
}, | ||
...jsonRules, | ||
...secretsRules, | ||
...mdRules, | ||
...yamlRules, | ||
...htmlRules, | ||
} | ||
|
||
module.exports = rules |
Oops, something went wrong.
43bdf17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-starter-tpl-docs – ./apps/docs
next-starter-tpl-docs-wayofdev.vercel.app
next-starter-tpl-docs.wayof.dev
next-starter-tpl-docs.vercel.app
next-starter-tpl-docs-git-master-wayofdev.vercel.app
43bdf17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-starter-tpl-web – ./apps/web