Skip to content

Commit

Permalink
fix: Fix format errors and husky commit files
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal423 committed Sep 16, 2024
1 parent 5d30506 commit 05014f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
6 changes: 3 additions & 3 deletions generators/client/templates/eslint.config.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export default [{
...globals.browser,
...globals.node,
...cypress.environments.globals.globals,
<%_ if (!this.blueprintConfig.jest) { _%>,
<%_ if (!this.blueprintConfig.jest) { _%>
vi: true,
<%_ } _%>
},

ecmaVersion: 2020,
sourceType: "module",
<%_ if (this.blueprintConfig.jest) { _%>,
"jest": true
<%_ if (this.blueprintConfig.jest) { _%>
"jest": true,
<%_ } _%>
},

Expand Down
20 changes: 1 addition & 19 deletions generators/common/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,8 @@ const commonFiles = {
templates: ['.editorconfig', '.gitignore', 'README.md', 'sonar-project.properties'],
},
],
// serverFiles: [
// {
// condition: generator => !generator.skipServer,
// templates: ['src/main/resources/banner.txt'],
// },
// ],
commitHooks: [
{
condition: generator => !generator.skipCommitHook,
templates: [
'.lintstagedrc.json',
{
file: 'pre-commit',
renameTo: () => '.husky/pre-commit',
method: 'copy',
},
],
},
],
};

const sharedFiles = {
global: [
{
Expand Down
1 change: 1 addition & 0 deletions generators/common/templates/.husky/pre-commit.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install lint-staged

0 comments on commit 05014f2

Please sign in to comment.