Skip to content

Commit

Permalink
fix: added missing dev dependencies to .projenrc.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingquaks committed Oct 30, 2024
1 parent 0c4ed2a commit cfa66e7
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 54 deletions.
9 changes: 9 additions & 0 deletions .projen/deps.json

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

31 changes: 2 additions & 29 deletions .projen/tasks.json

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

20 changes: 3 additions & 17 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const project = new awscdk.AwsCdkTypeScriptApp({
'figlet',
'prettier',
'@types/cheerio',
'eslint-plugin-react-hooks',
'eslint-plugin-react-hooks@latest',
'eslint-plugin-react',
'eslint-plugin-react-refresh',
],
tsconfig: {
compilerOptions: {
Expand Down Expand Up @@ -240,22 +242,6 @@ project.preCompileTask.exec('npm run build', {
});
project.preCompileTask.spawn(buildAppsync);

// Formatting tasks
project.tasks.addTask('format', {
description: 'Format the code',
exec: 'npm run prettier && npm run lint',
});

project.tasks.addTask('lint', {
description: 'Lint the code',
exec: 'eslint . --config .eslintrc.json --ext .js,.jsx,.ts,.tsx --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif --fix',
});

project.tasks.addTask('prettier', {
description: 'Run prettier',
exec: 'prettier --write \"**/*.{ts,tsx}\"',
});

//Commit friendly messages!
project.tasks.addTask('commit', {
description: 'Commit the code',
Expand Down
Loading

0 comments on commit cfa66e7

Please sign in to comment.